Re: udev rule/permissions question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/25/2010 11:09 AM, Hiisi wrote:
> Dear users!
> I need udev to make /dev/mymodem symlink when USB-modem is plugged in.
> So, I have created this:
> cat /etc/udev/rules.d/95-huawei-e15150.rules
> SUBSYSTEM=="usb", ATTRS{serial}=="0000:00:03.3", SYMLINK+="mymodem"
> GROUP="dialout"
> 
> Now when modem is plugged in the symlink /dev/mymodem is created but
> permissions are wrong:
> ls -l /dev/mymodem
> lrwxrwxrwx. 1 root root 15 25.7. 19:01 /dev/mymodem -> bus/usb/001/026

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

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

> I would like it to be owned by root:dialout.
> Why 'GROUP' option doesn't work? Could anybody point me to solution of this?
> TIA

-- 
Kevin J. Cummings
kjchome@xxxxxxx
cummings@xxxxxxxxxxxxxxxxxx
cummings@xxxxxxxxxxxxxxxxxxxxxxx
Registered Linux User #1232 (http://counter.li.org)
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux