Results 1 to 5 of 5

Thread: [SOLVED] rsync permision denied

  1. #1
    Join Date
    Feb 2010
    Posts
    33
    Rep Power
    5

    Exclamation [SOLVED] rsync permision denied

    Hi all.

    I am trying to run a backup using this article
    Moving ZCS to New Server - Zimbra :: Wiki

    I have the open version of zimbra so i used the one at the bottom of that guide.

    at the point of running the command
    # rsync -avHK /opt/zimbra /opt/zimbra.bak

    i get this errors:

    zimbra@mail:/root$ rsync -avHK /opt/zimbra /opt/zimbra.bak
    building file list ... rsync: opendir "/opt/zimbra/ssl/zimbra" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/ssl/zimbra.20100504215718" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/ssl/zimbra.20100504215721" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/data/postfix/spool/maildrop" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/data/postfix/spool/saved" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/data/postfix/spool/incoming" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/data/postfix/spool/private" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/data/postfix/spool/flush" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/data/postfix/spool/trace" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/data/postfix/spool/public" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/data/postfix/spool/bounce" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/data/postfix/spool/corrupt" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/data/postfix/spool/active" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/data/postfix/spool/deferred" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/data/postfix/spool/hold" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/data/postfix/spool/defer" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/dspam-3.9.0/var/dspam" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/.saveconfig" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/jetty-6.1.22.z6/work/zimlet" failed: Permission denied (13)
    done
    rsync: mkdir "/opt/zimbra.bak" failed: Permission denied (13)
    rsync error: error in file IO (code 11) at main.c(529) [receiver=2.6.9]
    rsync: connection unexpectedly closed (8 bytes received so far) [sender]
    rsync error: error in rsync protocol data stream (code 12) at io.c(454) [sender=2.6.9]
    zimbra@mail:/root$
    2.6.9]



    Why I'm getting this errors?

    Info on what i did:

    a. I'm using root to run "zimbra" user
    b. I ran "zmcontrol stop" to stop all services
    c. I didn't follow the step of checking if no zimbra process is running if so kill that process. How can i do it?

    Can someone help?

    Thanks in advanced.

    Regards
    Guy

  2. #2
    Join Date
    Oct 2005
    Location
    USA, Canada and India
    Posts
    777
    Rep Power
    11

    Default

    try resetting the file permissions for zimbra and check again

    run the following as "root" user

    /opt/zimbra/libexec/zmfixperms --verbose --extended

    Raj
    i2k2 Networks
    Dedicated & Shared Zimbra Hosting Provider

  3. #3
    Join Date
    Feb 2010
    Posts
    33
    Rep Power
    5

    Default

    Quote Originally Posted by raj View Post
    try resetting the file permissions for zimbra and check again

    run the following as "root" user




    Raj
    Doesn't help! i only got lots of more Permission denied.

    Do i need to revers the command that you proposed?

    Please see log:

    login as: root
    root@mail.xxxxxxx.com's password:
    Last login: Thu Oct 21 20:37:16 2010 from 192.168.10.1
    Linux mail.xxxxxxx.com 2.6.24-26-server #1 SMP Tue Dec 1 19:19:20 UTC 2009 i686

    The programs included with the Ubuntu system are free software;
    the exact distribution terms for each program are described in the
    individual files in /usr/share/doc/*/copyright.

    Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
    applicable law.

    To access official Ubuntu documentation, please visit:
    http://help.ubuntu.com/
    root@mail:~# /opt/zimbra/libexec/zmfixperms --verbose --extended
    Fixing ownership and permissions on /opt/zimbra/conf
    Fixing permissions on /opt/zimbra/conf/spamassassin
    Fixing ownership and permissions on /opt/zimbra/conf/ldap-scm.cf
    Fixing ownership and permissions on /opt/zimbra/conf/ldap-transport.cf
    Fixing ownership and permissions on /opt/zimbra/conf/ldap-vad.cf
    Fixing ownership and permissions on /opt/zimbra/conf/ldap-vam.cf
    Fixing ownership and permissions on /opt/zimbra/conf/ldap-vmd.cf
    Fixing ownership and permissions on /opt/zimbra/conf/ldap-vmm.cf
    Fixing permissions and ownership on /opt/zimbra/conf/nginx.key
    Fixing permissions and ownership on /opt/zimbra/conf/slapd.key
    Fixing permissions and ownership on /opt/zimbra/conf/smtpd.key
    Fixing ownership and permissions on /var/log/zimbra.log
    Fixing ownership and permissions on /opt/zimbra/amavisd
    Fixing ownership and permissions on /opt/zimbra/aspell
    Fixing ownership and permissions on /opt/zimbra/bdb
    Fixing ownership and permissions on /opt/zimbra/clamav
    Fixing ownership and permissions on /opt/zimbra/curl
    Fixing ownership and permissions on /opt/zimbra/cyrus-sasl
    Fixing ownership and permissions on /opt/zimbra/altermime
    Fixing ownership and permissions on /opt/zimbra/dspam
    Fixing ownership and permissions on /opt/zimbra/heimdal
    Fixing ownership and permissions on /opt/zimbra/httpd
    Fixing ownership and permissions on /opt/zimbra/libtool
    Fixing ownership and permissions on /opt/zimbra/mysql
    Fixing ownership and permissions on /opt/zimbra/net-snmp
    Fixing ownership and permissions on /opt/zimbra/openldap
    Fixing ownership and permissions on /opt/zimbra/openssl
    Fixing ownership and permissions on /opt/zimbra/snmp
    Fixing ownership and permissions on /opt/zimbra/tcmalloc
    Fixing ownership and permissions on /opt/zimbra/zimbramon/bin
    Fixing ownership and permissions on /opt/zimbra/zimbramon/crontabs
    Fixing ownership and permissions on /opt/zimbra/zimbramon/rrdtool
    Fixing ownership and permissions on /opt/zimbra/jdk1.6.0_16
    Fixing ownership and permissions on /opt/zimbra/lib
    Fixing ownership and permissions on /opt/zimbra/db
    Fixing ownership and permissions on /opt/zimbra/cyrus-sasl
    Fixing ownership and permissions on /opt/zimbra/data/amavisd
    Fixing ownership and permissions on /opt/zimbra/jetty
    Fixing ownership and permissions on /opt/zimbra/ssl
    Fixing ownership and permissions on /opt/zimbra/openldap
    Fixing ownership and permissions on /opt/zimbra/snmp/var
    Fixing ownership and permissions on /opt/zimbra/logger/db
    Fixing ownership and permissions on /opt/zimbra/clamav/db
    Fixing ownership and permissions on /opt/zimbra/zimbramon/lib
    Fixing ownership and permissions on /opt/zimbra/postfix
    Fixing ownership and permissions on /opt/zimbra/data/postfix
    Fixing ownership of /opt/zimbra/index
    Fixing ownership of /opt/zimbra/backup
    Fixing ownership of /opt/zimbra/redolog
    Fixing ownership of /opt/zimbra/store
    root@mail:~# su zimbra
    zimbra@mail:/root$ rsync -avHK /opt/zimbra /opt/zimbra.bak
    building file list ... rsync: opendir "/opt/zimbra/net-snmp-5.5/var/mib_indexes" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/data/postfix/spool/maildrop" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/data/postfix/spool/saved" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/data/postfix/spool/incoming" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/data/postfix/spool/private" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/data/postfix/spool/flush" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/data/postfix/spool/trace" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/data/postfix/spool/public" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/data/postfix/spool/bounce" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/data/postfix/spool/corrupt" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/data/postfix/spool/active" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/data/postfix/spool/deferred" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/data/postfix/spool/hold" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/data/postfix/spool/defer" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/dspam-3.9.0/var/dspam" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/.saveconfig" failed: Permission denied (13)
    done
    rsync: mkdir "/opt/zimbra.bak" failed: Permission denied (13)
    rsync error: error in file IO (code 11) at main.c(529) [receiver=2.6.9]
    rsync: connection unexpectedly closed (8 bytes received so far) [sender]
    rsync error: error in rsync protocol data stream (code 12) at io.c(454) [sender=2.6.9]
    zimbra@mail:/root$

  4. #4
    Join Date
    Oct 2005
    Location
    USA, Canada and India
    Posts
    777
    Rep Power
    11

    Default

    root@mail:~# su zimbra
    zimbra@mail:/root$ rsync -avHK /opt/zimbra /opt/zimbra.bak
    rsync: mkdir "/opt/zimbra.bak" failed: Permission denied (13)
    ahhhh...you running the backup as "zimbra" user..you suppose to run rsync as "ROOT"

    it should work for sure as root

    Raj
    i2k2 Networks
    Dedicated & Shared Zimbra Hosting Provider

  5. #5
    Join Date
    Feb 2010
    Posts
    33
    Rep Power
    5

    Default

    Quote Originally Posted by raj View Post
    ahhhh...you running the backup as "zimbra" user..you suppose to run rsync as "ROOT"

    it should work for sure as root

    Raj
    Worked perfectly !

    Thanks allot !
    And like always sorry for my ignorance in Linux

    Regards
    Guy.

Similar Threads

  1. [SOLVED] zmskindeploy - permission denied?
    By mlanner in forum Administrators
    Replies: 3
    Last Post: 02-29-2008, 12:04 AM
  2. Backups - RSYNC & copying files issue
    By sternfan in forum Administrators
    Replies: 8
    Last Post: 12-20-2007, 12:51 PM
  3. Backup issues
    By telescop in forum Administrators
    Replies: 3
    Last Post: 03-01-2007, 06:09 PM
  4. Ldap issues
    By mississippiman in forum Installation
    Replies: 11
    Last Post: 01-09-2007, 08:00 PM
  5. Move server to different OS
    By EriSan500 in forum Administrators
    Replies: 7
    Last Post: 03-05-2006, 01:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •