linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to find out which udev rule is applied?
@ 2007-01-29 22:12 dark_mail
  2007-01-29 22:29 ` Kay Sievers
  0 siblings, 1 reply; 2+ messages in thread
From: dark_mail @ 2007-01-29 22:12 UTC (permalink / raw)
  To: linux-hotplug

First, I hope I'm on the right mailinglist for my question, and
apologize if I'm not ...

How can I find out which rule (at least which rule file) udev uses to
generate/assign device nodes?
udevmonitor doesn't give me much information on that.

To make myself clear, my actual problem:
I have a printer/scanner combo, which is working but one problem: Since
some time ago, /dev/usb/lp0 is assigned to root:scanner instead of
root:lp, causing cups to fail.

I already edited some rules files in hope to sort it out, but without
success.

Now I'd like to find out which rule is actually used to create the
device node, so I can either modify it or make my own rule setting the
permissions.

Is there a way to achieve this?

-------------------------------------------------------------------------
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&CIDÞVDEV
_______________________________________________
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to find out which udev rule is applied?
  2007-01-29 22:12 How to find out which udev rule is applied? dark_mail
@ 2007-01-29 22:29 ` Kay Sievers
  0 siblings, 0 replies; 2+ messages in thread
From: Kay Sievers @ 2007-01-29 22:29 UTC (permalink / raw)
  To: linux-hotplug

On 1/29/07, dark_mail@gmx.net <dark_mail@gmx.net> wrote:
> First, I hope I'm on the right mailinglist for my question, and
> apologize if I'm not ...
>
> How can I find out which rule (at least which rule file) udev uses to
> generate/assign device nodes?
> udevmonitor doesn't give me much information on that.
>
> To make myself clear, my actual problem:
> I have a printer/scanner combo, which is working but one problem: Since
> some time ago, /dev/usb/lp0 is assigned to root:scanner instead of
> root:lp, causing cups to fail.
>
> I already edited some rules files in hope to sort it out, but without
> success.
>
> Now I'd like to find out which rule is actually used to create the
> device node, so I can either modify it or make my own rule setting the
> permissions.
>
> Is there a way to achieve this?

What does:
  udevtest /sys/class/printer/lp0

print? If it shows the scanner gid, there must be a rule that assigns
it. If not, blame pam_console or similar to mess up your permission
after udev has created the node.

Kay

-------------------------------------------------------------------------
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&CIDÞVDEV
_______________________________________________
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-01-29 22:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-29 22:12 How to find out which udev rule is applied? dark_mail
2007-01-29 22:29 ` Kay Sievers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).