[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

su command not found

Posted on 2000-03-16
7
Medium Priority
?
902 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 7

Expert Comment

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

Expert Comment

by:bassque
ID: 2627695
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
ID: 2628454
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
Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

 
LVL 3

Expert Comment

by:tibori
ID: 2628557
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
ID: 2634651
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
ID: 2700646
tsingy: Any progress?
0
 

Accepted Solution

by:
unixway52 earned 90 total points
ID: 2767592
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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

649 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