user and group not shown on nfs mounted directories
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,
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/tschweikl
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_
user@zm2:~$
and
user@zm2:~$ mount
[...]
sto.example:
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/
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_
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
ProcVersionSign
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)
Changed in autofs5 (Ubuntu): | |
importance: | Undecided → Medium |
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