How can i verify if a user is root in a PHP script ? What is the command ? I tried something like that :
exec("su -l login < `echo password`");
ama su komutu şifrenizi alamıyorsanız ...
Gerekirse ben root olarak PHP çalıştırmak böylece makine internetten izole unutmayın.
EDIT: I don't want to know if the current user who run the script is root or not. I have a list of users in my PHP script and I want to know for each login if he has root privileges.