RE: [PHP] System() works on /usr/sbin commands

2003-07-31 Thread Daevid Vincent
Subject: Re: [PHP] System() works on /usr/sbin commands > > > Check out sudo (man sudo), but you must be carefull. > > tirumal b wrote: > > > hello, > > > > yes the /usr/sbin commands require root permissions > > but is there any way to run these comm

Re: [PHP] System() works on /usr/sbin commands

2003-07-31 Thread Marek Kilimajer
Check out sudo (man sudo), but you must be carefull. tirumal b wrote: hello, yes the /usr/sbin commands require root permissions but is there any way to run these commands using system() through suid or something.please let me know Thank you __ Do you Yahoo!? Y

Re: [PHP] System() works on /usr/sbin commands

2003-07-30 Thread Curt Zirzow
* Thus wrote tirumal b ([EMAIL PROTECTED]): > hello, > > yes the /usr/sbin commands require root permissions > but is there any way to run these commands using > system() through suid or something.please let me know I would seriously not recomend not to suid the script. The /usr/sbin/* files re

Re: [PHP] System() works on /usr/sbin commands

2003-07-30 Thread tirumal b
hello, yes the /usr/sbin commands require root permissions but is there any way to run these commands using system() through suid or something.please let me know Thank you __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://s

Re: [PHP] System() works on /usr/sbin commands

2003-07-30 Thread Evan Nemerson
You usually need to be root to execute /usr/sbin/* check the permissions of the file you're trying to execute. On Wednesday 30 July 2003 11:13 pm, tirumal b wrote: > hello, > > i was using system function to invoke useradd > command but it doesn't work. well it works for all the > commands bu

Re: [PHP] System() works on /usr/sbin commands

2003-07-30 Thread Adrian
afaik requires useradd like the other sbin stuff root rights - and php doesn't run as root > hello, > i was using system function to invoke useradd > command but it doesn't work. well it works for all the > commands but not those in /usr/sbin. why is it so. >