Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nfs - (500:users) incorrect mount owner/permission
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
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2716
Location: Edmonton, AB

PostPosted: Mon May 02, 2011 12:53 am    Post subject: nfs - (500:users) incorrect mount owner/permission Reply with quote

I'm trying to mount another user directory over nfs and I get owner: 500:users
When I mount my own directory over nfs it mount OK: joseph:users

How do I force to mount another user directory as their own or my name so I can "rw" to files.
Is it force thorough /etc/export or /etc/fstab

my /etc/exports:
/home/joseph/ 10.0.0.0/255.255.0.0(async,rw,no_subtree_check)
/home/thelma/ 10.0.0.0/255.255.0.0(async,rw,no_subtree_check)

fstab:
10.0.0.104:/home/joseph /home/joseph/mnt/syscon3 nfs nfsvers=3,users,noauto 0 0
10.0.0.104:/home/thelma /home/joseph/mnt/syscon3t nfs nfsvers=3,users,noauto 0 0
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Mon May 02, 2011 1:12 am    Post subject: Reply with quote

Methinks you may be unaware of fact NFS determines users by UID and groups by GID. If user joseph has UID 500 in local system and UID 500 in remote system everything is OK.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2716
Location: Edmonton, AB

PostPosted: Mon May 02, 2011 1:22 am    Post subject: Reply with quote

Jaglover wrote:
Methinks you may be unaware of fact NFS determines users by UID and groups by GID. If user joseph has UID 500 in local system and UID 500 in remote system everything is OK.


Yes, I can mount my home on the remote system as my own as UID and GID are the same, but how do I force/mount another user home so I can write to files (I can read them but not writer to them).
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2716
Location: Edmonton, AB

PostPosted: Mon May 02, 2011 1:33 am    Post subject: Reply with quote

Previously when I mount the nfs via sshfs I had in fstab:
Code:

sshfs#thelma@192.168.139.1:/home/thelma/ /home/joseph/mnt/clinic2/ fuse users,noauto,uid=1000,gid=1000,umask=0,allow_other

and it worked but now if I try to enter uid=1000,gid=1000 it is not taking it.
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