Linked Questions

2 votes
2 answers
2k views

Sudo error, setuid [duplicate]

I'm using Ubuntu 14.04 and I run some command series on Terminal. But at one time I ran sudo chmod 777 /usr/bin/ -R And giving some permissions on this directory. After that, I'm continue my work, ...
serifsadi's user avatar
  • 129
0 votes
1 answer
3k views

root must be setuid root [duplicate]

I accidentally ran this command chmod -R 755 /usr/bin on my remote server [Ubuntu 12.04.3 LTS], and I don't have the root password. When I run sudo it gives me sudo: must be setuid root, This is the /...
ayb's user avatar
  • 3
0 votes
0 answers
1k views

Accidentally did sudo chmod -R 777 /usr/ on Ubuntu Server AWS [duplicate]

I am using AWS to run Ubuntu server 14.04 and by mistake I issued this command sudo chmod -R 777 /usr/ Since issuing this command, I can't switch from ubuntu to root. When I issue this command sudo ...
Vishal Rabadiya's user avatar
0 votes
0 answers
100 views

Cannot use sudo command, changed permission of /usr folder [duplicate]

Possible Duplicate: How to get back SUDO into working condition? Here's how I messed up my ubuntu, I wanted to change file permissions of /usr folder and I did that by taking root privilege ...
vin's user avatar
  • 123
314 votes
18 answers
559k views

How to modify an invalid '/etc/sudoers' file?

How do I edit an invalid sudoers file? It throws the below error and it's not allowing me to edit again to fix it. Here is what happens: $ sudo visudo >>> /etc/sudoers: syntax error near ...
user avatar
63 votes
4 answers
468k views

How can I start Ubuntu in Safe Mode?

I did a clean install of Ubuntu 12.04 on an Acer AX1430G desktop. Everything went fine until I installed the additional ATI driver. When I rebooted the computer, my monitor gives a "signal out of ...
Jeff's user avatar
  • 631
2 votes
3 answers
16k views

sudo: /var/lib/sudo/navneet writable by non-owner (040777), should be mode 0700

This error occurs whenever I try to work with sudo. I changed the permissions of /var/ folder to 777 and I think this causes the error. Please help me get back a functional sudo and /var.
navneet's user avatar
  • 21
2 votes
2 answers
12k views

Ubuntu sudo not working

I wanted to move a file to a /usr/python2.7/ but i was unable to do so, so i changed the permissions of /usr to myuser: sudo chown -R ***** /usr it worked but i realised it was a blunder when sudo ...
Ron Sebastian's user avatar
0 votes
3 answers
7k views

Error executing sudo in chroot environmet

I am facing a strange problem while using a chroot'd 12.04 Ubuntu. When I try to run anything with sudo I get the following error: sudo: effective uid is not 0, is sudo installed setuid root? If I ...
Salem's user avatar
  • 19.7k
2 votes
2 answers
4k views

How to fix sudo after “chmod -R 777 /etc/”?

I have been looking around on how to solve the issue of changing the permissions on the directory where the sudoers file is located (in my case /etc/). This question points to the same problem, ...
Miguel M.'s user avatar
  • 139
1 vote
1 answer
4k views

Ubuntu Sudo Command not working

I mistakenly excuted: $ sudo chmod -R 777 /* I can not run sudo any more: I have tried changing the permissions with recovery mode but when I log in back into my account sudo is not still working.
user3872095's user avatar
1 vote
2 answers
2k views

System crashed after changing permission of /usr/share in ubuntu 14.04LTS

what Happened - I installed audacity (programme) through command line. Help file was missing. I download zip file. Came to know that this file has to be stored in /usr/share folder. When I tried to ...
sangharsh's user avatar
  • 782
2 votes
1 answer
152 views

Only 8 days into Ubuntu, and I did some damage

In order to eliminate some of the permissions obstacles I keep finding, I decided to make it easier on myself. I did $ sudo chmod 755 -R /usr If I knew 10 hours ago what I've learned in researching ...
dyers's user avatar
  • 21