Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

shutdown via webinterface

Status
Not open for further replies.

meiners

Technical User
Feb 17, 2002
1
0
0
DE
Hello,
I want do write a webinterface du shutdown or restart my little OpenBSD server. The Problem is obviously that I'm not allowed to us 'su' from the group Does anybody know a script which I can call to shutdown? Or has anybody an Idea?

Thanks to everybody helping me solve this problem.

meiners

P.S.: I'm new to BSD and still unsecure on linux.
 
I think you could set up a cgi to use sudo, and have shutdown as the only command that can be run. check into the sudo manpage, and there's some sudo info on openbsd.org
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top