Find the answer to your Linux question:
Results 1 to 8 of 8
I want to allow regular users on my computer to be able to mount but every time a regular user tries they get a message: "Mount: Only root can do ...
  1. #1
    Just Joined!
    Join Date
    Jan 2011
    Posts
    7

    Mount: Only root can do that

    I want to allow regular users on my computer to be able to mount but every time a regular user tries they get a message: "Mount: Only root can do that". How do I allow regular users to mount?

    thanks

  2. #2
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    Regular users can only mount filesystems that are declared in the /etc/fstab file. You need to include the "user" option in the fourth column. This allows a normal user to mount the filesystem, and then only that user (or root) to unmount it.
    DISTRO=Arch
    Registered Linux User #388732

  3. #3
    Just Joined!
    Join Date
    Jan 2011
    Posts
    7
    Where do I add it, in what entery? I tried to put it in every one but im still getting the same error. This is my fstab file:

    Code:
    /dev/mapper/VolGroup-lv_root /                       ext4    defaults        1 1
    UUID=ab4c2ad2-c402-4455-bfe4-96784ff67522 /boot                   ext4    defaults        1 2
    /dev/mapper/VolGroup-lv_swap swap                    swap    defaults        0 0
    tmpfs                   /dev/shm                tmpfs   defaults        0 0
    devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
    sysfs                   /sys                    sysfs   defaults        0 0
    proc                    /proc                   proc    defaults        0 0
    Thanks

  4. #4
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    What filesystem are you trying to mount? For example, you could do:
    Code:
    /dev/sdb1    /mnt/usb_key    auto    defaults,noauto,user    0    0
    DISTRO=Arch
    Registered Linux User #388732

  5. #5
    Just Joined!
    Join Date
    Jan 2011
    Posts
    7
    I am trying to mount a folder that is on my NFS server to a folder on my NFS client machine. They a both using linux.

  6. #6
    Just Joined!
    Join Date
    Jan 2011
    Posts
    3
    Quote Originally Posted by nextgen View Post
    I am trying to mount a folder that is on my NFS server to a folder on my NFS client machine. They a both using linux.
    NFSServer:/home /mnt nfs rw,hard,intr,user 0 0

  7. #7
    Just Joined!
    Join Date
    Jan 2011
    Posts
    7
    Thanks.

    One more question, what command do I use to execute all of the automatic mounts in the /etc/fstab file?

    Thanks

  8. #8
    Linux User sgosnell's Avatar
    Join Date
    Oct 2010
    Location
    Baja Oklahoma
    Posts
    358
    sudo mount -a

    Everything in fstab is automatically mounted at boot, but if you want to mount it all without rebooting, you can use mount.

Posting Permissions

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