You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2003/01/05 06:14:59 UTC

DO NOT REPLY [Bug 15804] New: - execute tasks as a specified user

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15804>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15804

execute tasks as a specified user

           Summary: execute tasks as a specified user
           Product: Ant
           Version: 1.5.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: kmtang@yahoo.com


On Unix or Linux system, some operations, like installation, can only be done 
by user root, and it would be unwise to run the entire ANT script as root 
because of these operations. In some cases, we need to run the same ANT script 
under different users due to permission. It will be great if ANT can provide a 
tag so that tasks within the tag will be executed under the user specified. For 
example,

<context user="xyz">

   <!-- tasks will be executed by userid xyz -->

</context>

Of course, authentication mechanism is required and I'll let you figure this 
out.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>