You are not logged in.

#1 2007-08-09 15:43:17

gejr
Member
Registered: 2007-05-23
Posts: 92

NFS - Permission denied.

I already have 2 directories shared on my server which are mounted nicely on my desktop computer. I need to share one directory the other way.
On my desktop computer I have this in /etc/exports:

/mnt/files 192.168.1.0/24(rw,sync,no_root_squash,subtree_check)

and that directory's permissions look like this:

[root@desktopcomputer mnt]# pwd && ls -l
/mnt
drwxrwxrwx 1 root root   4096 2007-08-07 11:45 files

i've restarted nfsd and it should definately be exported right.

/mountpoint on the server looks like this:

[root@server /]# pwd && ls -l
drwxr-xr-x 2 root root 4096 2007-08-09 17:16 mountpoint

What I get when I run:

root@server /] mount desktopcomputer:/mnt/files /mountpoint

is "mount: desktopcomputer:/mnt/files failed, reason given by server: Permission denied"

I can't figure out why this is happening. I have temporarily opened for all to nfsd, portmap and mountd like stated in the wiki.

#
# /etc/hosts.allow
#
mountd: ALL
nfsd: ALL
portmap: ALL

Any tips? Thanks

Edit:

I have this in the desktopcomputer's /var/log/messages.log:

mountd[12156]: authenticated mount request from server:763 for /mnt/files (/mnt/files)

Could this have something to do with the /mnt/files to be already mounted on the desktopcomputer as a ntfs disk with ntfs-3g ?

so i'm trying to nfs-mount a disk that's already mounted with ntfs-3g locally on desktopcomputer...

phew..:) this is getting complicated for me.

Edit2:

Seems like NFS over Fuse isn't supposed to work. I'm going to copy all the files from the windows machine to the linux server instead. Hopefully that'll work smile

Last edited by gejr (2007-08-09 16:12:49)

Offline

Board footer

Powered by FluxBB