Hello,

I am having some trouble running a backup-script made for the FOSS-edition, and therefore posted some questions in this thread:
http://www.zimbra.com/forums/adminis...ersion-41.html

What I learned from the response is that it seems that I am running Zimbra as root, which is absolutely not my intention!

I don't want to hijack the above mentioned thread, so I post my question here instead.

If i run the following command it gives the result "root". It should have returned "zimbra", right?
Code:
administrator@mail:~$ ps -ef | grep '/opt/zimbra' | grep "java" | grep -v "zmmailboxdmgr" | grep -v grep | awk '{print $1}' | head -n 1
root
administrator@mail:~$
If I restart Zimbra manually I do it like this:
Code:
administrator@mail:~$ sudo su
[sudo] password for administrator:
root@mail:/home/administrator# su zimbra
zimbra@mail:/home/administrator$ zmcontrol restart
In my naivity I believed that this made Zimbra run as the Zimbra-user, not root...

What do I have to do to ensure that I am running Zimbra as the correct user?

Thankyou for any response!