--
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam
03-24-2012, 03:30 PM
Karl-Arne Gjersøyen
Problem fixed! was: Permission denied (NFS/fstab?)
Den 15:58 24. mars 2012 skrev Florian Lengyel
<florian.lengyel@gmail.com> følgende:
> What did you do to fix it?
karl@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=100 4,anongid=1004,insecure)
/export/users 192.168.1.35/24(rw,nohide,sync,no_subtree_check,all_squash,anon uid=1004,anongid=1004,insecure)
karl@ubuntu:~$
--
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam
03-24-2012, 05:40 PM
Florian Lengyel
Problem fixed! was: Permission denied (NFS/fstab?)
I see -- this method would not work for (auto)mounting users in general though since you have to enter the UID:GID entries in /etc/fstab. It would be better if this information could be retrieved at login.
Apparently automounting linux users on Macs seems to require importing some of the apple schema into an LDAP--this is undesirable as Apple has been known to change its schema (I've done this) over time and because it adds variable complexity to the straightforward POSIX schema that works for Linux users.
This was my reason for asking...
FL
On Sat, Mar 24, 2012 at 12:30 PM, Karl-Arne Gjersøyen <karlarneg@gmail.com>*
#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
--
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam