sudo question
Soo-Hyun Choi
s.choi at hackers.org.uk
Tue Jul 4 16:25:18 UTC 2006
Hi,
I have a question on operating 'sudo' features over a Ubuntu Breezy system.
What I would like to do is that a user (e.g., foo) could 'sudo' to
'www-data' which is apache2. This is because I would like the user
(foo) to do some webmaster task on a system level.
So, what I did is the following, but the user (foo) cannot sudo to 'www-data'.
What's wrong with that?
# This is '/etc/sudoers' file
# User alias specification
User_Alias WWW = foo
# User privilege specification
root ALL=(ALL) ALL
# Users in the WWW User_Alias may run any command as user www-data
# (which owns the web pages) or simply su to www-data.
WWW www-data=(www-data) ALL, (root) /bin/su www-data
Thanks for your information.
Soo-Hyun
More information about the ubuntu-users
mailing list