Mail accounts owned by root, not proper user

Lhadatt

Verified User
Joined
Jan 13, 2005
Messages
13
Code:
drwxrwx---   2 bahn  mail      512 Jan 31 01:02 .
drwxr-xr-x  15 mail  mail      512 Jan 26 19:43 ..
-rw-rw----   1 bahn  mail     3641 Jan 28 01:08 aaron
-rw-------   1 root  mail    44253 Jan 21 21:47 ali
-rw-rw----   1 bahn  mail     6485 Jan 28 07:36 andrew
-rw-rw----   1 bahn  mail     4659 Jan 28 11:47 andrew.c
-rw-------   1 root  mail   113447 Jan 21 21:54 chrisc
-rw-------   1 root  mail    71706 Jan 21 22:02 daveb
-rw-rw----   1 bahn  mail    36298 Jan 27 19:46 e3-2005
-rw-rw----   1 bahn  mail   280836 Jan 28 17:26 geoff
-rw-------   1 root  mail    86151 Jan 25 01:45 james
-rw-rw----   1 bahn  mail   224244 Jan 28 09:04 ken
-rw-rw----   1 bahn  mail      552 Jan 24 20:11 kevin
-rw-rw----   1 bahn  mail  1539295 Jan 28 14:07 press
-rw-------   1 root  mail  3730132 Jan 28 20:48 thomas
-rw-------   1 root  mail      552 Jan 23 20:15 tk

This is in /home/bahn/mail/domainname.com/. bahn, of course, is the username for the DA account. So, why are these accounts owned by root and not bahn? The permissions on the oddball mailboxes are wrong too. Everything under /home/bahn/imap looks cool.

This problem prevents people from receiving email. I solved it by doing chown bahn:mail * and chmod 660 *. After the fix, they get their email just fine.

OS: FreeBSD 5.1.2
DA version: 1.23.3
Everything is standard. Nothing's changed from a standard install.
 
Can you consistently reproduce the problem? If so, drop DA a line.

I just gave it a try and it's working properly for me on Debian 3.0/DA 1.234
 
Nope, that's the thing. It's not happened since that incident. I was hoping DA knew something about it and could give some input on what happened.
 
I did notice the same thing when I restored a backup (root ownership), but at the time I just chown'd it back to it's proper permissions and haven't had a problem with it since.

Did you restore any of these users through DirectAdmin by any chance? If so, perhaps the files that had the correct permissions were created after the restoration, which is why some are correct and some aren't. Just an idea...
 
Nope, it was a new server. I didn't restore from any backup like that. The only restoration I did was move emails from my mail client into the mail accounts over IMAP.
 
Back
Top