Friday 13 January 2012

NFS mount ls shows user numbers not names

Machine 1 has user, `me'. `$ id me' shows 1004 as `me' was added as a user late in the life of the machine.

Machine 2 has user, `me'. `$ id me' shows 1000 as `me' was the first user added.

`$ sshfs 192.168.1.100:/home/me ~/remoteme' mounts the remote location ok but attempts to write to the remote drive fail with permission errors.

Attempting the same process with `$ sudo mount' generates the same result.

Setting NEED_IDMAPD=yes in /etc/default/nfs_common made no difference.

`$ls -lha' at the local machine to view the remote drive shows no user names, only numbers. The numbers indicate 1004 as the owner.

So, move the remote `me' user from UID 1004 to UID 1000 by logging into the remote machine as a user other than `me' and executing,

`$ usermod -u 1006 olduserat1000' to free up UID 1000

then

`$ usermod -u 1000 me'

No comments:

Post a Comment