success (Re: USB problem: /dev/ugen* dynamically auto-reconfigures to root:operator 644, so non-root user unable to access USB devices even if wanted)

From: Andreas Klemm (andreas_at_freebsd.org)
Date: 10/20/03

  • Next message: Poul-Henning Kamp: "Re: success (Re: USB problem: /dev/ugen* dynamically auto-reconfigures to root:operator 644, so non-root user unable to access USB devices even if wanted)"
    Date: Mon, 20 Oct 2003 14:09:50 +0200
    To: Poul-Henning Kamp <phk@phk.freebsd.dk>
    
    

    Poul-Henning,

    many thanks for you kind guidance to the wonderful world of
    devfs (which I never had to tweak in the past) ;-)

    On Mon, Oct 20, 2003 at 01:44:50PM +0200, Poul-Henning Kamp wrote:
    > I would probably just use a wildcard:
    > perm ugen* 0666

    The wildcard feature is really fine ! Thanks for pointing
    me into that direction.

    > This makes the rules only apply to devices arriving in the future,
    > you also need:
    > devfs rule applyset
    > to make them apply to currently available devices.

    Good hint ! Thanks !

    Well and now things work like expected.

    I put these devfs commands now into /etc/rc.local.

    But since /etc/rc.local officially has gone, I think this
    is not the best place ...

    After a longer examination of /etc/devfs, /etc/rc.subr
    /etc/defaults/devfs.rules and /etc/defaults/rc.conf
    I got the clue, that I can put the statements into /etc/devfs.rules.

    Hint: here again we seem to be missing a manpage: devfs.rules(5).

    In /etc/rc.subr you see for example a reference to this manpage,
    but it doesn't exist.

            Andreas ///

    -- 
    Andreas Klemm - Powered by FreeBSD 5.1-CURRENT
    Need a magic printfilter today ? -> http://www.apsfilter.org/
    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
    

  • Next message: Poul-Henning Kamp: "Re: success (Re: USB problem: /dev/ugen* dynamically auto-reconfigures to root:operator 644, so non-root user unable to access USB devices even if wanted)"

    Relevant Pages

    • Re: devfs doesnt set access rights
      ... >> configuring FreeBSD are documented here. ... > writing this manpage and working to improve it! ... my motivation for writing the manpages was to stop the ... tide of "how do I configure devfs" postings on -questions. ...
      (freebsd-stable)
    • Re: No MAKEDEV in /dev
      ... > manpage for MAKEDEV make it a bit more clear that having 'devfs' means ... > that MAKEDEV commands are no longer necessary because devfs will take ... patch to the manpage source, or at least with your proposed rewording. ... Kris ...
      (freebsd-questions)
    • Re: No MAKEDEV in /dev
      ... > that MAKEDEV is deprecated by devfs. ... I guess this is a place where the documentation hasn't yet been ... I didn't think to check the manpage until just after I sent ...
      (freebsd-questions)