How to run command as apache?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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. 

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux