PDA

View Full Version : mount a partition without root password



llvmech
6th July 2012, 01:35 AM
I have a data partition that is not mounted on boot, thats how I like it, but when I mount it as regular user I have to give root passwd .... how can I make it so that it wouldn't need root passwd to monut it?

Thanks
Erick

Doug G
6th July 2012, 02:26 AM
You can use fuse as a regular user. I think the program is fusermount but the documentation for fuse is hidden somewhere. man fusermount isn't there on my F17 but the program is.

george_toolan
6th July 2012, 10:10 AM
Try


The non-superuser mounts.
Normally, only the superuser can mount filesystems. However,
when fstab contains the user option on a line, anybody can mount
the corresponding system.

Thus, given a line

/dev/cdrom /cd iso9660 ro,user,noauto,unhide

any user can mount the iso9660 filesystem found on his CDROM
using the command

mount /dev/cdrom

or

mount /cd

Gareth Jones
6th July 2012, 06:35 PM
The "user" or "users" mount options in /etc/fstab are the normal way to do that. "users" allows a disk to unmounted by a different user to the one who mounted it, whereas "user" causes the user who originally mounted it to "own" that mount.

Skull One
6th July 2012, 06:47 PM
I have a data partition that is not mounted on boot, thats how I like it, but when I mount it as regular user I have to give root passwd .... how can I make it so that it wouldn't need root passwd to monut it?

Thanks
Erick

There is udisks for you:


udisks --mount /dev/sda1 <mountpoint>

Check 'man udisks' for details.

llvmech
6th July 2012, 09:17 PM
Thanks for the replies ....

dd_wizard
6th July 2012, 09:59 PM
Actually, check man [B]udisksctl/B] for command line tools.

dd_wizard