Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 283
  • Last Modified:

Root cannot access /bin Please Help!!!!

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
hexfusion
Asked:
hexfusion
1 Solution
 
songusCommented:
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
 
MercantilumCommented:
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
 
Alf666Commented:
That's not a problem. Though you can not ls /bin, you can call commands with a full path :

/bin/chmod 755 /bin
0
 
snedelchevCommented:
you can boot from some linux distro for example clask
mount your linux , chroot to it and change what you want
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now