-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, 17 Jan 2003, Ryan wrote: > I would like to create some web pages/scripts (probably using PHP since I > use it for a lot of other things) to assist me in administering my linux > machine. What are some ways that I can execute certain administrative > commands (such as ifconfig,iwconfig,route,scripts in my /etc/init.d/ > directory, etc...) as root?
sudo(8). either that, or write setuid wrappers in c. realize though that doing what you want to do in a secure manner is a non-trivial task. there are many software packages out there that probably do what you want already (webadmin comes to mind). - -jon [EMAIL PROTECTED] || www.divisionbyzero.com gpg key: www.divisionbyzero.com/pubkey.asc think i have a virus? www.divisionbyzero.com/pgp.html "You are in a twisty little maze of Sendmail rules, all confusing." -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE+Lw9vwj1gFegse14RAlG1AJ0aCHd53vucncL3CUb+fiWymaeeDACdHgtS rjEtm1EDmiU+W8H7TlOoHJM= =TVkP -----END PGP SIGNATURE-----
