Best Practice for Allowing non-root Users Access to Serial Port?

David Kelly dkelly at hiwaay.net
Fri Apr 1 10:51:12 PST 2005


On Fri, Apr 01, 2005 at 11:17:14AM -0600, Martin McCormick wrote:
> 	What is the safest way to let non-root users access
> /dev/ttyd0?  I notice that in FreeBSD, /dev/ttydx is owned by
> root:wheel.  In linux, the ttySx's are in a special group so the trick
> there is to add users to that group and make sure the ttyS's are group
> writable.
> 
> 	Here, I want the users to be able to use C-kermit to talk to a
> remote device without them having to be root.

Add the users to group "dialer" as this is what Kermit needs to create
uucp locks.

Then as others have already stated use /dev/cuaa0, the "call out"
device, rather than ttyd0.

-- 
David Kelly N4HHE, dkelly at HiWAAY.net
========================================================================
Whom computers would destroy, they must first drive mad.


More information about the freebsd-questions mailing list