Clifford Kite wrote:
>
> On Sat, 17 Jul 1999, Evert Verhellen wrote:
>
> |It seems that I have found my problem. Thanks for all feedback. When I
> |login as root the connection does work :-) so all my scripts were right.
> |For safety reasons I don't want to be root all the time so I normally
> |login as myself (evert). In order to start the connection I use the su
> |command (in a terminal window) to become root and then I launch the
> |/etc/ppp/ppp-on script (in the same terminal window). In this situation
> |the connection still won't work :-( I guess this problem is somehow
>
> Try doing "su -" which provides a normal login for root, including all
> the root directory paths.
I have tried the "su -" command and it works fine although this solution
is rather undesirable.
> |related to file permissions. How should I solve this if I don't want to
> |login as root every time?
>
> With the ppp-on script? Make pppd suid, "chmod 4755 /usr/sbin/pppd", and
> make sure that chat is invoked in the ppp-on-dialer script with the full
> path name, "/usr/sbin/chat ...". I'm assuming this is the ppp-on script
> that invokes pppd and calls a ppp-on-dialer script. Finally make sure
> ppp-on is on the paths available to the non-root user, perhaps with a
> symbolic link in the /usr/bin directory to /usr/sbin/chat.
In fact, I still had to add the full path (/usr/sbin/chat) in my
ppp-on-dialer script. With this changed I can use the simple "su"
command to become root and launch /etc/ppp/ppp-on. This is a lot
better than the drastic "su -" command.
After the "chmod 4755 /usr/sbin/pppd" command the file permissions for
pppd now look like this:
-rwsr-xr-x 1 root root 120020 Apr 10 05:33 pppd
With these permissions changed I can launch /etc/ppp/ppp-on from my own
account (evert) but the connection still doesn't work in this situation.
This is wat /var/log/messages says:
Jul 17 13:40:17 localhost pppd[919]: pppd 2.3.7 started by evert, uid
500
Jul 17 13:40:17 localhost pppd[919]: Failed to open /dev/ttyS1:
Permission denied
Jul 17 13:40:17 localhost pppd[919]: Exit.
The permissions for the ttyS* device files are the following:
crw------- 1 root tty 4, 64 Jul 17 11:45 /dev/ttyS0
crw------- 1 root tty 4, 65 Jul 17 13:26 /dev/ttyS1
crw------- 1 root tty 4, 66 May 5 1998 /dev/ttyS2
crw------- 1 root tty 4, 67 May 5 1998 /dev/ttyS3
I don't know whether is wise to change anything here. Maybe this
additional information is of interest:
-rwxr-xr-x 1 root root 16244 Apr 10 05:33 chat
-rwxr-xr-x 1 root root 967 Jul 15 18:23 ppp-off
-rwxr-xr-x 1 root root 1642 Jul 17 05:22 ppp-on
-rwxr-xr-x 1 root root 461 Jul 17 12:07 ppp-on-dialer
--
Evert Verhellen
mailto:[EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]