All of lore.kernel.org
 help / color / mirror / Atom feed
From: linuxguy <linuxguy123@gmail.com>
To: linux-hotplug@vger.kernel.org
Subject: Setting USB port permissions with udev rules ?
Date: Thu, 22 Mar 2007 23:13:18 +0000	[thread overview]
Message-ID: <1174605198.12343.3.camel@zd7280> (raw)

Somewhat off topic.  Sorry.  I don't know where else to turn for advice.

I have several USB devices that I need to set permissions for.  I have
created a file called 55-myusb-rules and put it in /etc/udev/rules.d.

This is the file:

#OLIMEX USB JTAG Debugger
#This one works
SYSFS{idProduct}="0003", SYSFS{idVendor}="15ba", MODE="666",
OWNER="xxx", GROUP="users"

#PL2303 USB SERIAL DEVICES
#This one works
SYSFS{idProduct}="2303", SYSFS{idVendor}="067b", MODE="666",
OWNER="xxx", GROUP="users"

#Custom Device
#This rule does not work !
SYSFS{idProduct}=”0004”, SYSFS{idVendor}=”efff”, MODE=”666”,
OWNER="xxx", GROUP-"users"

As the comments in the rules state, the permissions do not set properly
for the last device.

Here is what is on my computer for USB devices. 

$ lsusb
Bus 002 Device 002: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial
Port
Bus 002 Device 003: ID 15ba:0003
Bus 002 Device 001: ID 0000:0000
Bus 003 Device 006: ID efff:0004
Bus 003 Device 002: ID 046d:c512 Logitech, Inc.
Bus 003 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

$ ls -l /dev/bus/usb/003/
total 0
crw-rw-r-- 1 root root 189, 256 2007-03-22 01:26 001
crw-rw-r-- 1 root root 189, 257 2007-03-22 11:26 002
crw-rw-r-- 1 root root 189, 261 2007-03-22 11:15 006

Yet for the first two...
ls -l /dev/bus/usb/002/
total 0
crw-rw-r-- 1 root  root  189, 128 2007-03-22 01:26 001
crw-rw-r-- 1 xxx users 189, 129 2007-03-22 07:26 002
crwxrwxrwx 1 xxx users 189, 130 2007-03-22 11:08 003

If I manually set the permissions for the third device, it works fine.  
Why doesn't my rule set the permission for the 3rd device ?

Thanks. 



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDfiVDEV
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

             reply	other threads:[~2007-03-22 23:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-22 23:13 linuxguy [this message]
2007-03-22 23:45 ` Setting USB port permissions with udev rules ? Kay Sievers
2007-03-23 11:42 ` Sergey Vlasov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1174605198.12343.3.camel@zd7280 \
    --to=linuxguy123@gmail.com \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.