Problem fixed! was: Permission denied (NFS/fstab?)

Karl-Arne Gjersøyen karlarneg at gmail.com
Sat Mar 24 16:30:04 UTC 2012


Den 15:58 24. mars 2012 skrev Florian Lengyel
<florian.lengyel at gmail.com> følgende:
> What did you do to fix it?

karl at ubuntu:~$ cat /etc/exports
# /etc/exports: the access control list for filesystems which may be exported
#		to NFS clients.  See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes       hostname1(rw,sync,no_subtree_check)
hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4        gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes  gss/krb5i(rw,sync,no_subtree_check)

# this two lines below was the old one that not work out.
# It gave only ro permittion on Mac OS X 10.6.8
#/export	192.168.1.0/24(rw,fsid=0,insecure,no_subtree_check,async)
#/export/users 192.168.1.0/24(rw,nohide,insecure,no_subtree_check,async)

#This two lines below work.
# I removed fsid=0 and added all_squash, anonuid=1004,anongid=1004
# 10004 is taken for the user from /etc/passwd for uid:gid
# In this way it is only to do: sudo mount
ip_of_nfs_server:/export/users /Users/karl/Ubuntu on Mac client
computer
/export 192.168.1.35/24(rw,sync,no_subtree_check,all_squash,anonuid=1004,anongid=1004,insecure)
/export/users 192.168.1.35/24(rw,nohide,sync,no_subtree_check,all_squash,anonuid=1004,anongid=1004,insecure)
karl at ubuntu:~$




More information about the ubuntu-server mailing list