Hello,
With fedora 14 I cannot make sudo works fine.
sudo-1.7.4p5-2.fc14.x86_64
I edited /etc/sudoers (with visudo)B
I set: user1 teucidide=/sbin/shutdown -h now or %wheel ALL=(ALL) ALL user1 is member of wheel
user1 teucidide=/sbin/shutdown -h now
But every time I get: user1 is not allowed to run sudo on teucidide. This incident will be reported.
I also get:
teucidide : Mar 4 02:38:21 : user1 : no valid sudoers sources found, quitting ; TTY=pts/3 ; PWD=/home/user1 ; COMMAND=/sbin/shutdown
/etc/sudoers has the correct rights. /etc/sudoers.d is empty
What is wrong?
Why don't you set as:
user1 ALL=(ALL) ALL
?
2012/3/4, Patrick Dupre patrick.dupre@york.ac.uk:
Hello,
With fedora 14 I cannot make sudo works fine.
sudo-1.7.4p5-2.fc14.x86_64
I edited /etc/sudoers (with visudo)B
I set: user1 teucidide=/sbin/shutdown -h now or %wheel ALL=(ALL) ALL user1 is member of wheel
user1 teucidide=/sbin/shutdown -h now
But every time I get: user1 is not allowed to run sudo on teucidide. This incident will be reported.
I also get:
teucidide : Mar 4 02:38:21 : user1 : no valid sudoers sources found, quitting ; TTY=pts/3 ; PWD=/home/user1 ; COMMAND=/sbin/shutdown
/etc/sudoers has the correct rights. /etc/sudoers.d is empty
What is wrong?
--
========================================================================== Patrick DUPRÉ | | Department of Chemistry | | Phone: (44)-(0)-1904-434384 The University of York | | Fax: (44)-(0)-1904-432516 Heslington | | York YO10 5DD United Kingdom | | email: patrick.dupre@york.ac.uk ==========================================================================
On Sun, 4 Mar 2012, Kazuo Ishii wrote:
Why don't you set as:
user1 ALL=(ALL) ALL
Fixed. In fact, :w is not enough we need to :q visudo also!
?
2012/3/4, Patrick Dupre patrick.dupre@york.ac.uk:
Hello,
With fedora 14 I cannot make sudo works fine.
sudo-1.7.4p5-2.fc14.x86_64
I edited /etc/sudoers (with visudo)B
I set: user1 teucidide=/sbin/shutdown -h now or %wheel ALL=(ALL) ALL user1 is member of wheel
user1 teucidide=/sbin/shutdown -h now
But every time I get: user1 is not allowed to run sudo on teucidide. This incident will be reported.
I also get:
teucidide : Mar 4 02:38:21 : user1 : no valid sudoers sources found, quitting ; TTY=pts/3 ; PWD=/home/user1 ; COMMAND=/sbin/shutdown
/etc/sudoers has the correct rights. /etc/sudoers.d is empty
What is wrong?
--
========================================================================== Patrick DUPRÉ | | Department of Chemistry | | Phone: (44)-(0)-1904-434384 The University of York | | Fax: (44)-(0)-1904-432516 Heslington | | York YO10 5DD United Kingdom | | email: patrick.dupre@york.ac.uk ==========================================================================
On Sun, Mar 4, 2012 at 11:17, Patrick Dupre patrick.dupre@york.ac.uk wrote:
Fixed. In fact, :w is not enough we need to :q visudo also!
Of course! visudo edits a temporary file, and copies over the changes once you quit.