Linked Questions

9
votes
1answer
46k 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 ...
8
votes
2answers
10k 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 ...
6
votes
4answers
9k 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
38k 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. ...
8
votes
2answers
9k 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
39k 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 ...
3
votes
1answer
4k 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
8k 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 ...
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
5k 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 /...
0
votes
3answers
2k 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?
1
vote
1answer
3k views

Tutorial: Fix a CHMOD Disaster [duplicate]

I was trying to run chmod on some files and accidentally specified the wrong directory. Now, sudo doesn't work, and I rebooted. I can log in, but I can't do anything as root. How can I fix this? This ...
1
vote
2answers
2k views

Accidental sudo chown. How do I recover? [duplicate]

I accidentally ran sudo chown -R -v myuser:myuser /, essentially transferring sudo to my own user by mistake. I meant to only take the current directory. How do I recover from this? I stopped it ...
0
votes
0answers
2k views

I accidentally chown'd /usr/lib… what do I do now? [duplicate]

I made a terrible mistake. I realized it right after I did it, but now it is too late. I ran this command: sudo chown -R $USER /usr/lib and I tried to fix it with: sudo chown -R root /usr/lib but ...

15 30 50 per page
1
2 3 4 5
7