Public bug reported:

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)

** Affects: autofs5 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug natty

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to autofs5 in Ubuntu.
https://bugs.launchpad.net/bugs/782179

Title:
  user and group not shown on nfs mounted directories

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to