SOLVED Solved myself: NFS is mounted rw, permissions are right, but I can't write

schnumsel

Cadet
Joined
Jun 19, 2019
Messages
3
Hi there,

after searching for a while, I am giving up...
My problem:

We have a share (/mnt/raid5/archive) which is exported rw.
/etc/exports on freenas says:

Code:
root@antipholus[~]# cat /etc/exports
/mnt/raid5/archive -mapall="nobody":"nobody"
[...]


The permissions of this volume are as follows:
Code:
root@antipholus[/mnt/raid5/archive]# ls -lan
total 50
drwxrwxr-x+ 3 1001  100   11 Jun  5 15:17 .
drwxr-xr-x  7 0     0      7 May 16 09:06 ..
-rwxrwxr-x+ 1 1001  100  983 Jun  5 15:17 .cshrc
-rwxrwxr-x+ 1 1001  100  323 Jun  5 15:17 .login
-rwxrwxr-x+ 1 1001  100   91 Jun  5 15:17 .login_conf
-rwxrwxr-x+ 1 1001  100  301 Jun  5 15:17 .mail_aliases
-rwxrwxr-x+ 1 1001  100  267 Jun  5 15:17 .mailrc
-rwxrwxr-x+ 1 1001  100  881 Jun  5 15:17 .profile
-rwxrwxr-x+ 1 1001  100  212 Jun  5 15:17 .rhosts
-rwxrwxr-x+ 1 1001  100  782 Jun  5 15:17 .shrc
drwxrwxr-x+ 4 1001  100    5 Jun 19 09:05 bcs


mounting on my linux machine
Code:
$ cat /etc/fstab
antipholus.sandstein.de:/mnt/raid5/archive /home/willi/archive nfs user,auto 0 2


Mounting works as supposed. Mount gives me the following:
Code:
mount
[...]
antipholus.sandstein.de:/mnt/raid5/archive on /home/willi/archive type nfs (rw,nosuid,nodev,noexec,relatime,vers=3,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.110.214,mountvers=3,mountport=995,mountproto=udp,local_lock=none,addr=192.168.110.214,user=willi)


And on the Linux side:
Code:
willi@lotta:~/archive$ ls -aln
insgesamt 45
drwxrwxr-x  3 1001  100   11 Jun  5 15:17 .
drwxr-xr-x 44 1001 1001 4096 Jun 19 09:37 ..
drwxrwxr-x  4 1001  100    5 Jun 19 09:05 bcs
-rwxrwxr-x  1 1001  100  983 Jun  5 15:17 .cshrc
-rwxrwxr-x  1 1001  100  323 Jun  5 15:17 .login
-rwxrwxr-x  1 1001  100   91 Jun  5 15:17 .login_conf
-rwxrwxr-x  1 1001  100  301 Jun  5 15:17 .mail_aliases
-rwxrwxr-x  1 1001  100  267 Jun  5 15:17 .mailrc
-rwxrwxr-x  1 1001  100  881 Jun  5 15:17 .profile
-rwxrwxr-x  1 1001  100  212 Jun  5 15:17 .rhosts
-rwxrwxr-x  1 1001  100  782 Jun  5 15:17 .shrc


So 1001 is my uid, but if i try touching a file I am not allowed?

Code:
illi@lotta:~/archive$ touch test
touch: 'test' kann nicht berührt werden: Keine Berechtigung


Sorry for the german, this is "touch: can't touch 'test': No permissions.

So I do not have any clue how to find out why this is not working.
Maybe another hint:

I made an SMB share just below (/mnt/raid5/archive/bcs) but even without it will not work. Also I think it was working already, but I have no idea, what could possibly have changed meanwhile.
Restarting the freenas box did not help...

Thanks for your help in advance

Willi
 

schnumsel

Cadet
Joined
Jun 19, 2019
Messages
3
Yeah, I did find it. It was the mapall option. I did set it, because of the SMB share.
 
Top