Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: I need a user just for Perl script run from web browsers

by haj (Priest)
on Apr 29, 2022 at 10:06 UTC ( #11143428=note: print w/replies, xml ) Need Help??


in reply to Re^2: I need a user just for Perl script run from web browsers
in thread I need a user just for Perl script run from web browsers

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11143428]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2023-04-01 20:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?