Loading ...
Sorry, an error occurred while loading the content.

Permission denied /var/lib/postfix/master.lock error

Expand Messages
  • FigureoTV SFM
    Hello. This is my first post. I recently migrated to a different server at a different location and now I m experiencing a weird problem: postfix/master[1281]:
    Message 1 of 8 , Jan 26, 2013
    • 0 Attachment
      Hello.

      This is my first post.

      I recently migrated to a different server at a different location and
      now I'm experiencing a weird problem:

      postfix/master[1281]: fatal: open lock file
      /var/lib/postfix/master.lock: cannot open file: Permission denied

      I've googled around and can't get it to work. I've checked permission
      on /var/lib/ and things look good there:

      Code:

      hawk084:/var/lib/postfix# l
      total 20K
      -rw------- 1 postfix postfix 0 Jan 25 19:06 master.lock
      -rw------- 1 postfix postfix 1.0K Jan 6 02:48 prng_exch
      -rw------- 1 postfix postfix 8.0K Jan 6 00:43 smtpd_scache.db
      -rw------- 1 postfix postfix 8.0K Jan 6 00:43 smtp_scache.db

      hawk084:/var/lib/postfix# /etc/init.d/postfix status
      postfix is not running.

      I uninstalled postfix and re-installed it but, nothing fixes this damn problem.

      I have exactly the same configurations as from the older server which
      is also running on debian squeeze.

      Any suggestions?
      Thanks in advanced for your time.
    • Nicolás
      ... Have you checked whether selinux/apparmor/similar could be blocking it? Regards, Nicolás
      Message 2 of 8 , Jan 26, 2013
      • 0 Attachment
        El 26/01/2013 15:11, FigureoTV SFM escribió:
        > Hello.
        >
        > This is my first post.
        >
        > I recently migrated to a different server at a different location and
        > now I'm experiencing a weird problem:
        >
        > postfix/master[1281]: fatal: open lock file
        > /var/lib/postfix/master.lock: cannot open file: Permission denied
        >
        > I've googled around and can't get it to work. I've checked permission
        > on /var/lib/ and things look good there:
        >
        > Code:
        >
        > hawk084:/var/lib/postfix# l
        > total 20K
        > -rw------- 1 postfix postfix 0 Jan 25 19:06 master.lock
        > -rw------- 1 postfix postfix 1.0K Jan 6 02:48 prng_exch
        > -rw------- 1 postfix postfix 8.0K Jan 6 00:43 smtpd_scache.db
        > -rw------- 1 postfix postfix 8.0K Jan 6 00:43 smtp_scache.db
        >
        > hawk084:/var/lib/postfix# /etc/init.d/postfix status
        > postfix is not running.
        >
        > I uninstalled postfix and re-installed it but, nothing fixes this damn problem.
        >
        > I have exactly the same configurations as from the older server which
        > is also running on debian squeeze.
        >
        > Any suggestions?
        > Thanks in advanced for your time.

        Have you checked whether selinux/apparmor/similar could be blocking it?

        Regards,

        Nicolás
      • FigureoTV SFM
        Thanks for replying. How do I check that?
        Message 3 of 8 , Jan 26, 2013
        • 0 Attachment
          Thanks for replying.

          How do I check that?


          >
          > Have you checked whether selinux/apparmor/similar could be blocking it?
          >
          > Regards,
          >
          > Nicolás
        • FigureoTV SFM
          I don t think I have selinux or apparmor enabled on my debian server. On Sat, Jan 26, 2013 at 12:22 PM, FigureoTV SFM
          Message 4 of 8 , Jan 26, 2013
          • 0 Attachment
            I don't think I have selinux or apparmor enabled on my debian server.



            On Sat, Jan 26, 2013 at 12:22 PM, FigureoTV SFM
            <optimumwireless@...> wrote:
            > Thanks for replying.
            >
            > How do I check that?
            >
            >
            >>
            >> Have you checked whether selinux/apparmor/similar could be blocking it?
            >>
            >> Regards,
            >>
            >> Nicolás
          • Wietse Venema
            ... Check the permissions of / /var /var/lib /var/lib/postfix /var/lib/postfix/master.lock Wietse
            Message 5 of 8 , Jan 26, 2013
            • 0 Attachment
              FigureoTV SFM:
              > postfix/master[1281]: fatal: open lock file
              > /var/lib/postfix/master.lock: cannot open file: Permission denied

              Check the permissions of

              / /var /var/lib /var/lib/postfix /var/lib/postfix/master.lock

              Wietse
            • FigureoTV SFM
              Here are the permissions: hawk084:/var/lib/postfix# l -ld / drwxr-xr-x 22 root root 4.0K Jan 6 02:10 / hawk084:/var# l -ld /var/lib drwx------ 32 root root
              Message 6 of 8 , Jan 26, 2013
              • 0 Attachment
                Here are the permissions:

                hawk084:/var/lib/postfix# l -ld /
                drwxr-xr-x 22 root root 4.0K Jan 6 02:10 /

                hawk084:/var# l -ld /var/lib
                drwx------ 32 root root 20K Jan 26 16:36 /var/lib

                hawk084:/var# l -ld /var/lib/postfix
                drwxr-xr-x 2 postfix postfix 4.0K Jan 26 17:27 /var/lib/postfix

                hawk084:/var/lib/postfix# l -ld /var/lib/postfix/master.lock
                -rw-r--r-- 1 postfix postfix 0 Jan 26 18:49 /var/lib/postfix/master.lock




                On Sat, Jan 26, 2013 at 2:02 PM, Wietse Venema <wietse@...> wrote:
                > FigureoTV SFM:
                >> postfix/master[1281]: fatal: open lock file
                >> /var/lib/postfix/master.lock: cannot open file: Permission denied
                >
                > Check the permissions of
                >
                > / /var /var/lib /var/lib/postfix /var/lib/postfix/master.lock
                >
                > Wietse
              • FigureoTV SFM
                Fixed. by doing chmod 755 /var/lib Thanks. On Sat, Jan 26, 2013 at 2:50 PM, FigureoTV SFM
                Message 7 of 8 , Jan 26, 2013
                • 0 Attachment
                  Fixed.

                  by doing chmod 755 /var/lib

                  Thanks.

                  On Sat, Jan 26, 2013 at 2:50 PM, FigureoTV SFM
                  <optimumwireless@...> wrote:
                  > Here are the permissions:
                  >
                  > hawk084:/var/lib/postfix# l -ld /
                  > drwxr-xr-x 22 root root 4.0K Jan 6 02:10 /
                  >
                  > hawk084:/var# l -ld /var/lib
                  > drwx------ 32 root root 20K Jan 26 16:36 /var/lib
                  >
                  > hawk084:/var# l -ld /var/lib/postfix
                  > drwxr-xr-x 2 postfix postfix 4.0K Jan 26 17:27 /var/lib/postfix
                  >
                  > hawk084:/var/lib/postfix# l -ld /var/lib/postfix/master.lock
                  > -rw-r--r-- 1 postfix postfix 0 Jan 26 18:49 /var/lib/postfix/master.lock
                  >
                  >
                  >
                  >
                  > On Sat, Jan 26, 2013 at 2:02 PM, Wietse Venema <wietse@...> wrote:
                  >> FigureoTV SFM:
                  >>> postfix/master[1281]: fatal: open lock file
                  >>> /var/lib/postfix/master.lock: cannot open file: Permission denied
                  >>
                  >> Check the permissions of
                  >>
                  >> / /var /var/lib /var/lib/postfix /var/lib/postfix/master.lock
                  >>
                  >> Wietse
                • Wietse Venema
                  ... Congratulations. I didn t have to spell it out. Wietse
                  Message 8 of 8 , Jan 26, 2013
                  • 0 Attachment
                    FigureoTV SFM:
                    > Fixed.
                    >
                    > by doing chmod 755 /var/lib

                    Congratulations. I didn't have to spell it out.

                    Wietse
                  Your message has been successfully submitted and would be delivered to recipients shortly.