Hi,
I faced an issue where i.e root goes to another user i.e test
su - test this records fine in user test's .sh_history file and you can see what commands has been applied, but if you use just su test without '-' dash this doesn't record anything at all.
Basically '-' reads user's environment varables incl. .profile but is this history recorded somewhere where it can be found afterwards?
It doesn't appear on root's .sh_history nor the sudo user's .sh_history.
Regards,
#Kimmers
I faced an issue where i.e root goes to another user i.e test
su - test this records fine in user test's .sh_history file and you can see what commands has been applied, but if you use just su test without '-' dash this doesn't record anything at all.
Basically '-' reads user's environment varables incl. .profile but is this history recorded somewhere where it can be found afterwards?
It doesn't appear on root's .sh_history nor the sudo user's .sh_history.
Regards,
#Kimmers