tsingy
asked on
su command not found
Can someone tell me how to reinstall this, we ran fcsk on your disk the other day which seemed to be dieing now the system is really messed up and su command is not found so I can not gain root access, luckily I have ssh installed which lets me login as root.
don't you already have to be logged on as root to use the su command?..
Just a thought
Just a thought
su should be in /bin and no, you don't need to root to be able to use it.
To answer your question, in most distro's su comes with the a package "sh-utils".
Since you apparantly crashed bad I dont't think su will be the only thing missing. BTW, what do you mean when you say that AFTER fsck'ing your system is really messed up? Did your fsck at boottime tell you to manual fsck some partition for a repair? What messages did you get from fsck? Did you look in the /lost+found directory for stray files?
To answer your question, in most distro's su comes with the a package "sh-utils".
Since you apparantly crashed bad I dont't think su will be the only thing missing. BTW, what do you mean when you say that AFTER fsck'ing your system is really messed up? Did your fsck at boottime tell you to manual fsck some partition for a repair? What messages did you get from fsck? Did you look in the /lost+found directory for stray files?
su should be under /bin/su. You may have just lost your shell profile so try executing su by typing /bin/su
I hope you didn't run fsck on your hard drive while while it was mounted. If you did, you probably really screwed it up. You should have gotten an error message if your file system was mounted. If you did this, I recommend you make all attempts possible to back up data on your system. You may need to enter single user mode through LILO to do this, therefore you will not need to su to root. To enter single user mode at the LILO prompt enter "linux single" where "linux" is the name of your linux system to boot.
tsingy: Any progress?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
try
whereis su
try
if that does not work
try
find / -name su