problems with UID maping (NFS)

stan stanb at panix.com
Mon Jan 1 14:08:09 UTC 2007


I'm setting up a series of MythTV clients, and backends. 

I beleive that all the slave backends need to NFS mount the master backends
/var/lib/mythtv. I'm trying to set thisup, I've installed nfs-client on the
backend, and one frontend, and the user space NFS server on the master
backend. Unfortunatley the UID and GID for mythtv don't match on these 2
machines. I'm able to mount the master backends filesystem on the slabe
backends, but the GID, and UID are wrong.

Reading the exports man page I've set up the following:

On the master backend
----------------------

cat /etc/exports
# /etc/exports: the access control list for filesystems which may be exported
#               to NFS clients.  See exports(5).
/var/lib/mythtv            *.fas.com(rw),map_static=/etc/nfs/mythtv.map

cat /etc/nfs/mythtv.map
# Mapping for client teddy:
#    remote     local
uid  108       112    # mythtv
uid  114       116    # mythtv

grep myth /etc/passwd
mythtv:x:112:117::/home/mythtv:/bin/sh

On the slave backend
----------------------

Script started on Mon 01 Jan 2007 09:04:32 AM EST
]0;root at teddy: ~root at teddy:~# grep myth /etc/passwd
mythtv:x:108:114::/home/mythtv:/bin/sh
]0;root at teddy: ~root at teddy:~# ls -l /tmp/mnt
total 1766488
-rw-r--r-- 1 postfix mixmaster  643608640 2006-12-31 21:54 1003_20061231213814.mpg
-rw-rw-rw- 1 postfix mixmaster      39678 2006-12-31 20:40 1011_20061231190000.mpg.png
-rw-r--r-- 1 postfix mixmaster 1165080576 2007-01-01 08:00 1064_20070101073000.mpg
-rw-rw-rw- 1 postfix mixmaster      37076 2007-01-01 08:20 1064_20070101073000.mpg.png
-rw-rw-rw- 1 postfix mixmaster      24790 2006-12-31 19:20 1099_20061231130000.mpg.png
-rw-rw-rw- 1 postfix mixmaster      31238 2006-12-31 21:32 1099_20061231200500.mpg.png
-rw-rw-rw- 1 postfix mixmaster      42121 2007-01-01 03:19 1099_20061231210000.mpg.png
-rw-r--r-- 1 postfix mixmaster          0 2006-12-31 20:04 nfslockfile.lock
?--------- ? ?       ?                  ?                ? /tmp/mnt/1011_20061231190000.mpg
?--------- ? ?       ?                  ?                ? /tmp/mnt/1099_20061231130000.mpg
?--------- ? ?       ?                  ?                ? /tmp/mnt/1099_20061231170000.mpg
?--------- ? ?       ?                  ?                ? /tmp/mnt/1099_20061231200500.mpg
?--------- ? ?       ?                  ?                ? /tmp/mnt/1099_20061231210000.mpg
]0;root at teddy: ~root at teddy:~# exit

Script done on Mon 01 Jan 2007 09:04:51 AM EST

Can anyone point out the error of my ways?

-- 
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)




More information about the ubuntu-users mailing list