How to set custom variables like bash prompt,aliases,etc after becoming root from normal users using sudo -i
Login via Putty (key based) with "nir" username -> Become root using sudo -i
After root i can see
echo $SUDO_USER gives my username "nir"
I don't want this changes to be permanent so not thinking of
One way which i think is of creating a script and putting in my home directory and putting entry in
/root/.bashrc (working on this)