Y
yong
Hi all
I want to switch to another user in a perl script because I don't want
the script have permissions to operate some files.I added the function
"system('su another') " to the top of the script.When I run it the
script switch to the user "another",but it only give out a shell prompt
and don't do anything until I log out from account "another".
It there anyway else to switch to another user within a perl script?
Thanks.
I want to switch to another user in a perl script because I don't want
the script have permissions to operate some files.I added the function
"system('su another') " to the top of the script.When I run it the
script switch to the user "another",but it only give out a shell prompt
and don't do anything until I log out from account "another".
It there anyway else to switch to another user within a perl script?
Thanks.