On Sun, Jan 02, 2000 at 09:40:01AM -0800, Ray Olszewski wrote:
> I'm not specifically familiar with wvdial, but with other ppp dialers, the
> usual solution is to set the suid bit on the app ("chmod +s
> /pathname_goes_here/wvdial") to let users other than root make connections.
> Have you tried that?
> 
> At 09:21 AM 1/2/00 -0800, Serge Rey wrote:
> >As root, wvdial works just fine. However, what I am trying to do is set
> >up things so that nonroot users can use wvdial ....

okay. There's a message on howto set up groups to use the modem, but
as I fiddle around more, the way I get the message 
ttyS0: Device or resource busy
is if something else already has the serial port open

try doing a ls -l /var/lock
there should be a file
LCK..ttyS0
do a cat /var/lock/LCK..ttyS0
there should be a number and a name.
The name is a user, and the number is a process ID. do a
ps aux | grep <the number you saw>
if something shows up, that program has the serial port open, and you'll
need to deal with it before you run wvdial. otherwise, it's a stale lock
and you can just
rm -f /var/lock/LCK..ttyS0

give that a whirl, and if you start getting 
/dev/ttyS0: Permission Denied
read on.

have fun

greg 

This should work, but debian doesn't install wvdial as suid, so
I'm going to assume it doesn't need to. Probably all you should 
have to do is let the users you want have access to the serial port.

do a ls -l /dev/ttyS0.
here it reports

crw-rw----    1 root     dialout    4,  64 Dec 26 15:28 /dev/ttyS0

so anyone in the dialout group has rw permissions.
then add the users that you want to be able to dial to the dialout
group.

on my systems, I can do this with 
adduser username groupname

now. If the serial port looks like

crw-------    1 root     root    4,  64 Dec 26 15:28 /dev/ttyS0
you can add a dialout group yourself.

first, do a 
addgroup dialout
then a 
adduser username dialout
then
chown root:dialout /dev/ttyS*
chmod 660 /dev/ttyS*

and the user that you added to dialout should be able to use wvdial.


hope this helps

greg
-- 
this is not here

Reply via email to