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 ...
- 01-30-2011 #1Just 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
- 01-30-2011 #2
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
- 01-30-2011 #3Just 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:
ThanksCode:/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
- 01-31-2011 #4
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
- 01-31-2011 #5Just 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.
- 01-31-2011 #6Just Joined!
- Join Date
- Jan 2011
- Posts
- 3
- 01-31-2011 #7Just 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
- 01-31-2011 #8
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.


Reply With Quote
