Solved

su command not found

Posted on 2000-03-16
7
860 Views
Last Modified: 2012-06-22
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.
0
Comment
Question by:tsingy
7 Comments
 
LVL 7

Expert Comment

by:HalldorG
Comment Utility
Check your paths
try
whereis su
try
if that does not work
try
find / -name su
0
 
LVL 1

Expert Comment

by:bassque
Comment Utility
don't you already have to be logged on as root to use the su command?..

Just a thought
0
 
LVL 2

Expert Comment

by:Reinier
Comment Utility
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?
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 3

Expert Comment

by:tibori
Comment Utility
su should be under /bin/su. You may have just lost your shell profile so try executing su by typing /bin/su
0
 
LVL 2

Expert Comment

by:mzehner
Comment Utility
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.
0
 
LVL 3

Expert Comment

by:tibori
Comment Utility
tsingy: Any progress?
0
 

Accepted Solution

by:
unixway52 earned 30 total points
Comment Utility
Take a look under /lost+found as well. Sometimes
a whole directory entry (such as /bin) will
get moved to there as will be represented as the
original inode number. If you cd to that
directory it may still have the original files
listed normally under it ... you can then move them back to the original /bin.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This video discusses moving either the default database or any database to a new volume.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now