How do I authorise my non-root user to manually mount/unmount ALL media on my desktop. I always get denied permission.
Media refers to all mountable USB devices and other partitions on my HDD as well.
How do I authorise my non-root user to manually mount/unmount ALL media on my desktop. I always get denied permission.
Media refers to all mountable USB devices and other partitions on my HDD as well.
Pmount is the command-line tool that I always recommend. It is a policy-based mounting program that does not require any sudo
. It is useful especially for media such as USB disks, because, by default, it recognizes removable media and allows normal users to mount them. You can also extend its functionality to devices whitelisted in a configuration file.
For suggestions on automated mounting solutions, have look at this question.
have you tried adding the 'user' key to the options portion of the relevant lines in /etc/fstab?
/dev/cdrom /mnt/cdrom iso9660 noauto,ro,user 0 0
that would allow regular users to be able to mount cds or dvds.
just add similar lines for your thumbdrives or USB disks. arg1 can be a UUID too, if you have multiple devices of the same type with different filesystems.
automount
and I think you will have what you are looking for.
– Kevin M
Oct 02 '11 at 23:03