I have a following problem. I need to let normal users mount device /dev/loop0 to a predefined directory /mnt/data. The filesystem of the device is unknown and is to be defined when mount command is invoked via -t option. Furthermore I need to specify an offset when mounting.
I edit the /etc/fstab like this:
/dev/loop0 /mnt/data auto user 0 0
Then I invoke mount like this:
mount loop,offset=32256 hdd.img /mnt/data/
Whet I get is:
mount: only root can do that
What could be the problem?
PS. User is added to "disk" group so he can access /dev/loop*. Rights to access /mnt/data are also granted.
diskgroup or b) allowing users to mount arbitrary filesystems withoutnosuid,nodevoptions you are opening your system to quick pwnage. (For example, the user can read private data straight from/dev/sda1.) – grawity May 7 '11 at 23:30