Raspberry Pi Note
CtrlK
  • Raspberry Pi Note
  • Raspberry Pi Note
    • Summary
    • article
      • Regular Command
      • RPi3 Disable Bluetooth Or WiFi By Default
      • RPi3 Turn off HDMI
      • Set BBR Congestion Control
      • RPi3 Switch Off IPV6
      • RPi3 Auto reconnect to wifi when lost connect
      • Internet Speedtest
      • RPi3 Auto Email New Public IP If Changed (Shell)
      • RPi3 Auto Email New Public IP If Changed (Python3)
      • Add IMG To Berryboot
      • RPi3 Change Berryboot Default System By SSH
      • Crontab - Quick Reference
      • Disable Cron Pam_Unix Session
      • Auto login PTT with Expect
      • RPi3 Set LC
      • Enabling & Increasing Raspberry Pi Swap
      • Run HentaiAtHome On Portable External Hard Drive
Powered by GitBook
On this page
  1. Raspberry Pi Note
  2. article

Disable Cron Pam_Unix Session

Step

  1. Use sudo vim /etc/pam.d/common-session-noninteractive to edit the settings

  2. Find this line

    session required pam_unix.so
  3. Then add the following script on top of this line

    session [success=1 default=ignore] pam_succeed_if.so service in cron quiet use_uid
  4. Restart cron service

    sudo service cron restart
  5. Finish

PreviousCrontab - Quick ReferenceNextAuto login PTT with Expect

Last updated 2 years ago