| Posted on 2005-03-09 19:34:32-08 by abulafia |
| Cvs module uses root's .cvsignore and .cvspass |
|
I'm using the Cvs module to export a build from our cvs repository. When I run the script from the command line as the proper user, it works fine.
When run as a CGI through Apache it wants to use root's .cvsignore and .cvspass files even though apache runs as user "apache".
Here's the debug output when run through Apache:
** new chunk
<< cvs login: warning: failed to open /root/.cvspass for reading: Permission denied
** unmatched line: cvs login: warning: failed to open /root/.cvspass for reading: Permission denied
<< cvs [login aborted]: could not open /root/.cvspass for writing: Permission denied
/bin/pwd: cannot get current directory: No such file or directory
** Chdir to: /tmp/
Binding CVSROOT handlers
CVSROOT access method is: pserver
>> cvs -f -d :pserver:au@10.0.0.251:/cvsroot export -d cvs_test_export -D 03/04/2005 ui
** new chunk
<< cvs export: cannot open /root/.cvsignore: Permission denied
** unmatched line: cvs export: cannot open /root/.cvsignore: Permission denied
** new chunk
<< cvs export: warning: failed to open /root/.cvspass for reading: Permission denied
** unmatched line: cvs export: warning: failed to open /root/.cvspass for reading: Permission denie
+d
** new chunk
<< cvs export: authorization failed: server 10.0.0.251 rejected access to /cvsroot for user au
** unmatched line: cvs export: authorization failed: server 10.0.0.251 rejected access to /cvsroot
+for user au
<< cvs export: used empty password; try "cvs login" with a real password
** Chdir to: /tmp/cvs_test_export
Binding CVSROOT handlers
CVSROOT access method is: pserver
>> cvs -f -d :pserver:au@10.0.0.251:/cvsroot login
** new chunk
<< Logging in to :pserver:au@10.0.0.251:2401/cvsroot
** unmatched line: Logging in to :pserver:au@10.0.0.251:2401/cvsroot
<< CVS password:
>> secret
We're modifying Cvs.pm for now.
Steve C
techrg.com |
| Direct Responses: Write a response |