Solved

Root cannot access /bin Please Help!!!!

Posted on 2004-04-21
6
231 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
url shaping application 8 49
CPU#7 stuck for 22s! 4 267
How to minimize the path of packets to my application? 3 71
Debian: failing to add netwok bridge for kvm 2 104
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 shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…

932 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

13 Experts available now in Live!

Get 1:1 Help Now