View previous topic :: View next topic |
Author |
Message |
cascamorto Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/311683666424aaaf579acb.png)
Joined: 28 Feb 2005 Posts: 373
|
Posted: Tue Jun 21, 2005 11:46 am Post subject: user issue |
|
|
all my users are part of the wheel group... appart from one... this user isn't able to shut the computer down enless he hits the button or takes the plug out obviously.. i'd like him to be able to shut the comp off from xfce4 or atleast typing halt on the command line... I have sudo but that only lets me shutdown with users in the wheel group.. _________________ The real world isn't what you thought it was going to be?
re-emerge it with gentoo linux! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
adaptr Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/17218567054377b9b6104ea.jpg)
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Tue Jun 21, 2005 2:18 pm Post subject: |
|
|
So let him sudo and only execute that one command - halt.
No need to give him full su privileges.
To use su one needs the root password; to use sudo one needs nothing. _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cascamorto Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/311683666424aaaf579acb.png)
Joined: 28 Feb 2005 Posts: 373
|
Posted: Fri Jun 24, 2005 6:32 pm Post subject: |
|
|
This is my sudoers file:
Code: |
# User privilege specification
root ALL=(ALL) ALL
# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
# Same thing without a password
%wheel ALL=(ALL) NOPASSWD: ALL
# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
|
_________________ The real world isn't what you thought it was going to be?
re-emerge it with gentoo linux! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
adaptr Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/17218567054377b9b6104ea.jpg)
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Sat Jun 25, 2005 12:26 am Post subject: |
|
|
...so any member of the wheel group can bring your system to a grinding halt.
Smart, is it ? _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|