mincom - permissions

Mikkel L. Ellertson mikkel at infinity-ltd.com
Fri Aug 31 17:55:20 UTC 2007


David Timms wrote:
> Ed Landaveri wrote:
>> [root at tuxy ~] # chmod o+rw /dev/ttyS0
>> (If you wanna start it as a regular user though it
>> goes back to default every reboot)
> 
> Anyone know the proper way to ensure user x always has permissions for
> using the ttyS0 ?
> 
I can think of a couple of ways. If you want the person logged into
the console to always have permissions, then you can create a
console.perms rule to change ownership when the user logs in, and
change it back when they log out.

/etc/security//console.perms.d/tty0.perms

# tty0 permissions for use with minicom
#
<minicom>=/dev/tty0

<console> 0600 <minicom> 0660 root.uucp

On the other hand, the default udev setup sets it to permission 660
and ownerd by root.uucp, so if you add users to the uucp group, they
will be able to access all the serial ports.

You may also want to restrict the people that can use minicom by
editing /etc/minicom.users

Mikkel
-- 

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20070831/b12dbca1/attachment-0001.sig>


More information about the fedora-list mailing list