Bug 21039 - cyrus-imapd cron script using illegal nologin switch "c"
Summary: cyrus-imapd cron script using illegal nologin switch "c"
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: All Packagers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-07 15:49 CEST by Frank Griffin
Modified: 2020-01-18 05:21 CET (History)
0 users

See Also:
Source RPM: cyrus-imapd
CVE:
Status comment:


Attachments

Description Frank Griffin 2017-06-07 15:49:23 CEST
Showing up in cron output:

/etc/cron.daily/cyrus-imapd:
-nologin: invalid option -- 'c'

Usage:
 -nologin [options]

Politely refuse a login.

Options:
 -h, --help     display this help and exit
 -V, --version  output version information and exit

For more details see nologin(8).

#################################

Probably the script is out-of-date.
Comment 1 Rémi Verschelde 2017-06-07 15:56:32 CEST
Assigning to all packagers as cyrus-imapd has no registered maintainer.

Assignee: bugsquad => pkg-bugs

Comment 2 David Walser 2017-06-08 03:32:35 CEST
Comes from the fact that the cyrus user has /sbin/nologin set as its shell, but /etc/cron.daily/cyrus-imapd (aka SOURCES/cyrus-imapd.cron-daily) runs this:
su - cyrus -c "umask 077 ; /usr/lib/cyrus-imapd/ctl_mboxlist -d | gzip > ${mboxlist}.gz"

which is not a working combination.

Often needed to be done is su - apache -c "commands" so the way this is handled there is the apache user has /bin/sh as its shell (but ! as its password hash in /etc/shadow so the account still can't be directly logged in to).

This package doesn't use our standard macro for creating the cyrus user, so that needs to be fixed, but the shell should also be changed.  Unfortunately, this issue existed in Mageia 5 as well, so users upgrading will need to fix the cyrus user's shell manually (unless we want to risk a scriplet to fix it automatically).
Comment 3 Frank Griffin 2019-02-19 19:18:21 CET
Well, I don't use cyrus-imapd but I just installed it and it still uses nologin as its shell, so I imagine this hasn't been fixed.
Comment 4 Frank Griffin 2020-01-18 05:21:07 CET
Ping ?

Note You need to log in before you can comment on or make changes to this bug.