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=21083>. 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=21083 exec "cvs commit" doesn't work for sudo Summary: exec "cvs commit" doesn't work for sudo Product: Ant Version: 1.5.3 Platform: PC OS/Version: Linux Status: NEW Severity: Normal Priority: Other Component: Core tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] When I login as a normail user, sudo to root, then use <exec> task to commit files, <exec dir="/home/user/xxx" executable="/usr/bin/cvs"> <arg line="commit -m ''"/> </exec> I got error like this: cvs [commit aborted]: cannot commit files as 'root' However that should only occur when people login as root. And I've verified that it does work in command line. Here is the explanation from CVS gurus for that error: ============ It's an intended feature, but it has more to do with maintaining accountability than security. Since root is usually a shared account, CVS won't allow you to commit as root unless it can figure out who you really are. Logging in as yourself and then su'ing to root will usually allow CVS to figure out who you are, logging in as root won't. ============ Did anyone else hit this problem? Please let me know if there's a solution. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]