want any user to be able to kill pppd (linux)

cleverhandle

Diamond Member
Dec 17, 2001
3,566
3
81
I just want my wife to be able to kill my connection if I log out and she takes over. Right now, I've set up PPP entirely through console scripts - pppon runs pppd, which runs suid root, executing a chat script through /etc/ppp/options. The connection is terminated through pppoff, a script that does "kill `cat /var/run/ppp0.pid`" Root can end a user's connection, and a user can kill his own, but not another user's or root's - pppoff refuses to kill the process because the user does not own it. This happens even if I make pppoff suid root. Any suggestions?

edit: clarification
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
making pppoff suid root would allow any user to use it, and it's probably the easiest way to do it.

If you have sudo installed you could allow her to run 'sudo pppoff' which would make pppoff run as root.
 

cleverhandle

Diamond Member
Dec 17, 2001
3,566
3
81
um... I've already tried pppoff as suid root, like I said. Kill still complains that the user doesn't own the pppd process. I've used sudo, but it's been a while, and it's a fuss to configure - would it do anything that making an executable suid 0 would not?