chmod -R 777 / [NEVER, EVER run this command]

Hello.

I did this. After 2 seconds I,ve pressed ctrl +c.


chmod -R 777 /

Effect no su, no sudo no root login and …

I know the solution.

Live CD


fdisk -l
mkdir /mnt/rescue
mount /dev/sda5 /mnt/rescue
chmod 4755 /bin/su
.... and more like /etc/sudoers

What else u can suggest me to reverse this thing ?

Thank You in front.

Do I read you correct that you were not superuser (root) when you did this? In that case, nothing is done to your system. So nothing to reverse.

Check if something is wrong by looking, not by assuming. E.g. by doing

henk@boven:~> ls -ld /
drwxr-xr-x 23 root root 4096 17 jan 09:39 /
henk@boven:~>

When the permissions are as mine are, nothing is done to /, let alone to the rest.

When i did this i was superuser :stuck_out_tongue:


ls -ld /
drwxr-xr-x 25 root root 4096 01-17 11:00 / 

But in example all /etc/* is 777.

On 01/17/2012 11:06 AM, Bombaharris wrote:
>
> --mod -R 777 /
>
> WHAT ELSE U CAN SUGGEST ME TO REVERSE THIS THING ?

note i STRONGLY suggest that folks NOT enter and execute the
command…unless it is your desire to fully TRASH your system!!

why oh why would you do such a thing??
where did you find that particular witch’s incantation???

that is just plain crazy!! i guess the easiest way to recover is to use
you latest full system back up to restore.


DD http://tinyurl.com/DD-Caveat
openSUSE®, the “German Engineered Automobiles” of operating systems!

Then why do you say “Effect no su, no sudo no root login and …” when you was root?

In any case the only thing is either recovery from your system backup, or a reinstall from scratch.
There is no way you know exactly what the permissions og all the thousands of files that might be involved, should be.

On 01/17/2012 11:26 AM, hcvv wrote:
> nothing is done to your system

i have not tried it, and will not(!) but won’t that big -R allow it to
change (at least) all perms in /home/[executingUser]/

and, hmmmmmmmmmm wouldn’t it also change all in the system which the
executing user already had write capability to (not that i know if any
might exist outside of /home/[executingUser])?

and, i recognize i may not know what i am talking about…therefore
these are questions, not statements of ‘fact’…

suggest no one try to find out, unless you intend to do purposeful
damage that is difficult to impossible to undo.


DD http://tinyurl.com/DD-Caveat
openSUSE®, the “German Engineered Automobiles” of operating systems!

Computers are very dangerous critters in general … :slight_smile:

After reboot.

Yeah im gonna install 12.1. It`s just system for developing but who knows what else can go wrong …

i have not tried it, and will not(!) but won’t that big -R allow it to
change (at least) all perms in /home/[executingUser]/

That is not the system, that is the users own bussiness (where he can ask the system manager for a restore to the latest backup if he decides he needs it). But the OP is clearly talking about his system files/programs.

man chkstat

ls /etc/permissions.*