I have a daemon written in c, which starts separate process with
different user ID. I want those process to get particular user's
environment variables (set in ~/.bashrc or ~/.cshrc according to that
user's shell type).
Any help in this regards will be greatly appreciated
Sandip
|
|
0
|
|
|
|
Reply
|
skdevnath (2)
|
11/18/2003 11:32:33 PM |
|
skdevnath@yahoo.com (Sandip) writes:
> I have a daemon written in c, which starts separate process with
> different user ID. I want those process to get particular user's
> environment variables (set in ~/.bashrc or ~/.cshrc according to that
> user's shell type).
>
> Any help in this regards will be greatly appreciated
"su - username", sort of? I would have a peek to the "su" source code...
--
Maurizio Loreti http://www.pd.infn.it/~loreti/mlo.html
Dept. of Physics, Univ. of Padova, Italy ROT13: ybergv@cq.vasa.vg
|
|
0
|
|
|
|
Reply
|
Maurizio
|
11/18/2003 11:36:08 PM
|
|