Solved

Root cannot access /bin Please Help!!!!

Posted on 2004-04-21
6
221 Views
Last Modified: 2012-05-04
Ok I amde a big time error here and set my /bin to 7660 now I cannot access chown or anything how can I change permissions back please help.  I have root access

RH 7.3
0
Comment
Question by:hexfusion
6 Comments
 
LVL 1

Expert Comment

by:songus
ID: 10884708
Try to copy from other linux server just the chmod command and change permissions to the most
important...
And be careful next time :P
0
 
LVL 10

Expert Comment

by:Mercantilum
ID: 10884857
try to do the C program somewhere, call it chbin.c:

#include <sys/types.h>
#include <sys/stat.h>

main()
{
  chmod("/bin", 0755);
}


To compile to :
   gcc chbin.c -o chbin
Then
   ./chbin
0
 
LVL 9

Accepted Solution

by:
Alf666 earned 500 total points
ID: 10892121
That's not a problem. Though you can not ls /bin, you can call commands with a full path :

/bin/chmod 755 /bin
0
 
LVL 3

Expert Comment

by:snedelchev
ID: 13744980
you can boot from some linux distro for example clask
mount your linux , chroot to it and change what you want
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

760 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

20 Experts available now in Live!

Get 1:1 Help Now