Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
user issue
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
cascamorto
Guru
Guru


Joined: 28 Feb 2005
Posts: 373

PostPosted: Tue Jun 21, 2005 11:46 am    Post subject: user issue Reply with quote

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
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Tue Jun 21, 2005 2:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
cascamorto
Guru
Guru


Joined: 28 Feb 2005
Posts: 373

PostPosted: Fri Jun 24, 2005 6:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Sat Jun 25, 2005 12:26 am    Post subject: Reply with quote

...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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum