user and group not shown on nfs mounted directories

Bug #782179 reported by Thomas Schweikle
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
autofs5 (Ubuntu)
New
Medium
Unassigned

Bug Description

Binary package hint: autofs5

Install a nfs4 server on maverick. Export /HOME
/etc/export:
/HOME *(rw,sync,no_subtree_check)

Now on all system install autofs, then configure:
/etc/auto.master:
/home /etc/auto.home

/etc/auto.home:
* -rw,soft,intr sto.example:/HOME/&

stop autofs, then clean /home:
service autofs stop
rm -rf /home/*

make sure you have the same uid/gid on all hosts. I took 2023.
make sure you have the same username on all hosts.
start autofs again:
service autofs start

It may be necessary to log off, then on again, to make the system accept the changes.

cd into your home:
cd /home/username

If all setup was OK, then:
user@zm2:~$ ll
insgesamt 28
drwxr-xr-x 4 4294967294 4294967294 4096 2011-05-13 13:49 ./
drwxr-xr-x 3 root root 0 2011-05-13 13:47 ../
-rw------- 1 4294967294 4294967294 391 2011-05-13 13:50 .bash_history
-rw-r--r-- 1 4294967294 4294967294 220 2011-05-11 13:47 .bash_logout
-rw-r--r-- 1 4294967294 4294967294 3353 2011-05-11 13:47 .bashrc
lrwxrwxrwx 1 4294967294 4294967294 35 2011-05-13 13:49 .byobu -> /home/tschweikle/.local/share/byobu/
drwx------ 2 4294967294 4294967294 4096 2011-05-11 13:48 .cache/
drwxr-xr-x 3 4294967294 4294967294 4096 2011-05-13 13:49 .local/
-rw-r--r-- 1 4294967294 4294967294 675 2011-05-11 13:47 .profile
-rw-r--r-- 1 4294967294 4294967294 0 2011-05-11 13:48 .sudo_as_admin_successful
user@zm2:~$

and
user@zm2:~$ mount
[...]
sto.example:/HOME/user on /home/user type nfs (rw,soft,intr,sloppy,vers=4,addr=192.168.1.51,clientaddr=192.168.1.40)

and on the server itself:
user@sto:~$ ll
insgesamt 28
drwxr-xr-x 4 user user 4096 2011-05-13 13:49 ./
drwxr-xr-x 3 root root 0 2011-05-13 14:00 ../
-rw------- 1 user user 391 2011-05-13 13:50 .bash_history
-rw-r--r-- 1 user user 220 2011-05-11 13:47 .bash_logout
-rw-r--r-- 1 user user 3353 2011-05-11 13:47 .bashrc
lrwxrwxrwx 1 user user 35 2011-05-13 13:49 .byobu -> /home/user/.local/share/byobu/
drwx------ 2 user user 4096 2011-05-11 13:48 .cache/
drwxr-xr-x 3 user user 4096 2011-05-13 13:49 .local/
-rw-r--r-- 1 user user 675 2011-05-11 13:47 .profile
-rw-r--r-- 1 user user 0 2011-05-11 13:48 .sudo_as_admin_successful
user@sto:~$

and
user@sto:~$ mount
[...]
/HOME/user on /home/user type none (rw,bind)

While mount works OK you'll get no useful group and users on any mounted directory. There are only cryptic numbers shown.
Both users do have write access to files and folders, but not to all files and folders:

user@zm2:~$ byobu
ERROR: [/home/user/.byobu] is not writable by the current user

user@sto:~$ byobu
on the server (and only there) byobu fires up right away!

user@zm1:~$ byobu
does the same! Only natty does not allow access to certain files and does not display uid/gid names.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: autofs5 5.0.5-0ubuntu6
ProcVersionSignature: Ubuntu 2.6.38-8.42-server 2.6.38.2
Uname: Linux 2.6.38-8-server x86_64
Architecture: amd64
Date: Fri May 13 13:57:26 2011
InstallationMedia: Ubuntu-Server 11.04 "Natty Narwhal" - Release amd64 (20110426)
ProcEnviron:
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: autofs5
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Thomas Schweikle (tps) wrote :
Revision history for this message
Thomas Schweikle (tps) wrote :

I've tested:
10.04.2 LTS lucid: worked as expected
10.10 maverick: worked as expected
11.04 natty: doesn't work as expected

Revision history for this message
Thomas Schweikle (tps) wrote :

I could manage to start a kvm, but for some reason I do not understand there is no output on vnc. The only error message I receive is from kvm trying to access a tap device I did not create before starting kvm. But this error doesn't seem to be fatal at all. I am now sure the error is libvirtd related.

I have used the commandline:
/usr/bin/kvm \
  -S \
  -M pc-0.12 \
  -enable-kvm \
  -m 512 \
  -smp 1,sockets=1,cores=1,threads=1 \
  -name ipcop \
  -uuid 96555d97-9a67-7f06-3a9c-b521a4e43197 \
  -nodefconfig \
  -nodefaults \
  -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/ipcop.monitor,server,nowait \
  -mon chardev=charmonitor,id=monitor,mode=readline \
  -rtc base=utc \
  -boot order=c,menu=off \
  -drive file=/dev/vh01/ipcop,if=none,id=drive-virtio-disk0,boot=on,format=raw \
  -device virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0 \
  -drive file=/ISO/ipcop-1.9.19-install-cd.i486.iso,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw \
  -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 \
  -netdev tap,fd=17,id=hostnet0 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:d6:df:54,bus=pci.0,addr=0x3 \
  -chardev pty,id=charserial0 \
  -device isa-serial,chardev=charserial0,id=serial0 \
  -usb \
  -device usb-tablet,id=input0 \
  -vnc 127.0.0.1:3 \
  -vga cirrus \
  -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5

Dave Walker (davewalker)
Changed in autofs5 (Ubuntu):
importance: Undecided → Medium
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.