mounting nfs partition depending on user

Discussion in 'Linux Networking' started by Captain Dondo, Oct 5, 2003.

  1. 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.


    ,>/'_ 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 (_)\(_)
    Captain Dondo, Oct 5, 2003
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.