[CentOS] How to run command as apache?

Sun May 10 13:54:00 UTC 2009
Neil Aggarwal <neil at JAMMConsulting.com>

Hello:

I have a subversion repository set up in
/usr/local/svn/MyProject.

For security, I have that directory set to
apache as the owner and group and all files
are mode 700.

I need to run a svnsync command as the apache
user so it may write to the repository.

I tried this command:

su apache -c "/usr/bin/svnsync sync
https://svn2.jammconsulting.com/svn/MyProject"

But I get this message from the su command:
This account is currently not available.

I am guessing this happens because the apache account
is set with no password and a nologin shell.

How can I run a command as the apache user?

Thanks,
	Neil

--
Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
Eliminate junk email and reclaim your inbox.
Visit http://www.spammilter.com for details.