1 |
Hi, |
2 |
|
3 |
I'd like to mount an ISO image from the command line as non-root user. |
4 |
Here are my attempts, each failing with the "only root can do that" |
5 |
error message: |
6 |
|
7 |
$ mount -o loop image.iso /mnt/ |
8 |
mount: only root can do that |
9 |
$ mount -o user,loop image.iso /mnt/ |
10 |
mount: only root can do that |
11 |
$ mount -o users,loop image.iso /mnt/ |
12 |
mount: only root can do that |
13 |
$ mount -o user -o loop image.iso /mnt/ |
14 |
mount: only root can do that |
15 |
$ mount -o users -o loop image.iso /mnt/ |
16 |
mount: only root can do that |
17 |
|
18 |
I keep reading about how the mount and umount commands need the suid |
19 |
bit set, which it already is: |
20 |
|
21 |
$ ll /bin/mount /bin/umount |
22 |
-rws--x--x 1 root root 51480 2008-04-10 14:11 /bin/mount |
23 |
-rws--x--x 1 root root 34584 2008-04-10 14:11 /bin/umount |
24 |
|
25 |
Furthermore, adding the following line to my /etc/fstab allows me to |
26 |
mount the image as non-root: |
27 |
|
28 |
/path/to/image.iso /mnt/ udf,iso9660 user,loop 0 0 |
29 |
|
30 |
However, this is not an option for me as I work with different |
31 |
images/mount points all the time. |
32 |
|
33 |
What can I do to be able to mount an arbitrary ISO image to an |
34 |
arbitrary mount point from the command line as non-root user? |
35 |
|
36 |
Thanks! |
37 |
Mike |
38 |
-- |
39 |
gentoo-user@l.g.o mailing list |