linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* permissions: udev vs. pam_devperm.so
@ 2004-10-26  6:37 Frank Steiner
  2004-10-26 12:25 ` Kay Sievers
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Frank Steiner @ 2004-10-26  6:37 UTC (permalink / raw)
  To: linux-hotplug

Hi,

when logging in via kdm on our SuSE, the pam_devperm module sets
permissions and owner of local devices like /dev/hdc (for cdrom). So
if user "bart" logs in, he get

brw-------    1 bart     disk      22,   0 Sep 23  2003 /dev/hdc


But on some events like calling k3b etc., hotplug/udev sometimes jump
in (not always) an re-detect the block device /dev/hdc, thus setting
the permissions back to the defaults:

brw-rw----    1 root     disk      22,   0 Sep 23  2003 /dev/hdc

This stops user bart from accessing the cdrom for burning etc.

Can I tel udev to leave the permission of *existing* nodes untouched?
I figured out that I could set the line in the permissions file to

hdc*:::660

but the drawback is that udev will create /dev/hdc with the defaults
root:root and 600 like defined in udev.conf, and not with root:disk 660
like it should when no local user is logged in.

Any way to achieve that? Like a flag "leave node untouched if it exists"?

cu,
Frank

-- 
Dipl.-Inform. Frank Steiner   Web:  http://www.bio.ifi.lmu.de/~steiner/
Lehrstuhl f. Bioinformatik    Mail: http://www.bio.ifi.lmu.de/~steiner/m/
LMU, Amalienstr. 17           Phone: +49 89 2180-4049
80333 Muenchen, Germany       Fax:   +49 89 2180-99-4049



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
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] 10+ messages in thread

end of thread, other threads:[~2004-10-27  5:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-26  6:37 permissions: udev vs. pam_devperm.so Frank Steiner
2004-10-26 12:25 ` Kay Sievers
2004-10-26 12:30 ` Frank Steiner
2004-10-26 13:16 ` Kay Sievers
2004-10-26 13:20 ` Frank Steiner
2004-10-26 13:49 ` Frank Steiner
2004-10-26 14:47 ` Kay Sievers
2004-10-26 14:57 ` Kay Sievers
2004-10-27  0:02 ` Kay Sievers
2004-10-27  5:59 ` Frank Steiner

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).