You are not logged in.
Pages: 1
I've been looking into this and I can't see what's wrong. It's probably something obvious.
I've checked the wiki, the man page and various tutorials, but well, here we are. I'm sure I'm missing something that's there in black and white (or at least font colour and background colour), but I can't see it.
I'm in group wheel.
All defaults are unchanged and these are the only entries in sudoers (I've cut out the comments etc.)
root ALL=(ALL) ALL
me ALL=(ALL) NOPASSWD: /usr/bin/rebase
me ALL=(ALL) NOPASSWD: /sbin/shutdown
%wheel ALL=(ALL) ALL
Running:
sudo shutdown -r now
sudo /usr/bin/rebase
still asks me for my password.
Can someone tell me the reason, please?
Last edited by skanky (2010-03-04 22:25:33)
"...one cannot be angry when one looks at a penguin." - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle
Offline
My sudoer entry is slightly different (and it works):
jason Longbow=NOPASSWD: /sbin/shutdown -h now
(Longbow is hostname of this machine)
#edit which doesn't actually answer your question, but may help in some way (I hope)...
Last edited by jasonwryan (2010-03-04 21:58:44)
Offline
This is, what I have. Note the "%wheel" comment.
# Shutdown privileges (must come after %wheel)
<user> ALL=NOPASSWD: /sbin/reboot
<user> ALL=NOPASSWD: /sbin/halt
The "<user>" of course is the user id to which these privileges apply.
To know or not to know ...
... the questions remain forever.
Offline
Thanks I'll try changing to <host>=NOPASSWD: <cmd> and see if that works (takes a while to test with the five min timeout - which I could change I realise).
"...one cannot be angry when one looks at a penguin." - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle
Offline
This is, what I have. Note the "%wheel" comment.
# Shutdown privileges (must come after %wheel) <user> ALL=NOPASSWD: /sbin/reboot <user> ALL=NOPASSWD: /sbin/halt
The "<user>" of course is the user id to which these privileges apply.
Aha, thanks that could be the issue. I did wonder, but for some reason the wheel definition was last in my file (that could have been me when I installed the machine though, come to think of it).
Note: my previous post was in reply to jasonwryan.
"...one cannot be angry when one looks at a penguin." - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle
Offline
i have the following:
# User privilege specification
root ALL=(ALL) ALL
patrick ALL=(ALL) ALL
patrick ALL=(ALL) NOPASSWD: /usr/bin/pacman
patrick ALL=(ALL) NOPASSWD: /usr/bin/pacman-color
patrick ALL=(ALL) NOPASSWD: /sbin/telinit
patrick ALL=(ALL) NOPASSWD: /sbin/shutdown
patrick ALL=(ALL) NOPASSWD: /sbin/reboot
patrick ALL=(ALL) NOPASSWD: /usr/sbin/hddtemp
and it works fine (i have no uncommented %wheel section).
you did login/out since the change, yes?
//github/
Offline
Yes, I did logout & back in (I'll forget to mention that when I first started looking into this I forgot to do that).
Anyway, tuurns out it is the order. The user is obviously overridden by the group they are in. It probably does say this in the manual, but even now a quick extra look and I've missed it.
Many thanks to everyone above.
Last edited by skanky (2010-03-04 22:25:09)
"...one cannot be angry when one looks at a penguin." - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle
Offline
Pages: 1