udev rule/permissions question

Hiisi very-cool at rambler.ru
Mon Jul 26 07:39:20 UTC 2010


2010/7/25 Kevin J. Cummings <cummings at kjchome.homeip.net>:
> On 07/25/2010 11:09 AM, Hiisi wrote:
>> Dear users!
<--SNIP-->
>
> What are the permissions on bus/usb/001/026?  From my testing, if you
> chown a symlink, it changes the permissions on what it points to, not on
> the link itself....

# ls -l /dev/modem
lrwxrwxrwx. 1 root root 15 26.7. 11:45 /dev/modem -> bus/usb/001/015

ls -l /dev/bus/usb/001/015
crw-rw-r--. 1 root dialout 189, 14 26.7. 11:45 /dev/bus/usb/001/015

>
> I did the following:
>
> % touch foo
> % ls -l foo
> -rw-rw-r-- 1 cummings cummings 0 2010-07-25 15:07 foo
> % ln -s foo bar
> % ls -l bar
> lrwxrwxrwx 1 cummings cummings 3 2010-07-25 15:08 bar -> foo
> % sudo chown root:wheel bar
> % ls -l foo bar
> lrwxrwxrwx 1 cummings cummings 3 2010-07-25 15:08 bar -> foo
> -rw-rw-r-- 1 root     wheel    0 2010-07-25 15:07 foo
>

Thanks for the hint, Kevin!
-- 
Hiisi.
Registered Linux User #487982. Be counted at: http://counter.li.org/
--
Spandex is a privilege, not a right.


More information about the users mailing list