Subject: I want criticism on my NFS/ERROR please
From: Eric Fortner (emf33@gci.net)
Date: Sun Jun 16 2002 - 12:01:15 AKDT
Hello all:
I have been fighting NFS on slackware for a few hours now:
Here is the skinny on my setup which is for a SOHO/internal:
os=Slackware 8.1RC3
server=file.some.com
client=pc.some.com
SERVER:
cut line from fstab:
/dev/sda6 /linux /ext3 defaults 1  2 < from  $server fstab file
export file on $server
/etc/export
/linux   pc.some.com(rw)  # pretty straight forward here right?
Kernel on $server:
Not a desktop so I built a Monolithic > includes NFS client and NFS server
when $server fires up it runs:
/usr/sbin/rpc.portmap
/usr/sbin/exportfs -r
/usr/sbin/rpc.nfsd 8
/usr/sbin/rpc.mountd
/usr/sbin/rpc.lockd
/usr/sbin/rpc.statd
A ps -aux of $server shows
all are running> then an rpcinfo -p shows the same"Good got NFS!"
Now on to $client:
I make sure /usr/sbin/rpc.portmap is afloat and do rpcinfo -p $server
it shows "I to can have GOT nfs"
now I edit $client /etc/fstab
add line: server:/linux /mnt/linux nfs rw,bg,intr,soft,rsize=8192,wsize=8192 0  0
saved 
as "`id -u` = 0" I then type: mount client:/linux /mnt/linux 
and it appears a good mount:
I can read and write as a "`! id -u`" = "0" and everything is good!
THE PROBLEM IS:
when on the $server I want to start to lock down so:
1) /etc/hosts.deny 
ALL:ALL EXCEPT localhost:DENY
2)/etc/hosts.allow
portmap:192.168.0.6:ALLOW
ERROR MSG:
Stating RPC portmapper: /sbin/rpc.portmap
Mounting remote (NFS) file system: /sbin/mount -a -t nfs
mount: RPC: Authentication error; why = Failed (unspecified error)
mount: backgrounding "$server:/linux"
 
When I type: ps -aux I see  a line in there like
root 688 0.0 0.3 1512 772 tty1 S 10:37 0:00 mount -- $server:/linux
and then I proceed to an rpcinfo -p $server and the results >> \
   program vers proto   port
    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100021    1   udp  32768  nlockmgr
    100021    3   udp  32768  nlockmgr
    100021    4   udp  32768  nlockmgr
    100005    1   udp  32774  mountd
    100005    1   tcp  32772  mountd
    100005    2   udp  32774  mountd
    100005    2   tcp  32772  mountd
    100005    3   udp  32774  mountd
    100005    3   tcp  32772  mountd
    100024    1   udp  32775  status
    100024    1   tcp  32773  status
shit (END) 
I have to remove anything in hosts.deny/hosts.allow to be able to mount
this server:
I might add to this:
the perms on $server are as :
drwx------ 3 emf33 aknodes 4096 Jun 15 04:56 linux/
and perms on $client are as :
drwx------ 3 emf33 aknodes 4096 Jun 15 04:56 /mnt/linux/
so I am @ a loss here folks...................
If I missed anything here please let me know:
SmellyPriest.........
-- ----------- To unsubscribe, send email to <aklug-request@aklug.org> with 'unsubscribe' in the message body.
This archive was generated by hypermail 2a23 : Sun Jun 16 2002 - 11:04:36 AKDT