Starting ZM with root instead of www-data

Forum for questions and support relating to the 1.24.x releases only.
Locked
valid
Posts: 10
Joined: Thu Dec 31, 2009 6:27 am
Contact:

Starting ZM with root instead of www-data

Post by valid »

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.

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
All of those are started automatically from www-root.

Any ideas?
henke
Posts: 60
Joined: Thu Nov 10, 2005 8:16 am

Post by henke »

I suspect its easier to modify the nfs
valid
Posts: 10
Joined: Thu Dec 31, 2009 6:27 am
Contact:

Post by valid »

henke wrote:I suspect its easier to modify the nfs
That's what I suspected 4 days ago :)

I'm not saying it's not possible -- I just haven't figured out how, and neither has anyone on any of the forums I've asked.
Locked