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.
Nate:
I don't want to change its shell to a valid shell. It should be a locked account.
Neil
-- Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com Eliminate junk email and reclaim your inbox. Visit http://www.spammilter.com for details.
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of nate Sent: Sunday, May 10, 2009 8:12 PM To: centos@centos.org Subject: Re: [CentOS] How to run command as apache?
Neil Aggarwal wrote:
How can I run a command as the apache user?
Run chsh apache and change it's shell to a valid shell.
nate
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos