|
|
| Perl-Sensitive Sunglasses | |
| PerlMonks |
Can the user a script runs as be changed?by theAcolyte (Pilgrim) |
| on Jul 01, 2004 at 23:05 UTC ( [id://371288]=perlquestion: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.theAcolyte has asked for the wisdom of the Perl Monks concerning the following question: This may be more a linux question then a perl question, but I'm stumped, and don't even have an idea of where to start. I have a script that is attempting to run/call a program on the system, but is unable to do so because it doesn't have enough privlidges. I'm root on the system -- so I considered changing the program to allow a non-privlidged user to run it, but I'd rather not do so. The question becomes -- how do I change the user a particular script runs as? Is there an equivalent in perl do typing "su - thisuser" at the prompt? Thanks in advance for any help ... completely lost. :-\ - Erik
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||