I'm trying to run the "useradd" command in CENTOS but I can't because I need root permissions.
In my php_info();
I have '--disable-posix'. I have tried to re-install my PHP, and tried to enable the posix with yum and more options, but no luck.
Can someone help me to make the posix enable or some other solutions? I notice that posix_getuid();
is working, but posix_setuid();
is not.
Any solution?
All I need to insert useradd
into passwd(root) command by "user click". What is the best and most secure way to do this?
Thanks a lot!
Koren Or