![]() |
|
P is for Practical | |
PerlMonks |
Re^3: I need a user just for Perl script run from web browsersby haj (Priest) |
on Apr 29, 2022 at 10:06 UTC ( #11143428=note: print w/replies, xml ) | Need Help?? |
If two users share a UID, which entry in /etc/passwd is used to find home directory and login shell?Well during login, the login name is available, so this is used for the lookup in /etc/passwd to find the login environment. However, I just did the experiment for the relevant portion (the output of top and ps, and indeed, the login name is not preserved. You get the first login name which matches the numerical user id, so for the original problem I agree: That's a bad idea.
In Section
Seekers of Perl Wisdom
|
|