Bug 135693

Summary: cyrus-imapd package installed with root - must be cyrus
Product: [Fedora] Fedora Reporter: Alexandre Cavalcante Alencar <alexandre>
Component: cyrus-imapdAssignee: John Dennis <jdennis>
Status: CLOSED RAWHIDE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 2CC: mharris, wtogami
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-10-21 17:15:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Alexandre Cavalcante Alencar 2004-10-14 14:49:04 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3)
Gecko/20040922

Description of problem:
The cyrus-imapd package are installed with root as owner of
/var/lib/imap and /var/spool/imap directories because cyrus user are
created after files and directories creation. This cause problems
because cyrus-imapd process run as cyrus user that don't have write
permissions on above directories and it's files.

The installation script must create cyrus user before coping files.

Version-Release number of selected component (if applicable):
cyrus-imapd-2.2.3-11

How reproducible:
Always

Steps to Reproduce:
1. Install cyrus-imapd package (yum install cyrus-imapd) and you will
see the warnings telling you that cyrus user doesn't exist and root
will be used.
2. Try to start cyrus-imapd daemon, this will give you some erros on
/var/log/messages and /var/log/maillog.
3. Log in the cyradm administration interface as cyrus user and try to
create a mailbox, you will get a permission denied message.

Actual Results:  The package are installed with root as owner of
/var/lib/imap and /var/spool/imap directories and it's files, then
create cyrus user account. That bring problems to system.

Expected Results:  The package create first of all, the cyrus user
account, then install the files, that will be owned by cyrus user, as
expected by cyrus daemons.

Additional info:

More information can be obtained in the logs after installing and
running cyrus-imapd daemon

Comment 1 Warren Togami 2004-10-21 02:21:02 UTC
Is this still an issue in FC3?  It seems that cyrus-imapd doesn't work
after installation using default config, but I didn't try very hard.

Comment 2 Mike A. Harris 2004-10-21 02:46:29 UTC
Seems like a critical issue that should be a FC3Blocker if the
bug still exists.  Could be something as simple as missing
%attr() flags in the cyrus %files section of the spec file.

Comment 3 John Dennis 2004-10-21 17:15:45 UTC
I don't believe this is currently an issue any longer. I've been
running a test installation of cyrus-imapd on FC3t2 with no problems
and directory permissions are correct. I also checked the spec file,
the cyrus user is created in %pre before files are actually installed.

However note there was a bug in the FC2 timeframe with a delay between
the invocation of useradd and the user being visible in the system due
to a bug in NSCD (bug #125421). This caused a number of rpm
installation problems that depended on creation of a user (I became
familar with this because I own mailman and it was getting hit by the
same thing).

Summary: I think this is already fixed (root cause is known, no
evidence in FC3) and its not a cyrus-imapd bug.