Operating System - Tru64 Unix
1752781 Members
6488 Online
108789 Solutions
New Discussion юеВ

Re: su command not found.

 
Bruno Vilardo
Regular Advisor

su command not found.

HEllo all,

Today i tried to login as another user using the su command but i am having the following error .But couple of days ago i could run the command perfectly and i now i can not.

# su -
ksh: su: not found

Can anyone help me?
TIA
Regards
BRu
7 REPLIES 7
Michael Schulte zur Sur
Honored Contributor

Re: su command not found.

Hi Bruno,

this command should be in /bin
check PATH valriable and whether /bin/su exists.

greetings,

Michael
Bruno Vilardo
Regular Advisor

Re: su command not found.

Hey Michael,

I├В┬┤ve checked the /bin directory and there is no "su" there ... Why ?

I also checked the PATH variable and it├В┬┤s apparently OKAY.

Any other clues ?

Thanks

Br
Michael Schulte zur Sur
Honored Contributor

Re: su command not found.

Hi,

looks like someone deleted it. Restore from backup or from another machine with the same os release.

find / -name su -print
Any place else perhaps?

greetings,

Michael
Bruno Vilardo
Regular Advisor

Re: su command not found.

Thanks man .

But now i just wonder who the hell deleted this command ..
Is there a way to know who deleted it ?

I├В┬┤ve used find to look for the command but no success .
I am restoring SU from an backup.

THanks a lot man

I appreciate . Here are some points for you ..

Regards

Bru
Michael Schulte zur Sur
Honored Contributor

Re: su command not found.

Hi,

if you are lucky you find it in the shell history of the root user, but that's pure luck.

Michael
Yong_7
Frequent Advisor

Re: su command not found.

Hi
with the assistance of login footprints.
# more /.sh_history
# last | more

Good Luck ! man

YJ
Bruno Vilardo
Regular Advisor

Re: su command not found.

Hey guys ,

I restore the command and it worked fine.
I got the person resposible for making the "su" command disappear.
There is another person that access the server from a different state and he also does some administration tasks.
He renamed the su command to zz ..
He said our boss told him to do that , i called up the boss and explain him the situation. THey were worried about security , using the "su" command to loggin as a different user and enter on the ERP system to mess up something.
But i explain that the only personsthat has full access are I and the other guy that dissapearwith the "su" command.

But anyway,

Thanks a lot guys , i am really learning many stuff in this forum.

Regards

Bruno