Solved

Root cannot access /bin Please Help!!!!

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
squid3 ntlm and itunes authentication 5 86
Linux - Fibre Channel arbitrated loop 2 99
linux dns for internal resolve 2 59
Issue to mail 11 100
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…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

831 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