Find the answer to your Linux question:
Results 1 to 7 of 7

Thread: User Rights

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    User Rights

    I am trying to edit the .bashrc file so that I can mount a volume. The only problem is "root" is the only user that can mount a drive. So how do you make other users have similar rights to the "root" so as they can mount a drive?

  2. #2
    Linux User
    Join Date
    Jun 2003
    Calgary, AB CANADA
    Edit your /etc/fstab file and add the user option.

    If your current file have something like this in it:
    /dev/fd0     /mnt/floppy    auto         noauto,owner        0 0
    /dev/cdrom   /mnt/cdrom     iso9660      noauto,owner,ro     0 0
    then try adding the word 'user' to the comma seperated list...
    \"Everything should be made as simple as possible, but not simpler.\"
    Albert Einstein

  3. #3

    Mount and Un-Mount Network drives

    Thanks for the above advice, but I dont think editing the /tyc/fstab will help me in this situation.
    I need Linux to Mount a network drive every time a specific user logs in, and un mounts it when they log out, so as each user has their own home network drive, and is unable to see other users network mounted drives.

    I know I sound confused, its because I am.
    Can you please help oh knowledgeable one


  4. $spacer_open
  5. #4
    Linux Engineer
    Join Date
    Mar 2003
    See if the following is of any help: http://www.this_site_does_not_exist/

    \"Keep your friends close and your enemies even closer\" from The Art of War by Sun Tzu\"

  6. #5


    The above thread was all created by me! thats what I want to do:
    I want to mount a network drive specific per user

  7. #6

    content copyrighted

    Yes and I hold teh copyright of that information

  8. #7
    Just Joined!
    Join Date
    Sep 2003
    Laurel, MD
    Try using autofs and automount. I use it on my Solaris machines, never tried it on Linux but it should work fine. The drive will mount when the user tries to access the drive and unmount itself after a given time of not being used.

    A problem with putting a mount command into .bashrc would be that .bashrc will be executed each time the user opens a terminal. If the user opens multiple terminals each one will try to mount the drive. If the user errors out in any way that fails to follow correct logout procedures it would not unmount the drive.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts