Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
best way to mount nfs partitions
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
chemical
n00b
n00b


Joined: 10 Apr 2002
Posts: 29
Location: San Diego, CA

PostPosted: Sat May 11, 2002 12:43 am    Post subject: best way to mount nfs partitions Reply with quote

alright here is what i want to do. I have a server (vert) which has 2 directories i want mounted on my client (blowfish). The first directory i want mounted is /home/ben/. I want that to be mounted on blowfish via /home/ben/vert/. Then i have /mp3 on vert which i want to be mounted as /mp3 on blowfish. on vert /mp3 is owned by the user mp3 and the group mp3 which most users are in so they can read the files in /mp3. /home/ben/ i want to be read by the user ben on blowfish only. Now I am not useing NIS or LDAP and do not wish to use them in which case my UIDs and GIDs are different on both blowfish and vert. Waht is the best way to do this? Is it possible to do this without me having to change the the UIDs on blowfish? Comments, Suggestions, Ideas, Solutions, Flames?
Back to top
View user's profile Send private message
amasidlover
Apprentice
Apprentice


Joined: 16 Jun 2002
Posts: 275
Location: Manchester, UK

PostPosted: Fri Jun 28, 2002 1:34 pm    Post subject: Reply with quote

Its not my idea of fun but... You can do an all_squash which sets the uid and gid of all the files in the directory to anonymous, then you override the default anonymous uid and gid with your uid and gid from the client machine i.e.

in the exports file on the server:
Code:
/home/ben       blowfish(rw,all_squash,anonuid=150,anongid=100)
/mp3            blowfish(ro)


Then on the client simply add
Code:

vert:/home/ben     /home/ben/vert    nfs     rw,exec 1 1
vert/mp3                /mp3     nfs   rw,exec 1 1


BTW this all came from the exports(5) and mount(8) man pages.

Hope this helps,

Alex
Back to top
View user's profile Send private message
klieber
Administrator
Administrator


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Fri Jun 28, 2002 1:38 pm    Post subject: Reply with quote

moving to networking forum.

--kurt
_________________
The problem with political jokes is that they get elected
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