Mounting CDROM as user under 5.x
Harald Schmalzbauer
h at schmalzbauer.de
Wed Dec 31 02:13:43 PST 2003
On Wednesday 31 December 2003 10:08, Andrew L. Gould wrote:
> On Tuesday 30 December 2003 11:39 pm, Dany wrote:
> > Hello,
> >
> > Because I didn't get any response on BSDforums, I've decided to try my
> > chance here.
> >
> > I'm trying to get my single user (belonging to the wheel group) mounting
> > a CD drive under 5.x using devfs (5.2RC2).
> > Could somebody post a very simple howto showing the files to modify ?
> > Thanx
> >
> > So far I've tried the following things without success :
> >
> > mkdir /home/username/mount/cdrom
> > chown username /home/username/mount/cdrom
> > chmod 755 /home/username/mount/cdrom
> >
> > added the following to /etc/sysctl.conf
> > vfs.usermount=1
> >
> > added the following to /dev/devfs.conf
> > link acd0 cdrom
> > perm acd0 0660
> >
> > added /etc/devfs.rules with
> > [my_ruleset=10]
> > add path 'acd*' mode 660
> >
> > added the following to /etc/rc.conf
> > devfs_system_ruleset="my_ruleset"
> >
> > /dev/cdrom now shows up and root can use it to play a DVD for example
> > but user cannot use it either directly (/dev/cdrom) or when trying to
> > mount a CD (mount_cd9660 /dev/cdrom /home/username/mount/cdrom) .. the
> > result is Operation not permitted
> >
> > Thank you
> > Dany
>
> All I do for my user that's a member of wheel under FreeBSD 4.* is:
>
> chmod u+s /sbin/*mount
>
> Does this not work in FreeBSD 5.*?
No, 5 has devfs.
Dany, make sure you have CD9660 compiled into the kernel, normal user aren't
allowed to load kernel modules. Also securemode should net be set.
And the mountpoint should be owned by the user (which is in your case I think
since its under $home).
I had the same problem and it was simply the missing CD9660 bits in the kernel
-Harry
>
> Andrew Gould
>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20031231/b173b805/attachment.bin
More information about the freebsd-questions
mailing list