Linked Questions

6
votes
4answers
3k views

What “chmod 777 -R / ” does in /var/www/html/…/…/…/? [duplicate]

Unfortunately I was rushing and ran sudo chmod 777 -R / inside one project. Should I worry that it started to add 777 permission for all my folder starting from root (/) ?
7
votes
2answers
5k views

Set myself as owner of /etc with chown command now getting all kinds of errors [duplicate]

I needed to edit a .config file (which I know for a fact is not creating these problems, just to clear that up) and it wouldn't let me save it, so I took ownership of /etc and all contents with the ...
4
votes
2answers
29k views

How can I change owner back to root? [duplicate]

So, I did a stupid thing... I was installing some software (Java SE 7, if you must know) from a tarball, and I got tired of using sudo, so I went and changed the owner of my /usr directory to myself. ...
7
votes
2answers
6k views

How can I recover from chmod -R a-wrx / command? [duplicate]

Today I ran sudo chmod -R a-wrx /. Now nothing is working. Can anyone help me recover my system?
5
votes
1answer
35k views

How to restore the default chown permissions on a directory / file? [duplicate]

I am using Ubuntu 13.04 x86_64. I wanted to own whole stuff in my home directory. So I executed these two commands. sudo chown -RcH rootkea ~ sudo chown -RcL rootkea ~ Now due to those symbolic ...
4
votes
1answer
9k views

Fix permissions of server after accidental chmod [duplicate]

While trying to debug a mail server, I typed: chmod -R 777 / instead of: chmod -R 777 . and the icing on the cake, due to me forgetting I had changed a script I use to sign in to fix something, I ...
6
votes
1answer
2k views

How to repair/restore after 'sudo chmod / 777'? [duplicate]

Possible Duplicate: What if I accidently run command chmod I changed file permissions recursively on the root directory '/' with sudo chmod / 777 -R and after that i run "save mode" and i was ...
0
votes
1answer
4k views

Reset default permissions for /etc [duplicate]

I did a silly thing. I changed the permissions of my /etc folder using sudo chmod -R ugo+rw /etc After that I did some damage control using the command pkexec chmod 755 /etc Then I was able to the ...
0
votes
1answer
3k views

Restore permission default of /usr folder [duplicate]

I ran a stupid command: sudo chown -R ngoclb:ngoclb /usr. Then I couldn't use sudo command and login to Ubuntu. To fix this issue, I using recovery mode to chown /usr to root (sudo chown -R root:root /...
1
vote
1answer
766 views

I set /usr/bin, /usr/lib, and /usr/share to be owned by my regular user and now I am getting interesting errors [duplicate]

After running this command - sudo chown -R $(whoami) usr/{lib/node_modules,bin,share} I am not able to run sudo anymore: sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set. How do ...
0
votes
1answer
3k views

Fix permissions of the `/usr` directory [duplicate]

I was trying to grant root access to the only user on my machine so I could edit folders and files on the main drive, however it seems I have crashed my system in trying to do so. I used chmod - u on ...
0
votes
0answers
1k views

sudo must be owned by uid 0 and have the setuid bit set after chown -R with the wrong account on Root by Mistake [duplicate]

I got the uid 0 of death but I have a feeling it can be fixed. I have physical access to this server and I am not able to re-install. I was trying to give access to my account to edit some files in a ...
0
votes
3answers
870 views

After doing chmod 400 on /usr the sudo command is not working [duplicate]

I changed the permission of the /usr to 400 and now I am not able to use sudo. How do I revert this and fix it?
0
votes
0answers
1k views

What to do after 'chmod -R 777 /'? [duplicate]

I have many file permission problems, as being a newbie, I unfortunately set permissions on everything somehow to 777 (chmod -R 777 /). I believe I've done this from the root directory logged in as ...
0
votes
1answer
436 views

Missuse of chmod -R 777 ./ [duplicate]

I ran something like: sudo chmod -R 777 /. In my Ubuntu 16.04 LTS it shows many errors on display, but anyway, the damage was done. Now I can't use sudo sudo: error en /etc/sudo.conf, línea 0 ...

15 30 50 per page