1835819 Members
2549 Online
110085 Solutions
New Discussion

Re: sudo

 
System Dude_1
Frequent Advisor

sudo

I'm using sudo for my application. If I were to login to ID a and su to id b and would like to have the env as for id b, how could i achieve that.
Performance Issue on HP-UX 10.20
1 REPLY 1
Ceesjan van Hattum
Esteemed Contributor

Re: sudo

what about:
sudo -u b sh -c ". ./.profile; [commands]"

I did not test it, but worth a try.

Regards,
Ceesjan