[Nut-upsuser] SUSE 10.0 and MGE Ellipse

Paul Mogren fkamogee at yahoo.com
Sun Feb 5 03:46:18 UTC 2006


Apologies, I replied to author instead of the list.

--- Paul Mogren <fkamogee at yahoo.com> wrote:

> Date: Sat, 4 Feb 2006 19:43:28 -0800 (PST)
> From: Paul Mogren <fkamogee at yahoo.com>
> Subject: Re: [Nut-upsuser] SUSE 10.0 and MGE Ellipse
> To: Peter Selinger <selinger at mathstat.dal.ca>
> 
> Peter, 
> 
> /proc/bus/usb/BBB/DDD is not a symlink in the "ln
> -s"
> sense; that's why I quoted my usage of the term. It
> appears as a regular file, which is correct for
> libusb
> access, though it pertains to a device. The file is
> created by the SYMLINK directive in this udev rule:
> 
> SUBSYSTEM="usb_device", PROGRAM="/bin/sh -c 'X=%k
> X=$${X#usbdev} B=$${X%%%%.*} D
> =$${X#*.}; echo bus/usb/$$B/$$D'", SYMLINK+="%c"
> 
> What I observed is that appending
> permissions-related
> directives to that rule causes those permissions to
> be
> applied to the /dev/usbdevB.D device file, and not
> to
> the regular file at /proc/bus/usb/BBB/DDD.
> 
> Thanks anyway
> -Paul
> 
> 
> --- Peter Selinger <selinger at mathstat.dal.ca> wrote:
> 
> > Paul Mogren wrote:
> > > 
> > > I spent some time on it this weekend. I
> deciphered
> > the
> > > release note to mean we need to use udev rules
> > and/or
> > > the hwup mechanism. I tried with udev rules and
> > got
> > > close: I managed to write a rule that set the
> > > permissions on /dev/usbdevB.D, in the same rule
> > that
> > > adds a "symlink" at /proc/bus/usb/BBB/DDD;
> > however, I
> > > had no success at setting the permissions on
> > > /proc/bus/usb/BBB/DDD.
> > 
> > Paul,
> > 
> > are you saying that /proc/bus/usb/BBB/DDD is a
> > symlink to
> > /dev/usbdevB.D? 
> > 
> > In this case, the permissions on
> > /proc/bus/usb/BBB/DDD are ignored, as
> > symbolic links don't really have meaningful
> > permissions or
> > ownership. Trying to set the permissions of a
> > symbolic link will
> > update the permissions of the link target. Trying
> to
> > change the
> > ownership of a symbolic link has the analogous
> > effect, unless you use
> > "chown -h". However, who owns a symbolic link has
> no
> > practical effect,
> > as it is always ignored when trying to open or
> > manipulate the link. 
> > 
> > In short, if the permissions of /dev/usbdevB.D are
> > set correctly,
> > everything should work, and you should not need
> > anything more.
> > 
> > -- Peter
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> http://mail.yahoo.com 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the Nut-upsuser mailing list