× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

Backups no longer running -neither is cron - PAM/Permissions

scott_alan_klin
Aspirant

Backups no longer running -neither is cron - PAM/Permissions

Everything worked fine until August 15th. We didn't notice that the backups were not running until just recently. Here is the output I get when looking at the cron log:


Aug 16 04:31:01 nas2 CRON[5851]: PAM no modules loaded for `cron' service
Aug 16 04:31:01 nas2 CRON[5851]: Permission denied
Aug 16 05:01:02 nas2 CRON[5892]: PAM no modules loaded for `cron' service
Aug 16 05:01:02 nas2 CRON[5892]: Permission denied
Aug 16 06:25:01 nas2 CRON[6003]: PAM no modules loaded for `cron' service
Aug 16 06:25:01 nas2 CRON[6003]: Permission denied
Aug 16 06:47:01 nas2 CRON[6030]: PAM no modules loaded for `cron' service
Aug 16 06:47:01 nas2 CRON[6030]: Permission denied
Aug 17 04:31:01 nas2 CRON[7769]: PAM no modules loaded for `cron' service
Aug 17 04:31:01 nas2 CRON[7769]: Permission denied
Aug 17 05:01:01 nas2 CRON[7810]: PAM no modules loaded for `cron' service
Aug 17 05:01:01 nas2 CRON[7810]: Permission denied
Aug 17 06:25:01 nas2 CRON[7923]: PAM no modules loaded for `cron' service
Aug 17 06:25:01 nas2 CRON[7923]: Permission denied
Aug 18 04:31:01 nas2 CRON[10707]: PAM no modules loaded for `cron' service
Aug 18 04:31:01 nas2 CRON[10707]: Permission denied
Aug 18 05:01:01 nas2 CRON[10748]: PAM no modules loaded for `cron' service
Aug 18 05:01:01 nas2 CRON[10748]: Permission denied
Aug 18 06:25:01 nas2 CRON[10853]: PAM no modules loaded for `cron' service
Aug 18 06:25:01 nas2 CRON[10853]: Permission denied
Aug 19 04:31:01 nas2 CRON[20002]: PAM no modules loaded for `cron' service
Aug 19 04:31:01 nas2 CRON[20002]: Permission denied
Aug 19 05:01:01 nas2 CRON[20041]: PAM no modules loaded for `cron' service
Aug 19 05:01:01 nas2 CRON[20041]: Permission denied
Aug 19 06:25:01 nas2 CRON[20148]: PAM no modules loaded for `cron' service
Aug 19 06:25:01 nas2 CRON[20148]: Permission denied
Aug 20 04:31:01 nas2 CRON[22123]: PAM no modules loaded for `cron' service
Aug 20 04:31:01 nas2 CRON[22123]: Permission denied


I believe that day is when we performed an update via apt, the current file in /etc/pam.d/cron looks like this....

#
# The PAM configuration file for the cron daemon
#

@include common-auth
auth required pam_env.so
@include common-account
@include common-session
# Sets up user limits, please uncomment and read /etc/security/limits.conf
# to enable this functionality.
# session required pam_limits.so


I don't have a machine to cross-compile the development sparc environment to grab the original /etc/pam.d/conf file from, does anyone know what it is ? It is a ReadyNas 1100 Pro machine.

Thanks in advance,
SK
Message 1 of 8
scott_alan_klin
Aspirant

Re: Backups no longer running -neither is cron - PAM/Permissions

I fixed this. Just so anyone else looking for the answer knows how to do it, here is the new file contents of /etc/pam.d/cron :


#
# The PAM configuration file for the cron daemon
#

account sufficient pam_unix.so
#account required pam_ldap.so

auth sufficient pam_unix.so nullok
#auth required pam_ldap.so try_first_pass
auth required pam_env.so

session required pam_unix.so
#session required pam_limits.so



Hope this helps someone else!
SK
Message 2 of 8
bluppy2
Aspirant

Re: Backups no longer running -neither is cron - PAM/Permissions

scott.alan.kline wrote:
I fixed this. Just so anyone else looking for the answer knows how to do it, here is the new file contents of /etc/pam.d/cron :


#
# The PAM configuration file for the cron daemon
#

account sufficient pam_unix.so
#account required pam_ldap.so

auth sufficient pam_unix.so nullok
#auth required pam_ldap.so try_first_pass
auth required pam_env.so

session required pam_unix.so
#session required pam_limits.so



Hope this helps someone else!
SK


It did... Thanks a lot!
Message 3 of 8
scott_alan_klin
Aspirant

Re: Backups no longer running -neither is cron - PAM/Permissions

No problem.

SK
Message 4 of 8
sobwarthog
Aspirant

Re: Backups no longer running -neither is cron - PAM/Permissions

Thank you so much. I've been digging through numerous web pages regarding cron tasks not running. I finally managed to decipher what was going on in /var/log/cron.log and ended up here. Perfect fix. Thanks again
Message 5 of 8
evanzoss
Aspirant

Re: Backups no longer running -neither is cron - PAM/Permiss

Helped me too, thanks for the tip !
Message 6 of 8
chirpa
Luminary

Re: Backups no longer running -neither is cron - PAM/Permiss

apt update is not recommended, breaks stuff.
Message 7 of 8
fragglerock
Aspirant

Re: Backups no longer running -neither is cron - PAM/Permiss

Hi

This is an old thread but thought I would take the chance. I have just posted http://www.readynas.com/forum/viewtopic.php?f=7&t=59559 and was querying whether you think the solution outlined here will help?

Thanks
Message 8 of 8
Top Contributors
Discussion stats
  • 7 replies
  • 1229 views
  • 0 kudos
  • 6 in conversation
Announcements