ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 15804] - execute tasks as a specified user
Date Mon, 06 Jan 2003 15:54:37 GMT
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





------- Additional Comments From gus.heck@olin.edu  2003-01-06 15:54 -------
This is an Idea I've thought about a bit, but I havn't seen a good answer. I
actually have a case where I need to run as root so I can set strong
permissions, but I don't want the sub builds to run as root because I want to
make them writeable by various individuals, and it would be nice if I didn't
have to trust them all with root access.

I think the core problem is that you can't easily change what user the jvm
running ant is. Ant can't respond to prompt so using things like su -c and sudo
only works from root down to lesser users.

I know sudo from root to other users is possible by execing sudo (I had to do
this to make CVS happy, it didn't like root commits). 

This would be a nice feature, but any change of user will probably need to work
through sudo -S. (unless the information is written to a file and you <waitfor>
that file :) ).

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message