Im trying to get the script to mark who is running the command. But it will always be from a sudo su - USER123 account.
ps -ef |grep grep
will show me the pts session and i can ID the user that way.... but it seems like such a hack is there a value stored somewhere to show what pts is in use and from what user?
There has to be a simpler way.
you cant use
echo $USER when your sudoed it shows the account you promoted too not your own.
ps -ef |grep grep
will show me the pts session and i can ID the user that way.... but it seems like such a hack is there a value stored somewhere to show what pts is in use and from what user?
There has to be a simpler way.
you cant use
echo $USER when your sudoed it shows the account you promoted too not your own.
