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

Re: PPP as normal user



*- Martin Bialasinski wrote about "Re: PPP as normal user"
| 
| >> "s" == servis  <servis@purdue.edu> writes:
| 
| s> % ls -al /etc/ppp
| s> total 92
| s> 1 drwxr-xr-x   6 root     dip          1024 Jul 26 14:48 ./
| s> 7 drwxr-xr-x  64 root     root         7168 Aug 26 06:49 ../
| s> 36 -rw-r--r--   1 root     root        34938 Jul  9 10:58 connect-errors
| s> 2 -rwxr--r--   1 root     root         1338 May 31 14:08 ip-down*
| s> 1 drwxr-xr-x   2 root     root         1024 May 13 21:42 ip-down.d/
| s> 2 -rwxr--r--   1 root     root         1454 May 13 21:42 ip-down.dpkg-dist*
| s> 32 -rw-r--r--   1 root     root        31249 Aug 26 07:51 ip-log
| s> 3 -rwxr--r--   1 root     root         2789 Jul 26 14:48 ip-up*
| s> 1 drwxr-xr-x   2 root     root         1024 Aug 11 08:46 ip-up.d/
| s> 2 -rwxr--r--   1 root     root         1452 May 13 21:42 ip-up.dpkg-dist*
| s> 2 -rw-------   1 root     root         1553 Jul  9 12:58 pap-secrets
| s> 1 drwxr-xr-x   2 root     dip          1024 Jul 27 20:05 peers/
| s> 1 -rw-r--r--   1 root     root           85 Mar  1  1997 ppp_on_boot
| 
| s> % pon
| s> /usr/sbin/pppd: Can't open options file /etc/ppp/options: No such file or directory
| 
| s> As root it works perfectly.  What am I missing?
| 
| Strange it works as root. As you can see, you don't have a
| /etc/ppp/options file. Create one and try again.
| 
| cd /etc/ppp/
| touch options
| chmod 644 options
| 

This fix doesn't seem like the right way to fix this problem.  Why
would running it as root NOT fail when the options file is not present
and when run as a user it needs to have the options file present.

Well, now the error message goes away but it just exits without doing
anything, assuming because the options file is empty.  A strace shows
that it is trying to execute '/usr/sbin/pppd call provider', which is
what /usr/bin/pon does, but it fails.

[pid  1219] execve("/usr/sbin/pppd", ["/usr/sbin/pppd", "call", "provider"], [/* 36 vars */]) = -1 EPERM (Operation not permitted)

If I explicitly type in '/usr/sbin/pppd call provider' the log shows an
entry of 

'Aug 26 08:57:36 brian pppd[1221]: pppd 2.3.5 started by servis, uid 6262'

but no error message is returned and nothing happens.

-- 
Brian 
---------------------------------------------------------------------
"Never criticize anybody until you have walked a mile in their shoes,  
 because by that time you will be a mile away and have their shoes." 
							   - unknown  

Mechanical Engineering                              servis@purdue.edu
Purdue University                   http://www.ecn.purdue.edu/~servis
---------------------------------------------------------------------


Reply to: