Results 1 to 5 of 5

Thread: rights on/in /opt/zimbra

  1. #1
    Join Date
    Mar 2008
    Location
    Netherlands
    Posts
    3
    Rep Power
    0

    Question rights on/in /opt/zimbra

    Hi all,

    My first post here.. Installation went fine, but this evening I made a terrible and horrible dumb mistake. The (for me terrible story..):

    I went to my home pc and wanted to check my mail.. This is where Zimbra comes in action (for a couple of weeks, without a problem!) but not tonight! Zimbra wasn't running anymore.. no problem, zmcontrol start is executed quickly enough. Some error about disk space being insufficient.

    My first guess was: That can't be true, I've got plenty of space.. (Just 1 mailbox at the time and a 250 Gb disk.... Nothing more installed on that disk). Maybe is it all about writing permissions? This is where things took a turn for the worst.. This is the point of where I executed the following command (what the f*** was I thinking?):

    sudo chmod 777 /opt/zimbra -R ......

    Yes, I executed that command. After that it still complained about the disk space, so I started thinking. It crossed my mind that I connected a 250 Gig external USB disk and made a backup to that disk. Including my striped disk set (some important folder with photo's and video's). Could it be that my usb.... oh my god, It is in front of me.. Not connected to my server anymore and a crontab which starts the backup. Why didn't I think of that and why is it disconnected?

    That guess was the solution to the disk space problem. 225 Gb deleted and everything went smooth again... Except for Zimbra. Complaining about permissions.. And I don't know the default permissions. Well time for my fabulous backup.. Ohw that's the thing why it is disconnected.. It was partitioned wrong.

    So now I'm stuck with my permission settings of zimbra. How can I get it to work again? Who should be the owner of what file? And what permissions should I set to which files? That's the question.....

  2. #2
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    You need to reset the permissions on /opt/zimbra run the following (as root)

    Code:
    chown -R zimbra:zimbra /opt/zimbra
    /opt/zimbra/libexec/zmfixperms -verbose -extended
    then restart zimbra with a 'zmcontrol start', that should fix it but if there's still any errors then look in the log files.
    Last edited by phoenix; 05-18-2008 at 10:32 PM.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    Join Date
    Mar 2008
    Location
    Netherlands
    Posts
    3
    Rep Power
    0

    Default Thanx!

    Thanx for the quick reply!

    Now the only thing is the MySQL server. It wil not start.
    Code:
    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/opt/zimbra/db/mysql.sock' (2)
    I did read something about this error, but didn't find any solution. Could you help me once again??

  4. #4
    Join Date
    May 2007
    Location
    Oklahoma
    Posts
    703
    Rep Power
    9

    Default

    Check for the existence of the mysql.sock file and that it belongs to zimbra. it also need rwxrwxrwx perms.

  5. #5
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Also take a look at /opt/zimbra/logger/db/.err to ensure that none of your tables are corrupt aswell.

    Also, http://www.zimbra.com/forums/announc...r-profile.html please so we know what version of ZCS you are running

Similar Threads

  1. Replies: 27
    Last Post: 05-15-2012, 01:30 AM
  2. Replies: 3
    Last Post: 01-21-2008, 02:47 PM
  3. Sharing and rights to share
    By twickle in forum Administrators
    Replies: 0
    Last Post: 11-27-2007, 05:16 AM
  4. Find the version of zimbra from /opt/zimbra
    By jonnyRo in forum Administrators
    Replies: 3
    Last Post: 05-08-2007, 11:30 AM
  5. Set user with Send and Receive rights on all accounts
    By CatiaL in forum Zimbra Connector for Outlook
    Replies: 0
    Last Post: 12-04-2006, 04:33 AM

Posting Permissions

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