Autofs permission denied

Issues related to configuring your network
Post Reply
ilak
Posts: 7
Joined: 2017/11/09 15:35:49

Autofs permission denied

Post by ilak » 2017/11/09 15:47:12

Hello, I've mounted an nfs share, I can read the files on it but I can't modify it or create new files, despite having rw.
I've also tried without nfs share, locally but I had the same problem.
So here are my config files :

Server : /etc/exports
/test1 192.168.43.81(rw)

Client : /etc/auto.master
/nfs /etc/auto.nfs --ghost

/etc/auto.nfs
server -fstype=nfs,rw 192.168.43.113:/test1

touch /nfs/server/test
touch: setting times of '/nfs/server/' : Permission denied

SELinux is on permissive, firewalld has nfs in the list.


Sorry that's my first post.
Thanks a lot for the help.

pjsr2
Posts: 614
Joined: 2014/03/27 20:11:07

Re: Autofs permission denied

Post by pjsr2 » 2017/11/09 19:31:27

Which user is writing?

ilak
Posts: 7
Joined: 2017/11/09 15:35:49

Re: Autofs permission denied

Post by ilak » 2017/11/09 20:52:01

I tried with root (I know, root_squash etc...) and also with a normal user.
But even when I tried without nfs, on my local computer I had the same problem, I've no idea why.

User avatar
jlehtone
Posts: 4530
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Autofs permission denied

Post by jlehtone » 2017/11/10 08:06:24

What are the file permissions on the Server on /test1 ?

ilak
Posts: 7
Joined: 2017/11/09 15:35:49

Re: Autofs permission denied

Post by ilak » 2017/11/10 09:58:36

All right more upgrades :
Server side : Normal users cannot create files on the directory despite chown and chmod 777 on the directory.
Root can create and modify.

Client side : I made a mistake, I was trying to modify root's files with normal users OR root's files with root (But without no_root_squash).
Normal users can modify if they own the file (Normal).

NFS problem I guess, why normal users cannot create files in the directory, server side?
______________________________

I've resolved the problem on my local Autofs, there was a mistake in my path.
Thanks for the help.

Post Reply