Results 1 to 7 of 7

Thread: change group permanently for a device

  1. #1
    Join Date
    Mar 2010
    Location
    Southern Europe
    Posts
    352

    Default change group permanently for a device

    When I start VirtualBox I have to change to vboxusers the group for the file
    /dev/bus/usb/004/002 which is a usb printer.
    Otherwise, VBox cannot connect to it.
    Every time I boot the group is always lp
    Can anybody tell me how to change it permanently?

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,153

    Default Re: change group permanently for a device

    You can not change it permanently because this file (and its user:group) is created either at boot (when the device is connected allready) or later (when it is connected) and lost at shutdown. However you may be able to influence the ownership at creation time by creating an applicable udev rule: Writing udev rules
    Henk van Velden

  3. #3
    Join Date
    Jun 2008
    Location
    Skogås Sweden
    Posts
    638

    Default Re: change group permanently for a device

    Add your user to the lp group!

  4. #4
    Join Date
    Mar 2010
    Location
    Southern Europe
    Posts
    352

    Default Re: change group permanently for a device

    Quote Originally Posted by hank_se View Post
    Add your user to the lp group!
    Of course... Thanks. Sometimes it's so easy that you need somebody to make you think. Thanks again.

  5. #5
    Join Date
    Mar 2010
    Location
    Southern Europe
    Posts
    352

    Default Re: change group permanently for a device

    Quote Originally Posted by hcvv View Post
    You can not change it permanently because this file (and its user:group) is created either at boot (when the device is connected allready) or later (when it is connected) and lost at shutdown. However you may be able to influence the ownership at creation time by creating an applicable udev rule: Writing udev rules
    I have already resolved the problem adding myself to lp group following hank_se advice.
    But I'll take a look at that link. Thank you.

  6. #6
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,153

    Default Re: change group permanently for a device

    hank_se gave a solution your problem, mine was a solution to your question.
    Henk van Velden

  7. #7
    Join Date
    Mar 2010
    Location
    Southern Europe
    Posts
    352

    Default Re: change group permanently for a device

    Quote Originally Posted by hcvv View Post
    hank_se gave a solution your problem, mine was a solution to your question.
    Yes! And I appreciate it! When it's possible without much trouble, I prefer this kind of solution than just a shortcut to avoid the problem.
    Thanks again.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •