Using NFS

dragonslayer

New Member
Joined
May 5, 2022
Messages
3
Reaction score
1
Credits
41
My issue is when I login into my client as user2 and cd into /mount and try to touch or echo a file into shA I get permission denied, however if I try do the same thing from root even with the same perms of rw I can do it ? It just won't let me do it login as the user2?
The user UID of user2 is the same on both client and server. As is the GID (group ID).

Server:
On the server this is what I have done
Code:
root:~# mkdir -p /share/shA
root:~# adduser user2 (setup passwd etc)
root:~# groupadd -g 6000 read-perms
root:~# usermod -a -G read-perms user2
root:~# chown read-perms /share/shA
root:~# chmod 2760 /share/shA
--- Firewall has been disabled as to not mess with nfs
root:~# nano /etc/exports
--- In file
/share/shA ip_address(rw,no_root_squash)
root:~# exportfs -avr
exporting ip_address:/share/shA
root:~#

Client:
Code:
root:~# mkdir -p /mount/shA
root:~# adduser user2 (setup passwd etc)
root:~# groupadd -g 6000 read-perms
root:~# mount -t nfs ip_address:/share/shA /mount/shA
root:~#
 
Last edited:

Members online


Top