Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Root cannot access /bin Please Help!!!!

Posted on 2004-04-21
6
Medium Priority
?
280 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 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
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…
Suggested Courses

916 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