System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

User rights on NFS exported by Linux

scanepa
Occasional Visitor

User rights on NFS exported by Linux

HI all,
I set up a NFS server using a Linux (Mandriva 2008.0) box that exports a single directory to two Tru64 machines. I mouted the NFS export as /mnt/nfs on both machines and gave all users the right to add/modify files and direcories on the NFS export. This works just after the chmod then when I try to access the export again (for example the day after) I have a permission denied error. I'm looping on chmod - permission denied.

Could someone suggest me what I doing the wrong way?

My /etc/export (on Linux) is:
[root@servernfs sc]# cat /etc/exports
#
/home/flink 192.168.200.0/24(rw,no_root_squash,insecure_locks,insecure)
/media/disk 192.168.200.0/24(rw,no_root_squash,insecure_locks,insecure)

My /etc/fstab (on Tru64):
# cat /etc/fstab
/dev/disk/dsk0a / ufs rw 1 1
/proc /proc procfs rw 0 0
/dev/disk/dsk0f /usr ufs rw 1 2
/dev/disk/dsk0b /var ufs rw 1 2
/dev/disk/dsk1c /usr2 ufs rw 1 2
192.168.200.9:/home/flink /mnt/nfs nfs rw 0 2

TIA
sc
4 REPLIES
Ivan Ferreira
Honored Contributor

Re: User rights on NFS exported by Linux

>>> This works just after the chmod then when I try to access the export again (for example the day after) I have a permission denied error. I'm looping on chmod - permission denied.

I don't understand that part. Do you have the FS mounted on /mnt/nfs in Tru64, and when you run chmod you get permission denied?

You must also post the permissions for the directory/files itself and the user who get permission denied.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
scanepa
Occasional Visitor

Re: User rights on NFS exported by Linux

I was not clear, I did this way:
as root:
1) create the export
2) edited /etc/fstab
3) issued a mount -a
as user:
4) cd /mnt/nfs
5) got permission denied
as root:
6) cd /mnt/
7) chmod -R a+wr nfs/
as user (on one tru64 machine
8) cp ... /mnt/nfs
as user on the other tru64 machine
9) cp /mnt/nfs

I did this yesterday, today I just tried to copy to the share as user and got a permission denied again. Neither the Linux box, neither the tru64 machines where rebooted in the meanwhile.

Tomorrow, I'm at home now, I'll post more details.

TIA
sc
scanepa
Occasional Visitor

Re: User rights on NFS exported by Linux

Yesterday I did: chmod -R a+wr /mnt on both Tru64 boxes. Today as user:
flink@sccar02 > cd /mnt/nfs
flink@sccar02 > ls
.: Permission denied

I checked as root:

root@sccar01> ls -la /mnt
total 28
drwxrwxrwx 4 root system 8192 Mar 27 13:55 .
drwxr-xr-x 29 root system 8192 Mar 14 13:20 ..
drwx--x--x 5 root system 4096 Apr 9 16:23 nfs

root@sccar02 > ls -la /mnt
total 7
drwxrwxrwx 4 root system 512 Mar 27 15:40 .
drwxr-xr-x 26 root system 1024 Apr 9 16:42 ..
drwx--x--x 5 root system 4096 Apr 9 16:23 nfs

Bye
sc

Vladimir Fabecic
Honored Contributor

Re: User rights on NFS exported by Linux

Try this for test and tell what happened:
On TRU64 machines:
# chmod 777 /mnt/nfs
# cd /mnt/nfs
# chmod 777 some_files
login as ordinary user and
$ ls -al /mnt
$ ls -al /mnt/nfs
In vino veritas, in VMS cluster