Please end my suffering...
I'm writing an application (call it "main") in perl. I want it to be executed by a normal user, but I want applications lauched by "main" to run as root. I do NOT want "main" to run as root. I think I can make a pam.d file like this, and name it the same as "main".
auth sufficient pam_rootok.so auth required pam_console.so account required pam_permit.so
The Authen::PAM man page does not explain what code to use to launch a second application as root though.
In reply to Authen::PAM Help by groundstate
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |