Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Problem: /var/log/auth.log flooded
#11
(07-08-2020, 02:01 PM)radu- Wrote: Checked my logs on two RPis and have nothing alsa related in my /var/log/auth.log.

Question for @Nessor: what happens when you unplug your USB DAC? Do you still get those log lines?

Yes, they're there.
Reply
#12
For those interested by not having those lines:
Code:
sudo nano /etc/sudoers.d/010_moOde

Add those lines:
Code:
Defaults:root     !logfile, !syslog
Defaults:www-data     !logfile, !syslog

Apply permission:
Code:
sudo chmod 440 /etc/sudoers.d/010_moOde

Edit sudo pam files and add 1 line (session [success....):
Editing this file can break ur system if you do something wrong, so i prefer changed permissions before:

Code:
sudo chmod 666 /etc/pam.d/sudo
sudo nano /etc/pam.d/sudo


Code:
#%PAM-1.0

@include common-auth
@include common-account
session [success=1 default=ignore] pam_succeed_if.so quiet uid = 0 user = root
@include common-session-noninteractive

Run any sudo command, if no error:
Code:
sudo chmod 644 /etc/pam.d/sudo

If you have an error, then:
Code:
nano /etc/pam.d/sudo

No more spam.
Reply
#13
We should prolly include this in the OS build. I'll test it out.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#14
Yeah, the spam is not a problem for the system since logs are purged, but for the lifetime of the sdcard, it should be benefit

PS: I've update the procedure to delete the lines with mediainfo at each tracks change.
Reply


Forum Jump: