* Re: $local and user change
2004-03-03 12:37 $local and user change Gioele Barabucci
@ 2004-03-03 18:37 ` Greg KH
2004-03-03 20:08 ` Gioele Barabucci
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Greg KH @ 2004-03-03 18:37 UTC (permalink / raw)
To: linux-hotplug
On Wed, Mar 03, 2004 at 01:37:03PM +0100, Gioele Barabucci wrote:
> The $local change is nice, but I have one question about it:
>
> user "joe" plugs his usbkey (or pccard) and use it.
> Then logs out and "jack" logs in. Jack can't use the key (correctly owned by
> "joe", other users should not be able to read it) and can't even remove it
> (need to umount to avoid hw problems).
>
> How should one solve this problem?
Not use the $local rule for such a device? :)
Seriously, it sounds like you should just give the device write access
to a specific group of users, which is much easier to do.
thanks,
greg k-h
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id\x1356&alloc_id438&op=click
_______________________________________________
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] 5+ messages in thread* Re: $local and user change
2004-03-03 12:37 $local and user change Gioele Barabucci
2004-03-03 18:37 ` Greg KH
@ 2004-03-03 20:08 ` Gioele Barabucci
2004-03-03 20:14 ` Greg KH
2004-03-04 5:28 ` Robert Love
3 siblings, 0 replies; 5+ messages in thread
From: Gioele Barabucci @ 2004-03-03 20:08 UTC (permalink / raw)
To: linux-hotplug
On Wednesday 03 March 2004 19:37, Greg KH wrote:
> > [usbkey]
> > How should one solve this problem?
>
> Not use the $local rule for such a device? :)
>
> Seriously, it sounds like you should just give the device write access
> to a specific group of users, which is much easier to do.
The same problem remains even with groups (if I want the usbkey only by the
owner).
I don't see how chgrp'ing the device can be useful...
--
Gioele
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&op=click
_______________________________________________
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] 5+ messages in thread
* Re: $local and user change
2004-03-03 12:37 $local and user change Gioele Barabucci
2004-03-03 18:37 ` Greg KH
2004-03-03 20:08 ` Gioele Barabucci
@ 2004-03-03 20:14 ` Greg KH
2004-03-04 5:28 ` Robert Love
3 siblings, 0 replies; 5+ messages in thread
From: Greg KH @ 2004-03-03 20:14 UTC (permalink / raw)
To: linux-hotplug
On Wed, Mar 03, 2004 at 09:08:46PM +0100, Gioele Barabucci wrote:
> On Wednesday 03 March 2004 19:37, Greg KH wrote:
> > > [usbkey]
> > > How should one solve this problem?
> >
> > Not use the $local rule for such a device? :)
> >
> > Seriously, it sounds like you should just give the device write access
> > to a specific group of users, which is much easier to do.
> The same problem remains even with groups (if I want the usbkey only by the
> owner).
> I don't see how chgrp'ing the device can be useful...
You are saying that you want a range of users to be able to use the
device, right? Either put them all in the same group, or run some
script at login/logout time, or have them unplug and replug the device.
thanks,
greg k-h
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&op=click
_______________________________________________
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] 5+ messages in thread
* Re: $local and user change
2004-03-03 12:37 $local and user change Gioele Barabucci
` (2 preceding siblings ...)
2004-03-03 20:14 ` Greg KH
@ 2004-03-04 5:28 ` Robert Love
3 siblings, 0 replies; 5+ messages in thread
From: Robert Love @ 2004-03-04 5:28 UTC (permalink / raw)
To: linux-hotplug
On Wed, 2004-03-03 at 07:37, Gioele Barabucci wrote:
> The $local change is nice, but I have one question about it:
>
> user "joe" plugs his usbkey (or pccard) and use it.
> Then logs out and "jack" logs in. Jack can't use the key (correctly owned by
> "joe", other users should not be able to read it) and can't even remove it
> (need to umount to avoid hw problems).
>
> How should one solve this problem?
You need to use something like pam_console to change certain device
nodes at login/logout.
With udev, we need both solutions (a login/logout solution and a dynamic
solution like $local).
Robert Love
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&op=click
_______________________________________________
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] 5+ messages in thread