Mount /cdrom as non-root user - does this actually work for
anyone?
Joerg Pernfuss
elessar at galgenberg.net
Sat Jan 3 19:45:09 PST 2004
Hi
On Sun, 4 Jan 2004 01:13:13 +0000
Stacey Roberts <stacey at vickiandstacey.com> wrote:
> Hello,
> Thanks for the reply..,
>
> > [....]
> >
> > chmod +s /sbin/umount /sbin/mount
> >
> > works fine for me (without any other changes necessary). Don't know
> > if it's the recommended procedure though.
> >
>
> Nor I, to be honest.., I'm not sure about setting the suid bit on mount..,
> [....]
The setuid bit on mount/umount should also enable mounting/unmounting of
fixed disks, not only removeable media. Not sure if this is what you
intended at first hand...
(4:31:01) elessar at aragorn: ~> sysctl -a |grep usermount
vfs.usermount: 1
(4:31:44) elessar at aragorn: ~> id
uid=1001(elessar) gid=3000(users) groups=3000(users), 0(wheel), 5(operator), 191(trusted), 666(ssh)
(4:31:48) elessar at aragorn: ~> ll /dev/cd0c
crw-r----- 1 root operator 15, 0 Jan 2 19:19 /dev/cd0c
(4:32:02) elessar at aragorn: ~> ll -a cdrom/
total 6
drwxr-xr-x 2 elessar users 512 Oct 13 20:04 .
drwx------ 46 elessar users 2560 Jan 3 16:04 ..
(4:35:03) elessar at aragorn: ~> ll /sbin/mount_cd9660
-r-xr-xr-x 1 root wheel 85812 Dec 24 11:49 /sbin/mount_cd9660
(4:35:16) elessar at aragorn: ~> mount_cd9660 /dev/cd0c cdrom/
(4:35:52) elessar at aragorn: ~> ls cdrom/
5.1-RELEASE INSTALL.HTM boot compat22 floppies src
EARLY.HTM INSTALL.TXT boot.catalog compat3x games tools
EARLY.TXT README.HTM catpages compat4x info
ERRATA.HTM README.TXT cdrom.inf crypto manpages
ERRATA.TXT RELNOTES.HTM compat1x dict packages
HARDWARE.HTM RELNOTES.TXT compat20 doc ports
HARDWARE.TXT base compat21 docbook.css proflibs
(4:35:59) elessar at aragorn: ~> umount cdrom/
(4:36:07) elessar at aragorn: ~> ls cdrom/
(4:36:20) elessar at aragorn: ~>
This is from a RELENG_5_1 machine but I never had problems with
usermount on 4.x up to 4.8 either. Did you maybe change the permissions
on /sbin?
Just a guess for I cannot see an obvious error.
Regards,
Joerg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040104/ca29c9de/attachment.bin
More information about the freebsd-questions
mailing list