- 論壇徽章:
- 1
|
本帖最后由 ioiioi 于 2011-12-05 13:19 編輯
我想在solaris11中將一個(gè)目錄及其子目錄通過nfs共享給linux,包括centos、VMware和netbsd,我嘗試了一下以下操作,但總是不成功
solaris11:
zfs create tank/iso
zfs create tank/iso/linux
zfs create tank/iso/windows
share -F nfs -o rw,nosuid,root=VM-host1:VM-host2 /tank/iso
chmod -R 777 /tank/iso
centos:
mkdir /home/iso
mount -t nfs -o rw,nosuid solaris11:/tank/iso /home/iso
echo "newfile" > /home/iso/newfile.txt
成功
echo "newfile" > /home/iso/linux/newfile.txt
失敗,原因是permission denied
然后,我在solaris11中查看了一下目錄:
solaris 11:
ls -al /tank/iso
- drwxrwxrwx 5 root root 8 Dec 5 13:04 .
- drwxr-xr-x 4 root root 4 Dec 2 22:45 ..
- drwxrwxrwx 2 root root 2 Dec 2 16:54 bsd
- drwxrwxrwx 2 root root 2 Dec 2 16:54 linux
- -rw-r--r-- 1 nobody nobody 8 Dec 5 12:57 newfile.txt
- drwxrwxrwx 2 root root 2 Dec 2 16:54 windows
復(fù)制代碼 然而,在centos中
ls -al /home/iso
- drwxr-xr-x+ 2 root root 2 Dec 2 16:54 bsd
- drwxr-xr-x+ 2 root root 2 Dec 2 16:54 linux
- -rw-r--r--+ 1 nfsnobody nfsnobody 8 Dec 5 12:57 newfile.txt
- drwxr-xr-x+ 2 root root 2 Dec 2 16:54 windows
復(fù)制代碼 說明:屏幕輸入的實(shí)際目錄名稱有出入,但是權(quán)限是一致的。
我有幾個(gè)問題:
1、為什么centos創(chuàng)建newfile.txt的屬主是nfsnobody,solaris中看到的則是nobody
2、為什么子目錄無法寫入,如何實(shí)現(xiàn)寫入權(quán)限;
3、權(quán)限列表中的"+"是什么意思?
4、在solaris中,改變目錄的權(quán)限,nfs client是否要重新mount 共享目錄? |
|