I've set up sudo not to prompt for password by editing the sudoers file:
myuser ALL=(ALL:ALL) NOPASSWD: ALL
And it works fine, running sudo with no password prompting. But when entering sudo -v I noticed that it prompted for password, only once.
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
I would like to be able to use the sudo command in a chroot environment.
I start the chroot as follows:
chroot /debian-squeeze /bin/bash
Now I'm logged in as root in the chroot. I can do su user to log in as a user named user.
I visudoed sudoers to allow a user to run one bash script with a passwordless sudo, which works fine when logged in (also via SSH). However, when I log in via SSH using public key authentication and configure authorized_keys' command="sudo myScript", I am promped for the user password by sudo. Having the script itself use sudo on another program does however work without requiring a password.
Terminal won't input password when I/it asks for it.
I am trying to install wine through terminal.
Whenever I try to do anything at all that requires my password it returns this:
u7ur7l3@ubuntu:~$ sudo
sudo: /usr/lib/sudo/sudoers.so must be owned by uid 0
sudo: fatal error, unable to load plugins
u7ur7l3@ubuntu:~$
So I can't install anything from the Software Center / package manager or run any commands in terminal that require my password.
In the terminal, I entered
sudo deluser myself sudo
and
sudo deluser myself admin
Why do I still have root privileges under this user?
I made a new user and added it to "sudo" and "admin." I want to have someone else set the password for it, so I can lock myself out of the hosts file when URLs are blocked.
I just installed 11.3 32b, added myself to the sudoers files, but when I sudo it asks me for root password and not my password, what am I doing wrong?
I remember when setting my password during installation I unselected something like "use this password for system administration".
shalom@shalom-laptop:~> sudo zypper up
root's password:
ok so when ever i try to install or remove software i end up getting an authentication failed msg. I've already entered my password and it tells me authentication failed.