Answer the question
In order to leave comments, you need to log in
Restore chmod rights?
In general, the guys here an incident happened.
Played around on a server. and accidentally changed the rights to / bin
and now I can’t run any programs, including chmod to return everything to its place
. There is no physical access. only remote. I have an ssh session from which I can execute commands. It is no longer possible to open a new session.
when trying to execute any command from
/bin
/usr/bin
-bash: /bin/ls: Permission denied
Now authorized as root
How to get out?)
Answer the question
In order to leave comments, you need to log in
sudo /lib/ld-linux.so /bin/chmod 755 /bin/chmod
Or:
Or:
The path in different distributions and bitness may differ.
Do you have FTP or SFTP access? Connect remotely, change permissions to chmod.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question