Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Running a daemon process as another user

by Happy-the-monk (Canon)
on Oct 27, 2004 at 09:06 UTC ( [id://402934]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Running a daemon process as another user
in thread Running a daemon process as another user

print "USER: ". getpwuid($<) . "\n";

USER will be root, but when I do a ps -ef it does:

Sure it is, because   $<   is the real uid (you used to be root).

Use the effective uid   $>   to display the new identity. See  perlvar.

Cheers, Sören

  • Comment on Re^3: Running a daemon process as another user

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-04-20 03:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found