Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Running process as another user

by morgon (Deacon)
on May 14, 2014 at 09:51 UTC ( #1085999=note: print w/ replies, xml ) Need Help??


in reply to Re: Running process as another user
in thread Running process as another user

I actually mentioned in my post why this is not what I want.

The problem with this approach is that the resulting process (while running under the correct effective user-id) still seems to be running as root in ps.

I would like to have a process running under another effective id and be visible as such in ps.


Comment on Re^2: Running process as another user
Re^3: Running process as another user
by Corion (Pope) on May 14, 2014 at 11:45 UTC

    Ah - I'm sorry, I thought that one was for setting the real user-id in addition to the effective user-id would have that effect.

      Actually you were right (so I am sorry).

      What I tried before I posted my question here was setting $< and that makes the process still appear as being run by root.

      But setting $> does the trick and is all that is needed.

      Seems I need to brush up on real vs effective uid...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2014-08-23 00:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (168 votes), past polls