Networking Forums

Networking Forums > Computer Networking > Linux Networking > mounting nfs partition depending on user

Reply
Thread Tools Display Modes

mounting nfs partition depending on user

 
 
Captain Dondo
Guest
Posts: n/a

 
      10-05-2003, 02:35 PM
NFS Newbie alert!!

I want to mount an nfs partition based on who is logged on.

In other words, I want to restrict who can mount a partition.

I have two sets of users: kids and parents. I have movies that only the
parents can watch.

The movies are accessed via a browser. Anyone can watch a "kid" movie;
these are mounted at boot time. There is a default index.html in the
"parent" movie directories that simply puts up a message that you have to
be logged in as a parent.

If a parent logs in, the "parent" movies are mounted via NFS, the default
index.html is no longer visible and the index.html on the mounted
partition shows the movies that are available.

I want all this to happen automatically. So, how do I mount an nfs
partition based on user? I know that I can put it in ~/.bashrc or
something, but I want to restrict *who* can mount that partition.

The little bit of reading I've done seems to indicate that I can allow any
user to mount a partition by specifying "user" but I can't say
"group=parents" or "users=a,b,c" or something like that. I don't want any
user to mount a partition, I want only users x and y, or who belong to
group z, to mount that partition.

-Dondo

--
o__
,>/'_ o__
(_)\(_) ,>/'_ o__
What am I on? (_)\(_) ,>/'_ o__
I'm on my bike, (_)\(_) ,>/'_ o__
6 hours a day, busting my ass. (_)\(_) ,>/'_
What are you on? --Lance Armstrong (_)\(_)


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCP - Obtaining an IP from different ranges depending by hw-pc type-MAC address. plao Windows Networking 1 07-27-2007 08:57 PM
multiple ethernet interfaces, routing depending on destination smagister@gmail.com Linux Networking 1 02-04-2007 06:10 PM
Default route depending on Klaus Gerhardt Linux Networking 12 05-13-2006 08:25 AM
Different user/group/permissions depending on which folder inside the Samba share a file is created in? arabub Linux Networking 2 05-21-2004 07:00 AM
Wireless Networking Intermittent Depending on CPU usage Robert M. Rosa Windows Networking 3 12-13-2003 08:36 PM



1 2 3 4 5 6 7 8 9 10 11