Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23

Thread: [SOLVED] zmfixperms error when migrating [using John Holder's powertip]

  1. #11
    jholder's Avatar
    jholder is offline Former Zimbran
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    20

    Default

    At what point are you at? Is this the output of the install over your good install?

    Not sure how root can get a perm denied for a file that's owned by root.


    in any case:
    chown -R zimbra:zimbra /opt/zimbra/*

  2. #12
    parixit is offline Senior Member
    Join Date
    May 2007
    Location
    Piscataway NJ
    Posts
    62
    Rep Power
    7

    Default

    permissions of /opt/zimbra/conf
    where the zcs license file is

    total 456
    drwx------ 6 zimbra zimbra 4096 Dec 1 18:35 .
    drwxr-xr-x 44 root root 4096 Dec 2 15:36 ..
    -rw------- 1 zimbra zimbra 27870 Nov 29 00:16 amavisd.conf
    -rw------- 1 zimbra zimbra 28082 May 18 2007 amavisd.conf.in
    drwx------ 2 zimbra zimbra 4096 Dec 1 18:35 attrs
    drwx------ 2 zimbra zimbra 4096 Dec 1 18:35 ca
    -rw------- 1 zimbra zimbra 8203 Nov 29 00:16 clamd.conf
    -rw------- 1 zimbra zimbra 8271 May 18 2007 clamd.conf.in
    -rw------- 1 zimbra zimbra 600 May 18 2007 com.zimbra.zcs.plist
    -rw------- 1 zimbra zimbra 1225 May 18 2007 convertd.log4j.properties
    -rw------- 1 zimbra zimbra 25885 May 18 2007 dspam.conf
    -rw------- 1 zimbra zimbra 3112 Nov 29 00:16 freshclam.conf
    -rw------- 1 zimbra zimbra 3163 May 18 2007 freshclam.conf.in
    -rw------- 1 zimbra zimbra 35233 May 18 2007 httpd.conf
    -rw------- 1 zimbra zimbra 329 May 21 2007 ldap-scm.cf
    -rw------- 1 zimbra zimbra 257 May 21 2007 ldap-transport.cf
    -rw------- 1 zimbra zimbra 245 May 21 2007 ldap-vad.cf
    -rw------- 1 zimbra zimbra 388 May 21 2007 ldap-vam.cf
    -rw------- 1 zimbra zimbra 245 May 21 2007 ldap-vmd.cf
    -rw------- 1 zimbra zimbra 239 May 21 2007 ldap-vmm.cf
    -rw------- 1 zimbra zimbra 12131 May 21 2007 localconfig.xml
    -rw------- 1 zimbra zimbra 4130 May 18 2007 log4j.properties
    -rw------- 1 zimbra zimbra 89 May 18 2007 logswatchrc
    drwx------ 2 zimbra zimbra 4096 Dec 1 18:35 msgs
    -rw------- 1 zimbra zimbra 878 May 17 2007 my.cnf
    -rw------- 1 zimbra zimbra 593 May 18 2007 my.logger.cnf
    -rw------- 1 zimbra zimbra 11908 May 18 2007 perdition.conf
    -rw------- 1 zimbra zimbra 11889 May 18 2007 perdition.conf.in
    -rw------- 1 zimbra zimbra 887 May 21 2007 perdition.key
    -rw------- 1 zimbra zimbra 1090 May 21 2007 perdition.pem
    -rw------- 1 zimbra zimbra 46783 May 18 2007 php.ini
    -rw------- 1 zimbra zimbra 240 Nov 29 00:16 postfix_header_checks
    -rw------- 1 zimbra zimbra 12288 Nov 29 00:16 postfix_header_checks.db
    -rw------- 1 zimbra zimbra 488 May 18 2007 postfix_header_checks.in
    -rw------- 1 zimbra zimbra 1092 May 18 2007 postfix_recipient_restrictions.cf
    -rw------- 1 zimbra zimbra 965 Nov 29 00:16 salocal.cf
    -rw------- 1 zimbra zimbra 1024 May 18 2007 salocal.cf.in
    -rw------- 1 zimbra zimbra 5454 Nov 29 00:14 slapd.conf
    -rw------- 1 zimbra zimbra 5467 May 21 2007 slapd.conf.in
    -rw------- 1 zimbra zimbra 1090 May 21 2007 slapd.crt
    -rw------- 1 zimbra zimbra 887 May 17 2007 slapd.key
    -rw------- 1 zimbra zimbra 1090 May 21 2007 smtpd.crt
    -rw------- 1 zimbra zimbra 887 May 21 2007 smtpd.key
    drwx------ 2 zimbra zimbra 4096 Dec 1 18:35 spamassassin
    -rw------- 1 zimbra zimbra 1912 May 21 2007 swatchrc
    -rw------- 1 zimbra zimbra 1900 May 18 2007 swatchrc.in
    -rw------- 1 zimbra zimbra 25491 May 18 2007 timezones.ics
    -rw------- 1 zimbra zimbra 3198 May 18 2007 wildfire.xml
    -rw------- 1 zimbra zimbra 1661 May 17 2007 ZCSLicense.xml
    -rw------- 1 zimbra zimbra 94 May 18 2007 zimbra.ld.conf
    -rw------- 1 zimbra zimbra 980 May 21 2007 zimbra.ldif
    -rw------- 1 zimbra zimbra 664 May 18 2007 zmlogrotate
    -rw------- 1 zimbra zimbra 4298 May 18 2007 zmmta.cf
    -rw------- 1 zimbra zimbra 7650 May 18 2007 zmssl.cnf.in

  3. #13
    parixit is offline Senior Member
    Join Date
    May 2007
    Location
    Piscataway NJ
    Posts
    62
    Rep Power
    7

    Default

    yes it was the output of the install over the good install....the last step you had.

  4. #14
    jholder's Avatar
    jholder is offline Former Zimbran
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    20

    Default

    Okay, now that your new install is read/writable by zimbra, run the install.sh -s script

    After that's done, rn the zmfixperms script in libexec

  5. #15
    parixit is offline Senior Member
    Join Date
    May 2007
    Location
    Piscataway NJ
    Posts
    62
    Rep Power
    7

    Default

    when i run install.sh -s
    it can't read the zcs lisence file

    [root@msgctr zimbraInstall]# ./install.sh -s

    Operations logged to /tmp/install.log.4792
    Checking for existing installation...
    zimbra-ldap...FOUND zimbra-ldap-4.5.5_GA_838
    zimbra-logger...FOUND zimbra-logger-4.5.5_GA_838
    zimbra-mta...FOUND zimbra-mta-4.5.5_GA_838
    zimbra-snmp...FOUND zimbra-snmp-4.5.5_GA_838
    zimbra-store...FOUND zimbra-store-4.5.5_GA_838
    zimbra-apache...FOUND zimbra-apache-4.5.5_GA_838
    zimbra-spell...FOUND zimbra-spell-4.5.5_GA_838
    zimbra-core...FOUND zimbra-core-4.5.5_GA_838
    Checking for available license file...
    -bash: /opt/zimbra/.bash_profile: Permission denied
    Warning: Could not determine the number of users on this system.
    If you exceed the number of licensed users (50) then you will
    not be able to create new users.

  6. #16
    jholder's Avatar
    jholder is offline Former Zimbran
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    20

    Default

    It doesn't need to read the license file at this step. You already have it installed in your old zimbra setup. Just ignore that, and install it.

  7. #17
    jholder's Avatar
    jholder is offline Former Zimbran
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    20

    Default

    I have absolutely no idea why you're getting this error:
    -bash: /opt/zimbra/.bash_profile: Permission denied

    I have never seen that.

    Actually, just figured it out. Turn SELinux off.

  8. #18
    parixit is offline Senior Member
    Join Date
    May 2007
    Location
    Piscataway NJ
    Posts
    62
    Rep Power
    7

    Default

    how do i make sure my permissions are correct?

    when i run sh -x zmfixperms
    i get whats below
    + ROOTGROUP=root
    ++ /bin/sh /opt/zimbra/libexec/get_plat_tag.sh
    : command not found/get_plat_tag.sh: line 26:
    : command not found/get_plat_tag.sh: line 27:
    /opt/zimbra/libexec/get_plat_tag.sh: line 33: syntax error near unexpected token `else'
    'opt/zimbra/libexec/get_plat_tag.sh: line 33: ` else
    + PLAT=
    + '[' X = XMACOSX -o X = XMACOSXx86 ']'
    + chown -R zimbra:zimbra /opt/zimbra/amavisd-new-2.4.3 /opt/zimbra/apache-tomcat-5.5.15 /opt/zimbra/aspell-0.60.3 /opt/zimbra/clamav-0.88.7 /opt/zimbra/clamav-0.90.2 /opt/zimbra/clamav-0.91.2 /opt/zimbra/conf /opt/zimbra/config.10421 /opt/zimbra/config.12687 /opt/zimbra/config.30182 /opt/zimbra/config.5134 /opt/zimbra/contrib /opt/zimbra/convertd /opt/zimbra/cyrus-sasl-2.1.21.ZIMBRA /opt/zimbra/db /opt/zimbra/doc /opt/zimbra/dspam-3.6.2 /opt/zimbra/httpd-2.0.54 /opt/zimbra/index /opt/zimbra/jdk1.5.0_08 /opt/zimbra/lib /opt/zimbra/libexec /opt/zimbra/log /opt/zimbra/logger /opt/zimbra/mysql-standard-5.0.33-pc-linux-gnu-i686-glibc23 /opt/zimbra/net-snmp-5.4 /opt/zimbra/openldap-2.3.34 /opt/zimbra/openldap-data /opt/zimbra/openldap-replica /opt/zimbra/tomcat /opt/zimbra/verity /opt/zimbra/wiki /opt/zimbra/zimbramon /opt/zimbra/zimlets /opt/zimbra/zimlets-extra /opt/zimbra/zimlets-network /opt/zimbra/sleepycat-4.2.52.4 /opt/zimbra/ssl /opt/zimbra/perdition-1.17
    + chown root:root /opt/zimbra/apache-tomcat-5.5.15
    + chown -R root:root /opt/zimbra/libexec
    + chown -R root:root /opt/zimbra/bin
    + chown -R root:root /opt/zimbra/lib
    + '[' -d /opt/zimbra/jdk1.5.0_08 ']'
    + chown -R root:root /opt/zimbra/jdk1.5.0_08
    + chown root:root /opt/zimbra
    + chmod 755 /opt/zimbra
    + chmod 755 /opt/zimbra/libexec/600.zimbra /opt/zimbra/libexec/addUser.sh /opt/zimbra/libexec/get_plat_tag.sh /opt/zimbra/libexec/installer /opt/zimbra/libexec/logswatch /opt/zimbra/libexec/postinstall.pm /opt/zimbra/libexec/preinstall.pm /opt/zimbra/libexec/sa-learn /opt/zimbra/libexec/scripts /opt/zimbra/libexec/swatch /opt/zimbra/libexec/zcs /opt/zimbra/libexec/zimbra /opt/zimbra/libexec/zmconfigure /opt/zimbra/libexec/zmconvertd /opt/zimbra/libexec/zmconvertdmon /opt/zimbra/libexec/zmcpustat /opt/zimbra/libexec/zmdailyreport /opt/zimbra/libexec/zmdisklog /opt/zimbra/libexec/zmexplainslow /opt/zimbra/libexec/zmexplainsql /opt/zimbra/libexec/zmextractsql /opt/zimbra/libexec/zmfixperms /opt/zimbra/libexec/zmgenentitlement /opt/zimbra/libexec/zmgengraphs /opt/zimbra/libexec/zmiostat /opt/zimbra/libexec/zmldapapplyldif /opt/zimbra/libexec/zmldapenablereplica /opt/zimbra/libexec/zmldapinit /opt/zimbra/libexec/zmlogger /opt/zimbra/libexec/zmloggerinit /opt/zimbra/libexec/zmloggerprune /opt/zimbra/libexec/zmlogprocess /opt/zimbra/libexec/zmmaintaintables /opt/zimbra/libexec/zmmon /opt/zimbra/libexec/zmmtaconfig /opt/zimbra/libexec/zmmtainit /opt/zimbra/libexec/zmmycnf /opt/zimbra/libexec/zmmyinit /opt/zimbra/libexec/zmnotifyinstall /opt/zimbra/libexec/zmpurgemessages /opt/zimbra/libexec/zmqaction /opt/zimbra/libexec/zmqstat /opt/zimbra/libexec/zmqueuelog /opt/zimbra/libexec/zmrc /opt/zimbra/libexec/zmrcd /opt/zimbra/libexec/zmroll_catalina /opt/zimbra/libexec/zmsetservername /opt/zimbra/libexec/zmsetup.pl /opt/zimbra/libexec/zmslapcat /opt/zimbra/libexec/zmsnmpinit /opt/zimbra/libexec/zmstatuslog /opt/zimbra/libexec/zmtomcatmgr /opt/zimbra/libexec/zmtomcatmgr.unrestricted /opt/zimbra/libexec/zmupgrade.pm
    + chmod 755 /opt/zimbra/bin/ldap /opt/zimbra/bin/ldapsearch /opt/zimbra/bin/logmysql /opt/zimbra/bin/logmysqladmin /opt/zimbra/bin/logmysql.server /opt/zimbra/bin/mysql /opt/zimbra/bin/mysqladmin /opt/zimbra/bin/mysql.server /opt/zimbra/bin/postconf /opt/zimbra/bin/postfix /opt/zimbra/bin/qshape /opt/zimbra/bin/tomcat /opt/zimbra/bin/zmaccts /opt/zimbra/bin/zmamavisdctl /opt/zimbra/bin/zmantispamctl /opt/zimbra/bin/zmantivirusctl /opt/zimbra/bin/zmapachectl /opt/zimbra/bin/zmarchiveconfig /opt/zimbra/bin/zmarchivesearch /opt/zimbra/bin/zmbackup /opt/zimbra/bin/zmbackupabort /opt/zimbra/bin/zmbackupquery /opt/zimbra/bin/zmcertinstall /opt/zimbra/bin/zmclamdctl /opt/zimbra/bin/zmcleaniplanetics /opt/zimbra/bin/zmcontrol /opt/zimbra/bin/zmconvertctl /opt/zimbra/bin/zmcreateca /opt/zimbra/bin/zmcreatecert /opt/zimbra/bin/zmdumpenv /opt/zimbra/bin/zmfixtz /opt/zimbra/bin/zmhostname /opt/zimbra/bin/zmhsm /opt/zimbra/bin/zmjava /opt/zimbra/bin/zmjava32 /opt/zimbra/bin/zmjavaext /opt/zimbra/bin/zmldappasswd /opt/zimbra/bin/zmlicense /opt/zimbra/bin/zmlmtpinject /opt/zimbra/bin/zmlocalconfig /opt/zimbra/bin/zmloggerctl /opt/zimbra/bin/zmlogswatchctl /opt/zimbra/bin/zmmailbox /opt/zimbra/bin/zmmailboxctl /opt/zimbra/bin/zmmailboxmove /opt/zimbra/bin/zmmboxsearch /opt/zimbra/bin/zmmsgtrace /opt/zimbra/bin/zmmtaconfigctl /opt/zimbra/bin/zmmtactl /opt/zimbra/bin/zmmylogpasswd /opt/zimbra/bin/zmmypasswd /opt/zimbra/bin/zmmysqlstatus /opt/zimbra/bin/zmperditionctl /opt/zimbra/bin/zmprov /opt/zimbra/bin/zmrestore /opt/zimbra/bin/zmrestoreldap /opt/zimbra/bin/zmrestoreoffline /opt/zimbra/bin/zmsaslauthdctl /opt/zimbra/bin/zmschedulebackup /opt/zimbra/bin/zmshutil /opt/zimbra/bin/zmspamextract /opt/zimbra/bin/zmspellctl /opt/zimbra/bin/zmsshkeygen /opt/zimbra/bin/zmswatchctl /opt/zimbra/bin/zmsyslogsetup /opt/zimbra/bin/zmtlsctl /opt/zimbra/bin/zmtrainsa /opt/zimbra/bin/zmupdateauthkeys /opt/zimbra/bin/zmvolume /opt/zimbra/bin/zmzimletctl
    + chmod 755 /opt/zimbra/libexec/600.zimbra /opt/zimbra/libexec/addUser.sh /opt/zimbra/libexec/get_plat_tag.sh /opt/zimbra/libexec/installer /opt/zimbra/libexec/logswatch /opt/zimbra/libexec/postinstall.pm /opt/zimbra/libexec/preinstall.pm /opt/zimbra/libexec/sa-learn /opt/zimbra/libexec/scripts /opt/zimbra/libexec/swatch /opt/zimbra/libexec/zcs /opt/zimbra/libexec/zimbra /opt/zimbra/libexec/zmconfigure /opt/zimbra/libexec/zmconvertd /opt/zimbra/libexec/zmconvertdmon /opt/zimbra/libexec/zmcpustat /opt/zimbra/libexec/zmdailyreport /opt/zimbra/libexec/zmdisklog /opt/zimbra/libexec/zmexplainslow /opt/zimbra/libexec/zmexplainsql /opt/zimbra/libexec/zmextractsql /opt/zimbra/libexec/zmfixperms /opt/zimbra/libexec/zmgenentitlement /opt/zimbra/libexec/zmgengraphs /opt/zimbra/libexec/zmiostat /opt/zimbra/libexec/zmldapapplyldif /opt/zimbra/libexec/zmldapenablereplica /opt/zimbra/libexec/zmldapinit /opt/zimbra/libexec/zmlogger /opt/zimbra/libexec/zmloggerinit /opt/zimbra/libexec/zmloggerprune /opt/zimbra/libexec/zmlogprocess /opt/zimbra/libexec/zmmaintaintables /opt/zimbra/libexec/zmmon /opt/zimbra/libexec/zmmtaconfig /opt/zimbra/libexec/zmmtainit /opt/zimbra/libexec/zmmycnf /opt/zimbra/libexec/zmmyinit /opt/zimbra/libexec/zmnotifyinstall /opt/zimbra/libexec/zmpurgemessages /opt/zimbra/libexec/zmqaction /opt/zimbra/libexec/zmqstat /opt/zimbra/libexec/zmqueuelog /opt/zimbra/libexec/zmrc /opt/zimbra/libexec/zmrcd /opt/zimbra/libexec/zmroll_catalina /opt/zimbra/libexec/zmsetservername /opt/zimbra/libexec/zmsetup.pl /opt/zimbra/libexec/zmslapcat /opt/zimbra/libexec/zmsnmpinit /opt/zimbra/libexec/zmstatuslog /opt/zimbra/libexec/zmtomcatmgr /opt/zimbra/libexec/zmtomcatmgr.unrestricted /opt/zimbra/libexec/zmupgrade.pm
    + '[' '!' -d /opt/zimbra/tomcat/conf ']'
    + '[' -L /opt/zimbra/postfix ']'
    + '[' -d /opt/zimbra/cyrus-sasl-2.1.21.ZIMBRA ']'
    + chown root:zimbra /opt/zimbra/cyrus-sasl-2.1.21.ZIMBRA
    + mkdir -p /opt/zimbra/cyrus-sasl-2.1.21.ZIMBRA/state
    + chown zimbra:zimbra /opt/zimbra/cyrus-sasl-2.1.21.ZIMBRA/state
    + '[' -d /opt/zimbra/clamav-0.87.1 ']'
    + '[' -f /opt/zimbra/openldap/libexec/slapd ']'
    + '[' -f /opt/zimbra/libexec/ZmSetup.app/Contents/MacOS/ZmSetup ']'

  9. #19
    jholder's Avatar
    jholder is offline Former Zimbran
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    20

    Default

    Turn off SELinux. We don't support that. That's what's messing things up.

  10. #20
    parixit is offline Senior Member
    Join Date
    May 2007
    Location
    Piscataway NJ
    Posts
    62
    Rep Power
    7

    Default

    I was hoping that was going to be it but I do have it turned off.

    =(

Page 2 of 3 FirstFirst 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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