ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Rob (Global Trade)" <>
Subject RE: Switching to 'root' user
Date Wed, 14 Feb 2007 18:34:06 GMT
What are you trying to accomplish as root? Running ant as root should
probably not be necessary. There are probably only a few commands that
need to run as root. I would suggest configuring sudo to only allow
execution of those specific commands (with NOPASSWD), and in your
build.xml file use the exec task to run sudo.

-Rob Anderson

> -----Original Message-----
> From: jason heddings [] 
> Sent: Wednesday, February 14, 2007 9:15 AM
> To: 'Ant Users List'
> Subject: Switching to 'root' user
> Is it possible to run 'ant' as a regular user, but in the 
> build file change the process to run as 'root' instead?  I 
> could just prefix the ant command with 'sudo' but I'd like to 
> try to accomplish this "behind the scenes" of our developers.
> Thanks,
> --jah
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: For 
> additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message