[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Sudo command



Moin,
On Fri, Nov 12, 1999 at 04:09:35PM -0500, Edward S. Baiz Jr. wrote:
> Christian,
> 
> Well I d/l the files for the sudo command. I edited the sudo file and 
> added the line: User_Alias   FULLTIME=edward
> Is this enough or do I need to do more. I am trying to get the sudo 
> command to work, but I just get seem to get it right. Not much help 
> from the docs. I know there is alot of options and I would think I 
> would just type: sudo -u edward, but that does not work. Sorry to be a 
> pest, but I have been raking leaves for about 4 hours, so I am alittle 
> irritable. <g>
FULLTIME? Never seen that... anyway, here comes my etc/sudoers file
--- cut here ---
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL) ALL
cts     ALL=(ALL) NOPASSWD: ALL
--- cut here ---
root is not really necessary I guess, I just have it there, forgot why.
cts is my user account
 cts@skeeve:~>sudo whoami
 root
If I didnt have the NOPASSWD: set for cts, I would have to type my password,
that is the password of cts, not the root password. Since only root can add
you to the sudoers, you are trusted enough to execute commands as root, you
never have to know roots's password. You can resctrict which commands the
user may execute as root (xcdroast, halt, etc), you have to edit the ALL
entries then, but for this you please read the docs.

BTW, you did think of the obvious, to startx as root? Then you should have
no tproblems running xcdroast...
 
> I also looked at Gnome and Enlightenment. Both seem to be great and I 
> will one of them a try. Which one is the best? En.. is a BIG file 
> (about 6meg). Gnome seems to have alot more to it.
No idea, I'm using fvwm2, allways.
 
Ciao,
Christian.
-- 
How to start a flamewar: comp.unix.amiga "which is better, NetBSD or Linux?"


Reply to: