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

Re: Dial to the Internet as User



Hi Karl,

I checked netcfg and tried to edit ppp0 but saw that the checkbox allowing
other user to start and stop is already checked.

I also checked the kppp.conf file and found that there's a kppp.allow
containing my username, which allowed me to use kppp to dial to my server.

I read the pppd man pages and created the /etc/ppp/options file (which was
already existing but empty) and put:  privgroup dialer

I then created a dialer group and added myself to it.

I logged-in as regular user and found that I could issue the dialing
script without any complaints from pppd but nothing happens to my modem.
It doesn't even activate the ppp0.pid process. 

I also checked and saw that I've got wvdial in /etc/ppp/peer directory and
have tried dialing but it also complains about not being able to access
pppd. Never tried it as
root though.

Maybe there's something that I've missed. Any ideas?

Thanks.

-- 
Horace G. Friend III
okee mail com

PGP DH/DSS Key Fingerprint [Send email for public key.]
046A FAE0 1E45 FC3E 0560 BAA5 3BA7 9671 5D87 2BAA


karlp ourldsfamily com wrote:
> 
> This isn't a very elegant way of doing it, but I use the X-client, netcfg
> and go to the interfaces tab, then select PPP0 and it brings up a window
> which has some more tabs. On one of them, there's a check box for allowing
> any user to start or stop the interface. That worked for me before I left
> the world of slow modems and entered DSL heaven.
> 
> Karl L. Pearson
> Senior Consulting Systems Analyst
> Senior Consulting Database Analyst
> karlp ourldsfamily com
> 
> On Thu, 1 Mar 2001, Horace wrote:
> 
> Hi,
> 
> I have configured chat and pppd and created a dialing script and a hangup
> script. I  have actually connected to the internet and hangup from it --
> as root. I can't do it as an ordinary user. Everytime I ran the dialing
> script I get a msg that "only root can run or use pppd because setuid for
> root is not set".
> 
> Btw, I have tried dialing as a regular user by su-ing to root then back
> and then back again to su to hangup.
> 
> For my attempt to fix it, here's what I did:
> login as root
> chmod 4755 /usr/sbin/pppd
> chmod 0755 /usr/local/bin/dialscript /usr/local/bin/hangup
> 
> this didn't work so i tried:
> 
> chown root:pppusers /usr/sbin/pppd
> chown root:pppusers /usr/local/bin/dialscript /usr/local/bin/hangup
> 
> still did not work. I already have a pppusers group in my system.
>





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