Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nfs no Read Write access for user on client
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Tinitus
Veteran
Veteran


Joined: 20 Sep 2004
Posts: 1628

PostPosted: Fri Feb 22, 2013 8:10 pm    Post subject: nfs no Read Write access for user on client Reply with quote

Hello,


I have a Server with User >test< and a Client with user >test<.

On the Server /etc/exports

Code:
 /etc/exports: NFS file systems being exported.  See exports(5).
/home/ 192.xxx.x.0/24(rw,no_subtree_check,async,no_root_squash)


on Client:

/etc/fstab

Code:
192.xxx.x.2:/home/test    /home/test    nfs    defaults,rw     0 0


But the User test on the Client Machine has only ro privileges.

ls -ld shows this:

Code:
drwxr-xr-x 3 messagebus 245     4096
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32302
Location: 56N 3W

PostPosted: Fri Feb 22, 2013 8:49 pm    Post subject: Reply with quote

Tinitus,

The two users need to have identical userIDs on both systems as its the userIDs that are used for controlling access, not user names.
You can look in /etc/password to check
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Tinitus
Veteran
Veteran


Joined: 20 Sep 2004
Posts: 1628

PostPosted: Fri Feb 22, 2013 10:13 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Tinitus,

The two users need to have identical userIDs on both systems as its the userIDs that are used for controlling access, not user names.
You can look in /etc/password to check


No other way? This works. But I have not on all Machine admin rights.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32302
Location: 56N 3W

PostPosted: Fri Feb 22, 2013 10:27 pm    Post subject: Reply with quote

Tinitus,

I think you can force a userID and GroupID at mount but then the mount only works for a single user as the mount point is mapped to that user.
I think this is done in the /etc/exports on the machine exporting the share.

e.g. if you nfs mount /home that way, it works only for the user its mapped as, not all /home/<users>

For a single user, you can also use sshfs but this requires ssh access on the host sharing the filesystem.
Its slower then nfs and more secure.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum