[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: PPP problems with the Debian 2.2



On Sat, Sep 30, 2000 at 02:02:20PM +0100, Glyn Millington wrote:
> On Sat, Sep 30, 2000 at 06:38:36AM -0500, thus spake John Hasler:
> > Martti Hamunen writes:
> > > How can I use pppconfig as user (not only as root)?
> > 
> > By using the sudo command.  man sudo.
> > 
> > > I don't want to use the netconnection as root.
> > 
> > You don't need to.  Pppconfig is just for configuring ppp, not for running
> > it.  To be able to use pon as a user to bring up ppp run pppconfig, go to
> > 'Advanced', go to 'Add User', and enter your username.  This adds you to
> > the dip group, all of whose members can run ppp.
> 
> 
> Now there's a thing!  I did all that (and added myself to group
> dialout) and when I tried to run "pon" I got this message

dip, not dialout, remove yourself from group dialout and add yourself
to group dip:

gpasswd -d yourusername dialout
adduser yourusername dip

> /usr/sbin/pppd: must be root to run /usr/sbin/pppd, since it is not setuid-root

hmm....

> 
> so I changed pppd to setuid-root
> 
> chmod u+s /usr/sbin/pppd
> 
> Can you tell me, have I done a BAD THING?  And what then is the
> right way?

well i think its permissions were screwed up, now EVERYONE can run
pppd, which is not good IMO, do this to fix it:

chown root.dip /usr/sbin/pppd
chmod 4754 /usr/sbin/pppd
ls -l /usr/sbin/pppd 

the last command should look like this:

-rwsr-xr--    1 root     dip        252392 Apr  1  2000 /usr/sbin/pppd

-- 
Ethan Benson
http://www.alaska.net/~erbenson/

Attachment: pgpi52flIZ2FI.pgp
Description: PGP signature


Reply to: