On Tue, July 29 at 10:41 PM EDT
"Yves Goergen" <[EMAIL PROTECTED]> wrote:

>what i would like to do:
>a php-based web-interface should be able to run some special system
>commands in the name of another user, i.e. 'apache' needs to
>'makemaildir /some/path' as 'exim'.
>
>how i tried this:
>installed the sudo package and edited the sudoers file with visudo:
>    Defaults !lecture
>    Defaults !authenticate
>    Host_Alias LOCAL = localhost, debian2
>    apache LOCAL=(exim) /usr/courier/bin/maildirmake
>now i should be able to do something like
>    > sudo -u exim maildirmake /some/path
>as 'apache', right?
>
>what happened then:
>    "Sorry, user apache is not allowed to execute
>    '/usr/local/bin/maildirmake /tmp/xx' as exim on debian2."
>that's not what it's supposed to do :/
>
>now where's the bug?

I note that two different commands are referenced... maybe an oversight?
/usr/courier/bin/maildirmake
/usr/local/bin/maildirmake
maybe if you path it out explicity in sudoers?

HTH

Shawn Lamson
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to