I have a python script with PAM authentication, executes and prints success if it is executed with root where as if I execute it with non root privilege I am getting the below error
python: pam_unix(system-auth:auth): authentication failure;
Is there any possibility that I can run it with non root privilege please help me out.
FYI -
I am using the python script from https://code.google.com/p/web2py/source/browse/gluon/contrib/pam.py
Thanks
Please follow me. Enter following command in console. $su root $chmod 7777 ./script $chown root root ./script
later excute setuid(root), setgid(root) function in script file.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.