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

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


--

All Comments

David avatarDavid2017-12-01
wwwwwwwww
Hazel avatarHazel2017-12-02
man export 搜尋 User ID Mapping 或 all_squash