Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Device permissions 1

Status
Not open for further replies.

verland

MIS
Apr 24, 2002
138
US
I have a machine with a few ttyS's on it and can only run minicom as root ("cannot open /dev/ttyS3:permission denied"). I chowned them to me and it works fine.

Is that a normal thing to do? any better ideas? Thanks!
 
Usually not a good idea.
Easier would be to assign a viable group permission
chmod 770 /dev/tty3
chgrp wheel /dev/tty3
Then add your users to the wheel group.
But still not a good idea.

Some common ways to do this is to make minicom suid, or
to create some sudoer users for minicom and sudo
minicom.
 
That's what I thought, I'd chowned it back to root anyway after finding out you need to run root in minicom just to switch tty ports. Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top