Re: [PHP] Re: I can't execute pf commands

2011-07-28 Thread Negin Nickparsa
If you want to execute shell commands as root theres another solution too

try this:

shell_exec('sudo -u root ls -l /var/tmp')

but the solution Of shawn is better then it will not needed to set it again
in another commands


Re: [PHP] Re: I can't execute pf commands

2011-07-28 Thread Negin Nickparsa
also by gcc you can use code it and run the gcc in shell

I like this one:

setfacl -m u:wwwrun:rw the path that you would like


for permissions you can set it for the folders you have then run this
compiler it will make an executable file you can give a name to them by -o
'r' and 'w' are for read and write also you can have 'x' for execute
permission

now you can use this executable file on any new computer just run it and it
will make
permissions

I don't know in your Os you have wwwrun or not I have it in Suse

*wwwrun is used for doing things permission-wise but Apache doesn't need
to login with it. Again, this keeps it safe from attackers.*
*
*
*
*