* Summary: using sudo as su - without password prompt
@ 2001-10-10 13:56 John Galt
0 siblings, 0 replies; only message in thread
From: John Galt @ 2001-10-10 13:56 UTC (permalink / raw)
To: tru64-unix-managers
Original Post:
Hello Admins,
I have been using sudo for various functions and have had no problem
configuring it.
However, I can't figure out how to set up sudoers to allow members of the
UNIX "system" group to use only the command "sudo" to switch to root ( same
as `su - ` ) without being prompted for a password.
I have seen this done at other sites.
Thanks.
John
---------------------------------------------------------------------------------------------
Summary:
Thanks to all who replied.
First, it was correctly pointed out that implementing this has significant
security ramifications. It effectively makes having a root password
useless, in that anyone who gets the password for a user who is a member of
the system group, can obtain root access without the root password.
That said, I was looking at this as an exercise with no immediate intention
of doing this on an active system. And after evaluating the security issue,
I do not recommend this.
To set this up, I used visudo to enter the following in /etc/sudoers:
# User alias specification
User_Alias SYSTEM =%system
# User privilege specification
SYSTEM ALL = NOPASSWD: /usr/bin/su
In /etc/profile (We use ksh) (This could also be in each member of the
system group's .profile to prevent non-system group users from having the
alias defined)
# Define aliases
alias sudo='/usr/local/bin/sudo /usr/bin/su -'
With this, any member of the UNIX system group can type "sudo" and become
root without entering a password.
John
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-10-10 13:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-10 13:56 Summary: using sudo as su - without password prompt John Galt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox