Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Dec 2003 15:53:25 +0100
From:      Harald Schmalzbauer <h@schmalzbauer.de>
To:        Dany <dany_list@natzo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Mounting CDROM as user under 5.x
Message-ID:  <200312311553.31025@harrymail>
In-Reply-To: <3FF2E1D9.3070604@natzo.com>
References:  <3FF2612A.6050903@natzo.com> <200312311113.38233@harrymail> <3FF2E1D9.3070604@natzo.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--Boundary-02=_rLu8/3Q6WjXnkeV
Content-Type: text/plain;
  charset="iso-8859-15"
Content-Transfer-Encoding: 7bit
Content-Description: signed data
Content-Disposition: inline

On Wednesday 31 December 2003 15:48, Dany wrote:
> I'v checked my kernel config and it had the "Options CD9660".
>
> Beside the mounting problem as I said the user cannot use the linked
> device (/dev/dvd) to just watch a DVD (not need for mounting, just
> access to the device).
>
> Can you post the system configuration files that you're using in order
> to allow your users to mount CD drives ?

cale:/tmp# sysctl vfs.usermount
vfs.usermount: 1

in /etc/devfs.conf:
perm    xpt0    0660
perm    pass0   0660
perm    cd0     0660
link    cd0     cdrom
link    acd0    acd0c

cale:/dev# ll cd*
crw-rw----  1 root  operator  -   4,  27 28 Dez 21:57:24 2003 cd0
lrwxr-xr-x  1 root  wheel     -        5 28 Dez 21:57:40 2003 cdrom -> cd0

Is your user in the correct group? (operator in my example)
Note: I'm using atapicam so you should consider cd0 as acd0

-Harry


>
> Thank you
> Dany
>
> Harald Schmalzbauer wrote:
> >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@freebsd.org mailing list
> >>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> >>To unsubscribe, send any mail to
> >>"freebsd-questions-unsubscribe@freebsd.org"

--Boundary-02=_rLu8/3Q6WjXnkeV
Content-Type: application/pgp-signature
Content-Description: signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQA/8uLqBylq0S4AzzwRAs+3AJ0V4onHGXpdXROxf5OOvIeLz5ii/QCeMuV/
TOyu7rsZnfXHg6aF6Kk2pYo=
=e/Ba
-----END PGP SIGNATURE-----

--Boundary-02=_rLu8/3Q6WjXnkeV--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200312311553.31025>