Permissions problem for sane

Roland Smith rsmith at xs4all.nl
Thu Aug 6 14:08:46 UTC 2015


On Thu, Aug 06, 2015 at 11:43:35AM +0100, Anthony Campbell wrote:
> My first posting to this list. I've been using 10.1 for a couple of
> months on my Thinkpad T60 without problems.
> 
> Trying to get my Epson 1650 scanner to work, I found it was only
> detected as root. It's at /dev/usb:/dev/ugen0.2
> 
> After googling, I found instructions on Freebsd manual for 8.7, which
> involved creating a usb group and making/modifying /etc/devfs.rules.
> This didn't work.
> 
> I then added myself to the wheel and operator groups but again no
> result.
> 
> Should I modify the permissions on /dev/ugen0.2?

Here is what I did to fix USB and CD-ROM/DVD access problems.

1) Created groups “usb”/“cdrom” and added my user-id to those groups.

    pw groupadd usb
    pw groupadd cdrom
    pw groupmod usb -m <username>
    pw groupmod cdrom -m <username>

2) Added the following to the file /etc/devfs.rules:

    [custom_rules=10]
    add path 'da*' mode 0660 group usb
    add path 'msdosfs/*' mode 0660 group usb
    add path 'usb/*' mode 0660 group usb
    add path 'ugen*' mode 0660 group usb
    add path 'pass*' mode 0660 group cdrom

3) Activated this ruleset in /etc/rc.conf:

    devfs_system_ruleset="custom_rules"

4) reboot to activate the new ruleset and rules.

Roland
-- 
R.F.Smith                                   http://rsmith.home.xs4all.nl/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 5753 3324 1661 B0FE 8D93  FCED 40F6 D5DC A38A 33E0 (keyID: A38A33E0)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20150806/23627675/attachment.bin>


More information about the freebsd-questions mailing list