Solved

Root cannot access /bin Please Help!!!!

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

726 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