1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

chmod /var 777 help

Discussion in 'Plesk 10.x for Linux Issues, Fixes, How-To' started by MarisaD, Nov 9, 2012.

  1. MarisaD

    MarisaD New Pleskian

    10
    85%
    Joined:
    Apr 23, 2012
    Messages:
    10
    Likes Received:
    0
    Is there anyway to fix a VPS, plesk 10.4.4 where the user chmod all of /var to 777

    some permissions seem to have been restored -Perhaps using httpdmng or similar tools although nothing in bash history to see how.

    Qmail reports problems when trying to inject mail, and 190emails stuck in queue not processing (qmail-inject: fatal: qq temporary problem (#4.3.0)
    Can't send mail: sendmail process failed with error code 111)

    Issue the same even when trying to set permissions back on the /var/qmail/ by copying from another vps.

    Are the below now correct?


    drwxr-xr-x 11 root qmail 4.0K Nov 9 2011 .
    drwxr-xr-x 17 root root 4.0K Nov 7 13:10 ..
    drwxr-xr-x 2 alias qmail 4.0K Nov 9 2011 alias
    drwxr-xr-x 2 root qmail 4.0K Nov 7 13:14 bin
    drwxr-xr-x 2 root qmail 4.0K Nov 9 2011 boot
    drwxr-xr-x 2 root qmail 4.0K Nov 9 23:02 control
    drwxr-xr-x 22 root root 4.0K Nov 7 09:20 mailnames
    drwxr-xr-x 2 root qmail 4.0K Nov 9 2011 plugins
    drwxr-xr-x 2 popuser popuser 4.0K Nov 8 13:19 popuser
    drwxr-xr-x 11 qmailq qmail 4.0K Nov 8 13:19 queue
    drwxr-xr-x 2 root qmail 4.0K Nov 9 23:02 users

    inside queue

    root@lvps109-104-93-192:/var/qmail/queue# ls -lah
    total 44K
    drwxr-xr-x 11 qmailq qmail 4.0K Nov 8 13:19 .
    drwxr-xr-x 11 root qmail 4.0K Nov 9 2011 ..
    drwx------ 2 qmails qmail 4.0K Nov 7 09:40 bounce
    drwx------ 25 qmails qmail 4.0K Nov 9 22:49 info
    drwx------ 25 qmailq qmail 4.0K Nov 9 22:49 intd
    drwx------ 25 qmails qmail 4.0K Nov 9 22:49 local
    drwxr-x--- 2 qmailq qmail 4.0K Nov 9 2011 lock
    drwxr-x--- 25 qmailq qmail 4.0K Nov 9 22:43 mess
    drwx------ 2 qmailq qmail 4.0K Nov 9 13:00 pid
    drwx------ 25 qmails qmail 4.0K Nov 9 22:49 remote
    drwxr-x--- 25 qmailq qmail 4.0K Nov 9 22:50 todo


    inside mess

    drwxr-x--- 2 qmailq qmail 4.0K Nov 9 12:47 0
    drwxr-x--- 2 qmailq qmail 4.0K Nov 9 12:47 1
    drwxr-x--- 2 qmailq qmail 4.0K Nov 9 12:47 10
    drwxr-x--- 2 qmailq qmail 4.0K Nov 9 12:47 11

    etc.



    However /var/lib/ is still all 777 as are most other folders including sendmail in there.

    Can you provide me a list of all permissions and user:group for the /var directory or a list of tools that will restore it all? Anything form virtuozzo/power panel?

    If we install postfix through autoinstaller then back to qmail, will this work and will it lose the 190emails stuck in the queue as the customer wants to try save these.

    If we backup /var/qmail/mess then reisntall qmail and put it back in again will this work?

    Trying to avoid rebuild and keep all emails and data so any suggestions welcome.

    Thanks,
     
  2. MarisaD

    MarisaD New Pleskian

    10
    85%
    Joined:
    Apr 23, 2012
    Messages:
    10
    Likes Received:
    0
    fixed it

    Copy by eye permissions of all /var/qmail folders from working server.

    Backup qmail dir to a folder outside /var/ (just incase didn’t even need in end)

    Stop qmail

    Autoinstaller to postfix

    Autoinstaller back to qmail

    Stop qmail

    Cd to /var/qmail/mess and run the below

    /var/qmail/queue/mess# chown -R qmailq:qmail *
    /var/qmail/queue/mess# kill -ALRM `ps ax | grep qmail-send | grep -v grep | awk '{print $1}'`

    Will probably put this server to postfix now just incase some other parts of qmail are still a bit unhappy but cant see any issues at the moment.
     
Loading...