questions about ISC 386/ix
santi at ixos.UUCP
Wed Jan 10 21:52:20 AEST 1990
In article <42 at guug.UUCP> ott at guug.UUCP (Joachim Ott) writes:
>1) I'm root on host alpha and enter the following commands:
>mount -f NFS beta:/ /mnt
>dd: read error: Permission denied
>(same for cp, tar, /mnt/dev/dsk/f0q15dt is 666-mode)
>In my opinion, the floppy should be part of the mounted filesystem.
First of all, you can't access device files through NFS. Try using
rsh beta dd if=/dev/dsk/f0q15dt | tar xf -
tar cf - | rsh beta dd of=/dev/dsk/f0q15dt
>2) Still root, I enter:
>ls -l z
>-rw-r--r-- 1 root root 0 Jan 4 19:01 z
>ls -l z
>-rw-rw-r-- 1 65534 other 0 Jan 4 19:01 z
>What about that funny user-id and 664-file-mode on host beta ?
The funny user-id is called *nobody*. You are not allowed to access an
NFS server from a process running as *root*. To avoid possible
security problems (of which there still many!) the uid 0 is mapped to
-2 on the server side. Uid's are declared as an *unsigned short*,
therefore the 65534.
The file modes are actually funny, it looks like the clients umask
is not added properly into the file creation modes on the client NFS file
system code. Also, the gid change is quite strange. I honestly do not
believe that the excerpt presented here is complete.
More information about the Comp.unix.i386