Re: Users and Groups

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

 



Michael A Peters wrote:
> 
> Did you ask how to do that?
> I have a file called
> 
> /etc/security/console.perms.d/51-custom.perms
> 
> It contains the following:
> # device classes -- these are shell-style globs
> <garmin>=/dev/ttyS0
> 
> # permission definitions
> <console> 0600 <garmin> 0660 root.uucp
> 
> 
> 
> I wrote the file because I have a garmin gps that uses the serial
> port, /dev/ttyS0
> 
> With that file in place, I do not need to do something dangerous like
> add my user to the uucp group.
> 
> I wish there was a gui tool to set that kind of thing up, though to be
> honest, there are very few device nodes for which you ever need to set
> that kind of thing up.
> 
I tend to get slightly more complicated then that, because I have
more then one device that looks like a USB serial port. So I have a
udev rule to create a symlink specific to the device, and then have
console.perms trigger on the symlink instead of the device. For an
example, take a look at the udev rules that are part of the gpsd
package. I suspect something like this would work:

SUBSYSTEM=="tty", SYSFS{idVendor}=="091e", SYSFS{idProduct}=="0003",
SYMLINK="gps%n"

You would then use "<garmin>=/dev/gps*" instead of
"<garmin>=/dev/ttyS0". That way, it covers the case where you have
more then one GPS device connected.

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux