*BSD News Article 69438


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.cis.okstate.edu!newsfeed.ksu.ksu.edu!news.physics.uiowa.edu!math.ohio-state.edu!howland.reston.ans.net!newsfeed.internetmci.com!news.ac.net!news1.erols.com!newsmaster@erols.com
From: Ken Bigelow <kbigelow@www.play-hookey.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Permission denied on /dev/cuaa1 using Kermit
Date: Sun, 26 May 1996 07:49:46 -0700
Organization: Erols Internet Services
Lines: 30
Message-ID: <31A86F8A.1B04@www.play-hookey.com>
References: <rllDrx0tB.HsM@netcom.com>
NNTP-Posting-Host: kenjb05.play-hookey.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 2.02 (Win16; I)

Richard L. Lamb wrote:
> 
> I feel really silly having to ask this, but can't figure it out myself.
> 
> I just installed Kermit from the ports collection, but when I try to use
> it I get "/dev/cuaa1: Permission denied" unless I'm logged in as root.
> The permissions are:
> 
> crw-rw---- 1 uucp  dialer     /dev/cuaa1
> -r-xr-sr-x 1 bin   dialer     /usr/local/bin/kermit
> 
> Now, it's a single user system, so I can work around it by changing cuaa1
> to mode 666, but is that the "right" way?  And why doesn't the setgid
> dialer on kermit allow use of the serial port?
> 

There's probably a dozen or more ways to do this, but here's one, anyway:

Edit the /etc/group file, and add your userid to the dialer group. This 
group has no names in my file, because my site is always up and 
connected, by running pppd from rc.local. If you have multiple userids 
for some reason, put them all in the dialer group as a comma-separated 
list.

When you reboot, you should have group access to all dialer devices and 
operations.

Hope it helps,

Ken