使用mount, 並修改檔案擁有者權限 - Linux

By Caitlin
at 2017-11-29T00:23
at 2017-11-29T00:23
Table of Contents
請問一下各位
我有兩個機器 A機器(192.168.1.1) 會掛載 B機器(192.168.1.2)的share目錄
mount -t nfs 192.168.116.2:/share /temp
chmod -R o+w /temp (A機器)
chmod -R o+w /share (B機器)
chown -R www:www /temp (A機器)
chown -R www:www /share (B機器)
我想請問如果在temp新增檔案, 擁有者和群組都必須是www可以嗎?
是不是要在 /etc/exports做設定
我目前使用他都會被轉成nfsnobody 或者 root
--
我有兩個機器 A機器(192.168.1.1) 會掛載 B機器(192.168.1.2)的share目錄
mount -t nfs 192.168.116.2:/share /temp
chmod -R o+w /temp (A機器)
chmod -R o+w /share (B機器)
chown -R www:www /temp (A機器)
chown -R www:www /share (B機器)
我想請問如果在temp新增檔案, 擁有者和群組都必須是www可以嗎?
是不是要在 /etc/exports做設定
我目前使用他都會被轉成nfsnobody 或者 root
--
Tags:
Linux
All Comments

By David
at 2017-12-01T11:10
at 2017-12-01T11:10

By Hazel
at 2017-12-02T05:13
at 2017-12-02T05:13
Related Posts
複製個PTT站應該很簡單?

By Jack
at 2017-11-28T16:13
at 2017-11-28T16:13
Centos 7 (1611)看不到圖形介面

By Yuri
at 2017-11-28T15:18
at 2017-11-28T15:18
c shell script不會return

By Eden
at 2017-11-28T14:51
at 2017-11-28T14:51
konsole中無法使用gcin

By Belly
at 2017-11-28T14:15
at 2017-11-28T14:15
apt-key 如何取得 keyid ?

By Kristin
at 2017-11-28T06:59
at 2017-11-28T06:59