Starting ZM with root instead of www-data
Posted: Mon Jan 04, 2010 6:25 am
I realize this is probably very bad practice, but I'm at my wits end -- spending 4 days of my Christmas break on this wasn't what I had intended.
The situation is my NFS mount can only be written to from root, and www-data can't write to it.
So what I need to do is make ZM start as root, so it can have access to the mount, so it can write to the symlink for /events/ I have going there.
All of those are started automatically from www-root.
Any ideas?
The situation is my NFS mount can only be written to from root, and www-data can't write to it.
So what I need to do is make ZM start as root, so it can have access to the mount, so it can write to the symlink for /events/ I have going there.
Code: Select all
www-data 1861 0.0 0.5 10656 6128 ? S 22:15 0:00 /usr/bin/perl -wT /usr/bin/zmdc.pl startup
www-data 1885 5.4 14.1 250976 145628 ? S 22:15 0:28 /usr/bin/zmc -m 1
www-data 1891 0.0 1.0 13672 10408 ? S 22:15 0:00 /usr/bin/perl -wT /usr/bin/zmfilter.pl
www-data 1894 0.0 0.7 11136 7900 ? S 22:15 0:00 /usr/bin/perl -wT /usr/bin/zmaudit.pl -c
www-data 1897 0.0 0.7 10524 7324 ? S 22:15 0:00 /usr/bin/perl -wT /usr/bin/zmwatch.pl
www-data 2207 9.0 14.2 250636 145876 ? S 22:15 0:46 /usr/bin/zma -m 1
Any ideas?