You are not logged in.
Pages: 1
Hello Everyone,
Some confusion about Linux permissions.
http://wiki.archlinux.org/index.php/All … o_shutdown
According to this doing chmod -s /sbin/halt will allow regular users to shutdown.
It doesnt work, do i need to add regular users a certain group or something?
ls -l | grep halt:
-rwxrwxrwx 1 root root 10076 2009-04-30 08:03 halt
What about allowing a regular user install using pacman??
Thanks,
Civ,
Offline
Use sudo
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
Any options other than sudo?
Offline
...doing chmod -s /sbin/halt will allow regular users to shutdown.
It doesnt work...
FWIW, the wiki i just looked at said chmod +s /sbin/halt
irregardless, just use visudo to edit the sudoers file and make halt/pacman available with NOPASSWD for a particular group (then you can even alias pacman='sudo pacman' and similar)
or more succinctly as Mr Edlendig said: use sudo.
that would be the easy/secure way to do it.
//github/
Offline
civ247 wrote:...doing chmod -s /sbin/halt will allow regular users to shutdown.
It doesnt work...
FWIW, the wiki i just looked at said chmod +s /sbin/halt
irregardless, just use visudo to edit the sudoers file and make halt/pacman available with NOPASSWD for a particular group (then you can even alias pacman='sudo pacman' and similar)
or more succinctly as Mr Edlendig said: use sudo.
that would be the easy/secure way to do it.
thanks brisbin, did chmod +s properly and it works now. Not really a fan of sudo.
Offline
@civ247 - why are you a sudo hater?
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Is there something PolicyKit can do here?
Offline
allowing halt to be run as user might not be the best for security reasons...
urxvtc / wmii / zsh / configs / onebluecat.net
Arch will not hold your hand
Offline
allowing halt to be run as user might not be the best for security reasons...
With sudo you can set it to only be allowed to execute `halt` when the user is present locally, in which case he has access to the physical power button anyway....
Last edited by Mr.Elendig (2009-05-20 14:35:45)
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
Pages: 1