DeathRipple wrote:i have a problem: i need to execute in a php script some commands that require root access. of course this can't be done just by typing exec($cmd) since all the statements in a php file will be executed under user apache (of whatever user you have set in httpd.conf).
$cmd="smbpasswd -a user pass";
can anyone please help me? (if possible please give me full detals about all steps that are to be taken)
DeathRipple wrote:it's not the account that bothers me...iyou suggest to create such an user and to put the web server to run with it (to modify httpd.conf)? i don't want that....i just want a way to put me in the position of executing command as another user within the php, than to get back to the apache user.....got it?
Users browsing this forum: No registered users and 2 guests