nfs share does not send along file permissions

Bug #310802 reported by larsemil
2
Affects Status Importance Assigned to Milestone
portmap (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

So here is the thing
i am trying to set up a nfs share in my house between a server and a client. I have used nfs before and never ran into any problems what so ever. Now on the other hand i get lots of problems.

I am sharing the foler /mnt from the server as i would like to access the mounted disks on my server. As i mount it on the client as /mnt/server the file permissions dont come along - all the folders in /mnt from the server show up, but they are all empty and they are owned by root. On the server they are owned by one of the local users.

on the client

larsemil@mamin:/mnt/server$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sdc1
UUID=cc870487-8046-4b3b-bbac-fb5d336dd63b / ext2 relatime,errors=remount-ro 0 1

#nfs mount
192.168.1.68:/mnt /mnt/server nfs hard,intr,users,rw 0 0

larsemil@mamin:/mnt/server$ id larsemil
uid=1000(larsemil) gid=1000(larsemil) groups=1000(larsemil),4(adm),20(dialout),24(cdrom),46(plugdev),110(lpadmin),111(sambashare),112(admin)

and on the server:
larsemil@gandalf:~$ 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) hostname2(ro,sync)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt)
# /srv/nfs4/homes gss/krb5i(rw,sync)
#

/mnt 192.168.1.0/255.255.255.0(rw,no_root_squash,sync,subtree_check)

larsemil@gandalf:~$ id larsemil
uid=1000(larsemil) gid=1000(larsemil) grupper=1000(larsemil),4(adm),20(dialout),24(cdrom),46(plugdev),108(lpadmin),123(admin),124(sambashare)

Both computers run:
larsemil@mamin:/mnt/server$ lsb_release -rd
Description: Ubuntu 8.10
Release: 8.10

Allthough the client is a networkinstall of ubuntu and is not a complete ubuntu-desktop if that could matter

of course this could be a user error, but as i have done this several times and also have looked around on every guide there is and also asked some people i have no solution to this.

Revision history for this message
larsemil (emil-larsemil) wrote :

just tried to share something else then /mnt and that worked fine so it seems to just happen when trying to share /mnt

Adil Arif (adisari06)
affects: ubuntu → nfs-utils (Ubuntu)
affects: nfs-utils (Ubuntu) → portmap (Ubuntu)
Revision history for this message
Steve Langasek (vorlon) wrote :

Thank you for taking the time to report this issue and help to improve Ubuntu.

This is not a bug in portmap, nor in the NFS software; by design, when you NFS export a directory, subtrees containing other mounted filesystems are not mounted. To override this default behavior, you must export your filesystem using the 'nohide' option in /etc/exports.

Changed in portmap (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.