Permission denied /var/lib/postfix/master.lock error
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 postfix0 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.
Re: Permission denied /var/lib/postfix/master.lock error
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 postfix0 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
Re: Permission denied /var/lib/postfix/master.lock error
Thanks for replying. How do I check that? > > Have you checked whether selinux/apparmor/similar could be blocking it? > > Regards, > > Nicolás
Re: Permission denied /var/lib/postfix/master.lock error
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 wrote: > Thanks for replying. > > How do I check that? > > >> >> Have you checked whether selinux/apparmor/similar could be blocking it? >> >> Regards, >> >> Nicolás
Re: Permission denied /var/lib/postfix/master.lock error
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
Re: Permission denied /var/lib/postfix/master.lock error
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 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
Re: Permission denied /var/lib/postfix/master.lock error
Fixed. by doing chmod 755 /var/lib Thanks. On Sat, Jan 26, 2013 at 2:50 PM, FigureoTV SFM 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 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
Re: Permission denied /var/lib/postfix/master.lock error
FigureoTV SFM: > Fixed. > > by doing chmod 755 /var/lib Congratulations. I didn't have to spell it out. Wietse