Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Sep 1999 17:51:02 +0100
From:      Mark Ovens <mark@ukug.uk.freebsd.org>
To:        Ken Seggerman <suleyman@echonyc.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: user PPP only works for root
Message-ID:  <19990902175102.A296@marder-1>
In-Reply-To: <Pine.GSO.4.10.9909012330110.21398-100000@echonyc.com>; from Ken Seggerman on Wed, Sep 01, 1999 at 11:37:02PM -0400
References:  <19990901181345.C283@marder-1> <Pine.GSO.4.10.9909012330110.21398-100000@echonyc.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Sep 01, 1999 at 11:37:02PM -0400, Ken Seggerman wrote:
> Thanks for replying to me:
> 
> > 
> > Add ``allow user <your_user_name>'' or ``allow user *'' for everyone
> > to /etc/ppp/ppp.conf and add <your_user_name> (and anyone elses)
> > to the group ``network'' then you can run ppp as a non-root user.
> > 
> I have followed your instructions but it still does not work.
> 
> I hadn't added my regular username  to the network group, but now I have,
> and rebooted of course.
> 
> $ groups 
> suleyman wheel network
> 
> /etc/ppp/ppp.conf
> 
> default:
>  allow user suleyman
>  set speed 115200
>  set device /dev/cuaa0
> 
> permisssions are as follows:
> 
> $ ls -al /usr/sbin/ppp
> -r-xr-x---  1 root  network  195228 Feb 15  1999 /usr/sbin/ppp
  ^^^^^^^^^
Ah ha!  wrong perms, should be setuid, ``chmod 4554 /usr/sbin/ppp''
(as root)

> 
> 
> $ ls -al /dev/tun0
> cr-xr-x---  1 uucp  dialer   52,   0 Sep  1 23:13 /dev/tun0

Mine is:

crw-------  1 uucp  dialer   52,   0 Sep  2 17:49 /dev/tun0

> 
> $ ls -al /dev/cuaa0$ ppp
> cr-xr-x---  1 uucp  dialer   28, 128 Sep  1 23:13 /dev/cuaa0

Mine (I use cuaa2) is:

crw-rw----  1 uucp  dialer   28, 130 Sep  2 17:49 /dev/cuaa2

HTH

> 
> still no ppp unless I su
> 
> $ ppp
> Working in interactive mode
> Warning: No available tunnel devices found (Permission denied).
> Warning: bundle_Create: No such file or directory
> 
> $ su
> Password:
> ashram# ppp
> Working in interactive mode
> Using interface: tun0
> ppp ON ashram> 
> 
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message

-- 
STATE-OF-THE-ART: Any computer you can't afford.
OBSOLETE: Any computer you own.
________________________________________________________________
      FreeBSD - The Power To Serve http://www.freebsd.org
      My Webpage http://ukug.uk.freebsd.org/~mark/
mailto:mark@ukug.uk.freebsd.org              http://www.radan.com



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990902175102.A296>