LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-02-2012, 10:39 AM   #1
tonj
Member
 
Registered: Sep 2008
Posts: 430

Rep: Reputation: 24
newbie: dovecot 2.0 error


dovecot-2.0.9-2.el6_1.1.i686
on centos 6.2 server install
trying to set up dovecot but I get the following error in my maillog:
dovecot: pop3(username): Error: user username: Initialization failed: Initializing mail storage from mail_location setting failed: mkdir(/home/username/mail) failed: Permission denied (euid=500(username) egid=500(username) missing +w perm: /home/username, euid is not dir owner)
I can see the location /home/username needs write permissions but nothing works in resolving this error. The username in question can receive mail no problem but picking it up with dovecot is where I'm stuck. I don't know what euid and guid means. Can anyone tell me what command I need to run to give this folder the correct permissions? And who should be the group owner of this folder? I've been on this for days and google only has stuff on obsolete dovecot versions. Thanks for any help.
 
Old 04-02-2012, 02:39 PM   #2
tonj
Member
 
Registered: Sep 2008
Posts: 430

Original Poster
Rep: Reputation: 24
typical...I work on something all week and then an hour after posting here for help I manage to solve it. I did it by creating the directory tree myself ie:
/home/username/mail/.imap/INBOX
this is the directory tree dovecot wanted.
 
Old 04-03-2012, 10:28 AM   #3
griswald
LQ Newbie
 
Registered: Aug 2007
Posts: 11

Rep: Reputation: 0
You may still have an underlying issue: the user may not own and cannot write to their own directory: "500" means the owner has read (4) + execute (1) permissions, but no write.
Check by typing:
ls -ld /home/username

To fix, type (as root):
chmod u+w /home/username

If the owner is not "username":
chown username /home/username

FYI euid is the effective uid (user number) and egid the effective gid (group number).
 
Old 04-05-2012, 11:59 AM   #4
tonj
Member
 
Registered: Sep 2008
Posts: 430

Original Poster
Rep: Reputation: 24
thanks for your response griswald, you were right and I did still have an underlying issue: I found the source of the whole problem, which was selinux. I changed /etc/selinux/config from 'enforcing' to 'permissive' and now the whole thing works perfectly.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[NEWBIE] Question regarding postfix / dovecot regarding usernames MarkoSan Linux - Server 1 11-02-2011 08:15 AM
Dovecot conf error Sovetryne Linux - Server 4 07-24-2009 05:25 PM
Error installing dovecot pink_life Linux - Software 1 09-15-2008 01:35 AM
dovecot error cope Linux - Server 1 04-21-2007 02:51 AM
dovecot authentication error snurckle Linux - Newbie 4 08-13-2004 05:32 PM


All times are GMT -5. The time now is 04:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration