in reply to Re^2: Obtaining %ENV values via su cmd
in thread Obtaining %ENV values via su cmd
I don't know much about %ENV, I rarely use it. If you need to know what user you're running as my guess would be to check $> and $< against /etc/passwd or use POSIX;. I definitely wouldn't trust %ENV, since it is passed to the program at execution time and could be modified to fake values.
I would also advise reading perlsec if you're writing any system that needs to be secure.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Obtaining %ENV values via su cmd
by Tanktalus (Canon) on May 15, 2007 at 05:44 UTC |