NFS :: Permission denied after mounting, root works..
I have a server *Kernel 2.6.9 (192.168.1.100); and a client kernel 2.6.8(192.168.1.9). Both with a Debian unstable installation
// Here are my configuration files:
/etc/export ::
/mnt/fat 192.168.1.0/255.255.255.0(rw,no_root_squash)
The only reason I have no_root_squash in right now, because it was a test. I can actually log in as root and everything works fine. I don't want that though, I want to be able to mount/dismount/rw, to the network share.
/etc/hosts.allow ::
portmap:192.168.1.0/255.255.255.0
lockd:192.168.1.0/255.255.255.0
rquotad:192.168.1.0/255.255.255.0
mountd:192.168.1.0/255.255.255.0
statd:192.168.1.0/255.255.255.0
/etc/hosts.deny ::
portmap:ALL
ftp:ALL
lockd:ALL
mountd:ALL
rquotad:ALL
statd:ALL
I can mount the file-system OK, with root I can log in and whatever (after adding no_root_squash). With my normal user I get this:
robert@stinky:~/Desktop$ ls fat
ls: fat/drivers: Permission denied
ls: fat/Windowz: Permission denied
ls: fat/jayjennshare: Permission denied
ls: fat/bin: Permission denied
When I dismount, and chown, dhmod the directories (On server or client); the permissions and owner change back as soon as I mount it again.
It's prob simple, and I will be looking into it today, while at work, but if anyone can help me out that would be great, I wanna have this up and running by Tuesday.
|