Recently I had to change the folder permissions of /usr folder. Now the whole sudo is not working.
Hi all,
I'm trying to edit the file
/sys/class/net/eth0/queues/rx-0/rps_cpus
to prevent receive packet steering being used (as this is incompatible with my network). I can't. I'm a Linux newbie! How is this done? I've tried the commands sudo nano, gksudo nautilus, sudo nautilus, gksudo gedit...
sudo does not work.
I have installed Arch onto a USB key, using BTRFS.
The output of "sudo" is:
$ sudo
sudo: unable to stat /etc/sudoers: Permission denied
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
$ ls -l /etc/sudoers
-r--r----- 1 root root 2849 May 18 15:00 /etc/sudoers
$ lsattr /etc/sudoers
--------------- /etc/sudoers
$ strace -u ross sudo true
Yes, I have experienced the same problem. After playing around with visudo, I commented the "Defaults env_keep += "HOME" option that I added in /etc/sudoers (therefore disabling it) and sudo/gksudo started functioning again for graphical applications.
Following the wiki's advice, I installed ubuntu-zfs.
I noticed after running a sudo command in terminal or running a administrative application that uses gksudo, it won't ask again for the password for a time (something like 5 minutes).
Now let's assume one of the programs (not running as root) I'm using has a zero day exploit (like the web browser or its plugins).
I have tiny script that I want it to run on start-up, but it needs sudo privileges so I use gksudo for the job. but it fails.
I just upgraded from 12.04 to 12.10. Now, I have a problem when launching synaptic. I get the sudo authentication dialog, but after a second, an error appears at teh bottom of the window that says "Sorry, that didn't work. Please try again."
Sudo from a terminal works properly as does gksudo. It's just the gnome3 sudo apparently that does this.
Any ideas?
-J
i am trying overide the below error
Code:
sudo: sorry, you must have a tty to run sudo
i am aware of ssh -t option.