| Summary: | sys-process/fcron - fcrontab invokes pam_mount with insufficient privileges when pam_mount is enabled in /etc/pam.d/system-auth | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | James Dominy <jgdominy> |
| Component: | [OLD] Core system | Assignee: | Thomas Deutschmann (RETIRED) <whissi> |
| Status: | RESOLVED NEEDINFO | ||
| Severity: | normal | CC: | cron-bugs+disabled |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | AMD64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | emerge --info | ||
> [...] but a warning is issued about pam_mount being invoked with insufficient
> priviliges
Do you get this warning on every command (like "fcrondyn -u root -l") from a fcron instance running as root?
And please retry with latest sys-process/fcron-3.2.1.
Nope, just for fcron itself; see below.
root@server ~ # fcrondyn -x ls
ID |USER |SCHEDULE |CMD
2 |root |2017-08-20 12:50|test -x /usr/sbin/run-crons && /usr/sbin/run-crons
6 |root |2017-08-20 12:59|rm -f /var/spool/cron/lastrun/cron.hourly
5 |root |2017-08-21 03:09|rm -f /var/spool/cron/lastrun/cron.daily
4 |root |2017-08-26 04:19|rm -f /var/spool/cron/lastrun/cron.weekly
3 |root |2017-09-01 05:29|rm -f /var/spool/cron/lastrun/cron.monthly
connection closed by fcron
root@server ~ # crontab -l
2017-08-20 12:44:12 INFO listing root's fcrontab
# for fcron
# $Header: /var/cvsroot/gentoo-x86/sys-process/fcron/files/crontab,v 1.3 2013/03/03 16:28:06 wschlich Exp $
# fcron:
# This is NOT the system crontab! fcron does not support a system crontab.
# to get /etc/cron.{hourly|daily|weekly|montly} working with fcron run
# crontab /etc/crontab
# as root.
# NOTE: This will REPLACE root's current crontab!!
# Global variables
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly
59 * * * * rm -f /var/spool/cron/lastrun/cron.hourly
9 3 * * * rm -f /var/spool/cron/lastrun/cron.daily
19 4 * * 6 rm -f /var/spool/cron/lastrun/cron.weekly
29 5 1 * * rm -f /var/spool/cron/lastrun/cron.monthly
*/10 * * * * test -x /usr/sbin/run-crons && /usr/sbin/run-crons
@mail(false) 12h /sbin/fstrim
(pam_mount.c:538): *** PAM_MOUNT WAS INVOKED WITH INSUFFICIENT PRIVILEGES. (euid=101)
(pam_mount.c:539): *** THIS IS A BUG OF THE CALLER. CONSULT YOUR DISTRO.
(pam_mount.c:540): *** Also see bugs.txt in the pam_mount source tarball/website documentation.
also, I'm using 3.2.1-r2
|
Created attachment 362426 [details] emerge --info I am using pam_mount and LUKS for an encrypted home partition. Various invocations of frcontab as root (-e, -l) work, but a warning is issued about pam_mount being invoked with insufficient priviliges. root@server ~$ fcrontab -l 2013-11-02 16:54:09 INFO listing root's fcrontab # for fcron # $Header: /var/cvsroot/gentoo-x86/sys-process/fcron/files/crontab,v 1.3 2013/03/03 16:28:06 wschlich Exp $ # fcron: # This is NOT the system crontab! fcron does not support a system crontab. # to get /etc/cron.{hourly|daily|weekly|montly} working with fcron run # crontab /etc/crontab # as root. # NOTE: This will REPLACE root's current crontab!! # Global variables SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root HOME=/ # check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly 59 * * * * rm -f /var/spool/cron/lastrun/cron.hourly 9 3 * * * rm -f /var/spool/cron/lastrun/cron.daily 19 4 * * 6 rm -f /var/spool/cron/lastrun/cron.weekly 29 5 1 * * rm -f /var/spool/cron/lastrun/cron.monthly */10 * * * * test -x /usr/sbin/run-crons && /usr/sbin/run-crons (pam_mount.c:538): *** PAM_MOUNT WAS INVOKED WITH INSUFFICIENT PRIVILEGES. (euid=101) (pam_mount.c:539): *** THIS IS A BUG OF THE CALLER. CONSULT YOUR DISTRO. (pam_mount.c:540): *** Also see bugs.txt in the pam_mount source tarball/website documentation. Reproducible: Always