Freese Notis
2008-Feb-01 21:07 UTC
[Dovecot] auth default : passwd-file Can't open file: Permission denied
Hello, I'm attempting to migrate from an existing dovecot .99 install to dovecot 1.0.rc15 on a fresh up to date CentOs 5.1. I'm not sure what's causing this permissions error on startup - I've tried 777,644, and 600 chmods but it's always this same error: Feb 1 12:43:05 ns2 dovecot: Dovecot v1.0.rc15 starting up Feb 1 12:43:06 ns2 dovecot: Auth process died too early - shutting down Feb 1 12:43:06 ns2 dovecot: auth(default): passwd-file /var/spool/virtual/passwd: Can't open file: Permission denied Feb 1 12:43:06 ns2 dovecot: child 16411 (auth) returned error 89 Feb 1 12:43:06 ns2 dovecot: Temporary failure in creating login processes, slowing down for now Here's some more information from the shell: # dovecot -n # /etc/dovecot.conf login_dir: /var/run/dovecot/login login_executable(default): /usr/libexec/dovecot/imap-login login_executable(imap): /usr/libexec/dovecot/imap-login login_executable(pop3): /usr/libexec/dovecot/pop3-login login_user: vmail mail_location: maildir:/var/spool/virtual/%d/%n mail_executable(default): /usr/libexec/dovecot/imap mail_executable(imap): /usr/libexec/dovecot/imap mail_executable(pop3): /usr/libexec/dovecot/pop3 mail_plugin_dir(default): /usr/lib/dovecot/imap mail_plugin_dir(imap): /usr/lib/dovecot/imap mail_plugin_dir(pop3): /usr/lib/dovecot/pop3 auth default: mechanisms: plain login verbose: yes debug: yes passdb: driver: passwd-file args: /var/spool/virtual/passwd userdb: driver: static args: uid=vmail gid=vmail home=/var/spool/virtual/%d/%n # ls -l /var/spool/virtual/passwd -rw------- 1 vmail vmail 37639 Jan 31 14:27 /var/spool/virtual/passwd #and the ls -l of /var/spool and /virtual: drwxr-xr-x 23 root root 4096 Jan 31 17:26 var drwxr-xr-x 16 root root 4096 Jan 31 18:56 spool drwxrwxr-x 109 vmail vmail 4096 Feb 1 00:33 virtual the format of the file is similar to this: fake at example.com:{PLAIN}pass adam at example.com:{PLAIN}text I tried searching first but couldn't find anything other than similar config examples that seemed to confirm my config was setup right. Any suggestions? -- Adam
Charles Marcus
2008-Feb-01 22:21 UTC
[Dovecot] auth default : passwd-file Can't open file: Permission denied
On 2/1/2008, Freese Notis (freesenotis at gmail.com) wrote:> I'm attempting to migrate from an existing dovecot .99 install to > dovecot 1.0.rc15 on a fresh up to date CentOs 5.1. I'm not sure > what's causing this permissions error on startup - I've tried > 777,644, and 600 chmods but it's always this same error:You really should go ahead and update to a release version... check the atrpm repository... Make sure you follow the upgrade instructions here: http://tinyurl.com/23pvb3 -- Best regards, Charles
Timo Sirainen
2008-Feb-02 09:40 UTC
[Dovecot] auth default : passwd-file Can't open file: Permission denied
On Fri, 2008-02-01 at 15:07 -0600, Freese Notis wrote:> I'm attempting to migrate from an existing dovecot .99 install to dovecot > 1.0.rc15 on a fresh up to date CentOs 5.1. I'm not sure what's causing this > permissions error on startup - I've tried 777,644, and 600 chmods but it's > always this same error: > > Feb 1 12:43:06 ns2 dovecot: auth(default): passwd-file > /var/spool/virtual/passwd: Can't open file: Permission denied..> I tried searching first but couldn't find anything other than similar config > examples that seemed to confirm my config was setup right. Any suggestions?SELinux prevents accessing it. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20080202/3b5d1caf/attachment-0002.bin>
Freese Notis
2008-Feb-02 18:36 UTC
[Dovecot] auth default : passwd-file Can't open file: Permission denied
Thanks Timo For testing I tried: #echo 0 >/selinux/enforce and I got Feb 2 05:00:31 ns2 dovecot: Dovecot v1.0.rc15 starting up Feb 2 05:00:32 ns2 dovecot: auth(default): passwd-file /var/spool/virtual/passwd: Read 971 users so it worked. The problem is identified but does anyone know how to permit dovecot to work with selinux turned on? On Feb 2, 2008 3:40 AM, Timo Sirainen <tss at iki.fi> wrote:> On Fri, 2008-02-01 at 15:07 -0600, Freese Notis wrote: > > > I'm attempting to migrate from an existing dovecot .99 install to > dovecot > > 1.0.rc15 on a fresh up to date CentOs 5.1. I'm not sure what's causing > this > > permissions error on startup - I've tried 777,644, and 600 chmods but > it's > > always this same error: > > > > Feb 1 12:43:06 ns2 dovecot: auth(default): passwd-file > > /var/spool/virtual/passwd: Can't open file: Permission denied > .. > > I tried searching first but couldn't find anything other than similar > config > > examples that seemed to confirm my config was setup right. Any > suggestions? > > SELinux prevents accessing it. > >-- Adam Send all work related requests to work at networkiowa.com or admin at weather.net This is only a external mail test account, do not send me requests here.