How should I start PPP as a normal user?

How should I start PPP as a normal user?

Post by Russ Paiell » Sat, 11 Oct 1997 04:00:00



I have a script to start PPP. However, the script only has execute
permission for root. Should I just give normal users (I am the only
user) execute permission, or (for security reasons) should I become
superuser whenever I want to execute the script? And how should I get
PPP to start whenever I log in as a normal user? Thanks.

--

Russ Paielli
http://www.geocities.com/CapeCanaveral/Lab/9488/

 
 
 

How should I start PPP as a normal user?

Post by Anthony Schlemme » Sun, 12 Oct 1997 04:00:00



> I have a script to start PPP. However, the script only has execute
> permission for root. Should I just give normal users (I am the only
> user) execute permission, or (for security reasons) should I become
> superuser whenever I want to execute the script? And how should I get
> PPP to start whenever I log in as a normal user? Thanks.
> --
> Russ Paielli
> http://www.geocities.com/CapeCanaveral/Lab/9488/

I use "sudo" to allow "regular" users to run PPP as root. Since sudo uses an
sudoers file I can limit PPP access to only trusted users. I don't think that
sudo is standard in the various Linux distributions but I'm sure it's available
in source form out on the net.  The only distribution I know it's part of
is Slackware as that's what I'm using.

Anthony

--

Anthony Schlemmer


 
 
 

How should I start PPP as a normal user?

Post by Brian McCaule » Sun, 12 Oct 1997 04:00:00




> > I have a script to start PPP. However, the script only has execute
> > permission for root. Should I just give normal users (I am the only
> > user) execute permission, or (for security reasons) should I become
> > superuser whenever I want to execute the script? And how should I get
> > PPP to start whenever I log in as a normal user? Thanks.

The script doesn't need to run as root.  pppd itself can be installed
setuid root.

Quote:> I use "sudo" to allow "regular" users to run PPP as root. Since sudo uses an
> sudoers file I can limit PPP access to only trusted users.

You can do that using ordinary Unix permissions on pppd.  If you allow
the "trusted users" to pass arbitarary options to pppd you may as well
just give these users the root password as pppd will let them execute
an arbitrary script through the connect option.

--

 .  _\\__[oo       from       | Phones: +44 121 471 3789 (home)

.  l___\\    /~~) /~~[  /   [ | PGP-fp: D7 03 2A 4B D8 3A 05 37...
 # ll  l\\  ~~~~ ~   ~ ~    ~ | http://wcl-l.bham.ac.uk/~bam/

 
 
 

How should I start PPP as a normal user?

Post by Emmanuel Emo » Sat, 18 Oct 1997 04:00:00


I am trying to establish a PPP connection to my ISP from my Linux box and I get
the following error message in the /var/adm/message file

Connect ppp0<-->/dev/ttyS1
Hangup (SIGHUP)
Modem hangup
Connection terminated
Exit

My options file in /etc/ppp looks like this:

debug
/dev/ttyS1
38400
modem
crtscts
lock
connect /etc/ppp/net-connect
asyncmap 0
defaultroute

My net-connect file in /etc/ppp looks like this:
#!/bin/sh
/usr/sbin/chat -v -t 60 -f /etc/ppp/net-chat

My net-chat file in /etc/ppp looks like this:

ABORT 'BUSY'
ABORT 'ON CARRIER'
''              AT&F\r
OK              AT&D2C1\r
OK              ATD5555555\r
ogin:           username\r
sword:          password\r

When I execute /usr/sbin/pppd, I hear the dialing and connection then nothing
happens.
I followed the instruction publiched in Linux Journal  (LJ#36: Novice-to-Novice
- A 10-Minute Guide for Using PPP to Connect Linux to the Internet).

Any idea why the phone keeps* up?

Emmanuel Emore

 
 
 

How should I start PPP as a normal user?

Post by Emmanuel Emo » Mon, 20 Oct 1997 04:00:00


Please disregard my previous posting (Problem with PPP connection). There are a
couple of things I have not tried in PPP-HOWTO and Net2 HOWTO that might
resolve my problem.  I think it is related to routing and my network card on
the local LAN. Sorry for any inconvenience.

Emmanuel Emore


Quote:

>I am trying to establish a PPP connection to my ISP from my Linux box and I
get
>the following error message in the /var/adm/message file

>Connect ppp0<-->/dev/ttyS1
>Hangup (SIGHUP)
>Modem hangup
>Connection terminated
>Exit

>My options file in /etc/ppp looks like this:

>debug
>/dev/ttyS1
>38400
>modem
>crtscts
>lock
>connect /etc/ppp/net-connect
>asyncmap 0
>defaultroute

>My net-connect file in /etc/ppp looks like this:
>#!/bin/sh
>/usr/sbin/chat -v -t 60 -f /etc/ppp/net-chat

>My net-chat file in /etc/ppp looks like this:

>ABORT 'BUSY'
>ABORT 'ON CARRIER'
>''              AT&F\r
>OK              AT&D2C1\r
>OK              ATD5555555\r
>ogin:           username\r
>sword:          password\r

>When I execute /usr/sbin/pppd, I hear the dialing and connection then nothing
>happens.
>I followed the instruction publiched in Linux Journal  (LJ#36:
Novice-to-Novice
>- A 10-Minute Guide for Using PPP to Connect Linux to the Internet).

>Any idea why the phone keeps* up?

>Emmanuel Emore

 
 
 

How should I start PPP as a normal user?

Post by Scam » Wed, 22 Oct 1997 04:00:00



(Emmanuel Emore), the following was written:

Quote:> When I execute /usr/sbin/pppd, I hear the dialing and connection then
> nothing happens.
> I followed the instruction publiched in Linux Journal  (LJ#36:
> Novice-to-Novice - A 10-Minute Guide for Using PPP to Connect Linux to

  > the Internet).> .

Where are your ip addresses?  You need to set you local & remote
addresses.  If you don't know them, you need to tell pppd to get them
dynamically.

Also, man pppd to figure out how to add more debugging to pppd (in
/etc/ppp).  This will tell exactly where you pppd connection is dying.

--

(remove NOSPAM to reply)
10/20/97 23:08

 
 
 

1. Starting/stopping PPP as normal user (RH 4.0)

Is it possible to start and stop PPP as a normal user? I tried creating
a script like this:

#!/bin/sh
exec /etc/sysconfig/network-scripts/ifup
/etc/sysconfig/network-scripts/ifcfg-ppp0

and called it start-ppp; and another one called stop-ppp with "ifdown"
instead of "ifup". So far, so good, as long as you're root, but appar-
ently you can't chmod 4755 this thing and then run it as a user.
*Is* there a way to do this?

 - Thomas.

--
NOTE:  The address in the message header is bogus. This is a deliberate

2. Bash fails to find executable

3. Starting KDE as normal user

4. FA: Toshiba LCD LTM04C380K 4-inch TFT

5. KDE refuse to start after 'startx' in normal user mode

6. inet and pop

7. XFree does not start for normal users!

8. Compiling / Running 2.5 on Compaq Alpha

9. GNOME MC crashes when started as normal user

10. Normal users can't do PPP

11. ppp for normal users

12. RedHat 4.1, PPP & normal users

13. Normal user can not use PPP