Hi,

I was recently trying to get fcron installed but I got stuck after installing the blfs-bootscript for fcron. Here's what happened:

# /etc/rc.d/init.d/fcron start &&
             fcrontab -z -u systab
  *   Starting fcron...                                                [  OK  ]
2020-05-17 21:32:27 ERROR Could not authenticate user using PAM (7): 
Authentication failure

After doing some research, I stumbled across this post:

https://www.linuxquestions.org/questions/linux-security-4/cronjob-could-not-authenticate-pam-user-authentication-failure-for-root-696038/

who encountered a similar issue and I also found that the package installed the pam configuration for fcron to /etc/pam.conf (which did not exist before). I have read in the configuration section of fcron stating that

"If Linux-PAM is installed, two PAM configuration files are installed in |etc/pam.d|. Alternatively if |etc/pam.d| is not used, the installation will append two configuration sections to the existing |/etc/pam.conf| file. You should ensure the files match your preferences. Modify them as required to suit your needs."

However, I do have the /etc/pam.d directory so I'm not sure why it installed /etc/pam.conf -- perhaps I missed something but I did check the errata and there was no entry for it. Looking at what Arch Linux did, I've added a few lines to my install script

|mkdir -pv $PKG/etc/pam.d install -Dm644 files/fcron.pam $PKG/etc/pam.d/fcron install -Dm644 files/fcrontab.pam $PKG/etc/pam.d/fcrontab rm -rvf $PKG/etc/pam.conf |

where PKG is the installation directory (I used a DESTDIR install).

Finally, I reran

# /etc/rc.d/init.d/fcron start && fcrontab -z -u systab
  *   Starting fcron...                                                [  OK  ]
2020-05-17 21:45:04  INFO reinstalling systab's fcrontab
2020-05-17 21:45:04  INFO installing file /tmp/fcr-CI0N4s for user systab
Modifications will be taken into account right now.

so, I'm guessing that the problem was fixed as PAM seems happy now.

Was there a line that I've overlooked in the BLFS book?

--
Bud Rozwood

-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to