General discussion

Locked

FedoraCore3 NFS. perms denied/servr dwn

By ieatbuggz ·
Trouble mounting, Fedora Core3

Client/Server model centralized at D-Link switch connected to Linksys Router G. Linux and Linksys firewalls disabled.

/etc/hosts (all hosts)
127.0.0.1 localhost.localdomain localhost
192.168.1.xx localhost.localdomain localhost
192.168.1.xx localhost.localdomain localhost
192.168.1.xx localhost.localdomain localhost

/etc/exports
/usr/local 192.168.1.xx(rw)
/usr/local 192.168.1.xx(rw)
/usr/local 192.168.1.xx(rw)

chmod ugoa+rwx /destinationmount

rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100011 1 udp 820 rquotad
100011 2 udp 820 rquotad
100011 1 tcp 823 rquotad
100011 2 tcp 823 rquotad
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100021 1 udp 32770 nlockmgr
100021 3 udp 32770 nlockmgr
100021 4 udp 32770 nlockmgr
100021 1 tcp 32772 nlockmgr
100021 3 tcp 32772 nlockmgr
100021 4 tcp 32772 nlockmgr
100005 1 udp 836 mountd
100005 1 tcp 839 mountd
100005 2 udp 836 mountd
100005 2 tcp 839 mountd
100005 3 udp 836 mountd
100005 3 tcp 839 mountd
100024 1 udp 32771 status
100024 1 tcp 32773 status

used following scripts in order to start daemons
/etc/rc.d/init.d/portmap start
/etc/rc.d/init.d/nfs start
/etc/rc.d/init.d/nfslock restart

Problem:
mount attempt on client and on server locally

# mount -t nfs 192.168.1.102:/usr/local /home/jerware/test
mount: 192.168.1.102:/usr/local failed, reason given by server: Permission denied

any suggestions? Iv'e been scratching my head for months.

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by Jaqui In reply to FedoraCore3 NFS. perms de ...

the /usr directory structure is the same as windows system.

try mounting a sub directory under Home/[user name]

important note:
unless doing major configuration work, never log in as root.
that is dangerous to system security as root has no limits on what the account can do.
an app that runs as user, will have unlimited access to the system, and could delete any file on the drive.

Collapse -

by todd In reply to FedoraCore3 NFS. perms de ...

Hi,

Under fedora core3 - the SElinux (secure linux) enhancements are enabled on by default. This is most likely what is causing your grief, by denying r/w to sockets and such.

Please visit:

http://fedora.redhat.com/docs/selinux-faq-fc3/

-cheers

Collapse -

by theroyala In reply to FedoraCore3 NFS. perms de ...

there is a difference between nfs3 and nfs4.
nfs4 needs additional services such as idmapd.
maybe rpc.ypxfrd rpc.yppasswdd ypserv ypbind.

nfs can also give errors when using wildcards.
it's best to have each mount exported only to the
necessary clients.

low security
export:
/var/tmp 192.168.123.131
(rw,nohide,no_subtree_check,insecure_locks,insecure,no_root_squash)

and mount:
192.168.123.141:/var/tmp /mnt/var/tmp nfs
defaults,noatime,noauto,rsize=32768,wsize=32768,async

fam.conf should be adjusted on the clients.

Back to Linux Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums