Find the answer to your Linux question:
Results 1 to 7 of 7
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2003
    Posts
    15

    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
    Location
    Calgary, AB CANADA
    Posts
    496
    Edit your /etc/fstab file and add the user option.

    If your current file have something like this in it:
    Code:
    /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
    Just Joined!
    Join Date
    Jul 2003
    Posts
    15

    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

    oli

  4. #4
    flw
    flw is offline
    Linux Engineer
    Join Date
    Mar 2003
    Location
    U.S.A.
    Posts
    1,025
    See if the following is of any help: http://www.this_site_does_not_exist/...ht=mount+drive
    Dan

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

  5. #5
    Just Joined!
    Join Date
    Jul 2003
    Posts
    15

    Er?

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

  6. #6
    Just Joined!
    Join Date
    Jul 2003
    Posts
    15

    content copyrighted

    Yes and I hold teh copyright of that information

  7. #7
    Just Joined!
    Join Date
    Sep 2003
    Location
    Laurel, MD
    Posts
    27
    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
  •