Miguel

Members
  • Content Count

    2
  • Joined

  • Last visited

  1. Thank you for your help. The script not runs on a period basis, i can not put in crontab. I know that my script not is the correct solution but I can not change it in this moment, I would like remove the messages in auth.log, I don´t understand why my solution works in rasperry pi with raspbian but not in ARMBIAN 5.65 (OrangePi+ 2E).
  2. Hello I´m use ARMBIAN 5.65 in OrangePi+ 2E, I have admin user to execute one custom scritp, it uses sudo to run commnads as root, but prints this messages in /var/log/auth.log every few seconds. Dec 4 17:15:11 ORANGEZN3 sudo: root : TTY=unknown ; PWD=/home/admin ; USER=root ; COMMAND=/usr/sbin/i2cdetect -y 0 Dec 4 17:15:11 ORANGEZN3 sudo: pam_unix(sudo:session): session opened for user root by (uid=0) Dec 4 17:15:11 ORANGEZN3 sudo: pam_unix(sudo:session): session closed for user root I have same problem in my raspberry pi 3 and I can stopt this messages with de following code in /etc/pam.d/sudo file session [success=done default=ignore] pam_succeed_if.so quiet uid = 0 user = root ruser = admin session required pam_env.so readenv=1 user_readenv=0 session required pam_env.so readenv=1 envfile=/etc/default/locale user_readenv=0 But in ARMBIAN 5.65 not work. do you have any idea about this? Thank you in advance