"chmod -R 777 /" fatal error?
-
- Posts: 4
- Joined: 2014/07/18 11:27:57
"chmod -R 777 /" fatal error?
Hi, im new on linux based systems. I have a server that connectable with putty.
I used wrong ssh code to putty which is "chmod -R 777 /" while i was changing permission of a spesific folder.
After that mysqld down and i wanted to reboot system. Until this action, i couldt connect my system with putty.
When i went to server for manual reboot, i saw error which attach to post. It can be fixible problem? And how?
Thanks four your interest...
I used wrong ssh code to putty which is "chmod -R 777 /" while i was changing permission of a spesific folder.
After that mysqld down and i wanted to reboot system. Until this action, i couldt connect my system with putty.
When i went to server for manual reboot, i saw error which attach to post. It can be fixible problem? And how?
Thanks four your interest...
- Attachments
-
- Photo 18.07.2014 13 31 03.jpg (60.35 KiB) Viewed 4947 times
Re: "chmod -R 777 /" fatal error?
Do you have a backup?
-
- Posts: 4
- Joined: 2014/07/18 11:27:57
Re: "chmod -R 777 /" fatal error?
unfortunately
Re: "chmod -R 777 /" fatal error?
Well, you have a lot of work todo just to get to the point where there is a lot of work todo
Does yum work?
Does yum work?
Re: "chmod -R 777 /" fatal error?
yum reinstall \*
-
- Posts: 4
- Joined: 2014/07/18 11:27:57
Re: "chmod -R 777 /" fatal error?
there arent any user interface without that screenshot, i couldnt log in...
Re: "chmod -R 777 /" fatal error?
Press Control + Alt + F1 and that should drop you down to a console based login screen. Alternatively you can reboot into non-graphical mode by adding systemd.unit=multi-user.target to the grub boot screen, and if that doesn't work there is always single user mode. At the grub boot prompt hit the e key and then press the down arrow key until you find the line that starts with linux16 /vmlinuz..., append systemd.unit=multi-user.target to the end of that line and then press Control + X.cappalikutu wrote:there arent any user interface without that screenshot, i couldnt log in...
Re: "chmod -R 777 /" fatal error?
You can try running the following if you can logon at all!
That should reset all permissions on all files and directories that rpm thinks it owns. It may miss some but it should get most.
Code: Select all
for p in $(rpm -qa); do rpm --setperms $p; rpm --setugids $p; done
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
-
- Posts: 4
- Joined: 2014/07/18 11:27:57
Re: "chmod -R 777 /" fatal error?
i entered this code and permission problem solved but also i couldnt use ssh already.TrevorH wrote:You can try running the following if you can logon at all!
That should reset all permissions on all files and directories that rpm thinks it owns. It may miss some but it should get most.Code: Select all
for p in $(rpm -qa); do rpm --setperms $p; rpm --setugids $p; done