Re: [gentoo-user] fail2ban can't find sqlite?
вс, 7 февр. 2021 г. в 04:47, Dan Egli : Hi Dan, > 2021-02-06 18:30:28,128 fail2ban.server [32124]: ERROR Unable to > import fail2ban database module as sqlite is not available. Some debugging from https://github.com/fail2ban/fail2ban/issues/2608#issuecomment-576450793 : fail2ban-python --version fail2ban-python -c 'import sqlite3; print("ok")' fail2ban-python -c 'from fail2ban.server.database import Fail2BanDb; print("ok")' -- Best regards, Alex
Re: [gentoo-user] fail2ban can't find sqlite?
On Sat, 2021-02-06 at 18:46 -0700, Dan Egli wrote: > > At first I thought it was complaining about it's own missing module. But > there's no use flag for sqlite in fail2ban. So then I looked at python > itself. Sure enough, the sqlite use flag was disabled. So I turned it > on and re-emerged python. I also fixed a couple flags on sqlite itself > and re-emerged it. STILL I get this error. How do I fix this? > Just a guess: did you rebuild EVERY version of python, or just one? It could be that fail2ban is running under a version that you didn't re- emerge.
[gentoo-user] fail2ban can't find sqlite?
I am trying to figure this one out. I need some help as apparently my google-fu isn't strong today. I installed faii2ban so I could use it to monitor the logs and adjust the firewall as necessary. It installed okay, and seems to run okay EXCEPT for this one error I get each time I start fail2ban-server: 2021-02-06 18:30:28,128 fail2ban.server [32124]: ERROR Unable to import fail2ban database module as sqlite is not available. At first I thought it was complaining about it's own missing module. But there's no use flag for sqlite in fail2ban. So then I looked at python itself. Sure enough, the sqlite use flag was disabled. So I turned it on and re-emerged python. I also fixed a couple flags on sqlite itself and re-emerged it. STILL I get this error. How do I fix this?
Re: [gentoo-user] HOWTO: Freezing/unfreezing (groups of) processes
On Saturday, February 6, 2021 6:07:39 A.M. AEDT Walter Dnes wrote: > On Fri, Feb 05, 2021 at 06:55:12AM -0500, Rich Freeman wrote > > > On Fri, Feb 5, 2021 at 2:45 AM Walter Dnes wrote: > > > So far, so good, but running "ps -ef | grep whatever" and then > > > > > > typing the kill -SIGSTOP/SIGCONT command on the correct pid is grunt > > > work, subject to typos. > > > > man killall > > My reading of the "killall" man page is that it works on command > names. For my script, "pstop palemoon" stops all instances of Pale > Moon. But my script greps the entire line, so "pstop slashdot" will > stop the process... > > /home/waltdnes/pm/palemoon/palemoon -new-instance -p slasdot > > Does "killall" have that ability to stop a process based on any > parameters in the command line? Someone else mentioned pgrep. It has an associated pkill command as well. Both appear to have a "-f" option to also search on the full command line. -- Reverend Paul Colquhoun, ULC. http://andor.dropbear.id.au/ Asking for technical help in newsgroups? Read this first: http://catb.org/~esr/faqs/smart-questions.html#intro
[gentoo-user] forcing Gentoo to accept simple password
What changing one need to make to force gentoo log-in to accept simple password. The system is not a high security risk so I have no need for a sophisticated password. I think it has to do something with file: /etc/pam.d/system-auth Here is an old one: authrequiredpam_env.so authrequiredpam_unix.so try_first_pass likeauth nullok authoptionalpam_permit.so account requiredpam_unix.so account optionalpam_permit.so passwordrequiredpam_cracklib.so difok=2 minlen=8 dcredit=2 ocredit=2 retry=3 passwordrequiredpam_unix.so try_first_pass use_authtok nullok sha512 shadow passwordoptionalpam_permit.so session requiredpam_limits.so session requiredpam_env.so session requiredpam_unix.so session optionalpam_permit.so and a new one: authrequiredpam_env.so authrequisite pam_faillock.so preauth auth[success=1 default=ignore] pam_unix.so nullok try_first_pass auth[default=die] pam_faillock.so authfail authoptionalpam_permit.so account requiredpam_unix.so account requiredpam_faillock.so account optionalpam_permit.so passwordrequiredpam_passwdqc.so config=/etc/security/passwdqc.conf passwordrequiredpam_unix.so try_first_pass use_authtok nullok sha512 shadow passwordoptionalpam_permit.so session requiredpam_limits.so session requiredpam_env.so session requiredpam_unix.so session optionalpam_permit.so
Re: [gentoo-user] mounting USB without root password
On 2/6/21 2:34 PM, Neil Bothwick wrote: > On Sat, 6 Feb 2021 14:00:54 -0700, the...@sys-concept.com wrote: > >> I'll revive this topic. I have it working on one of my system but on my >> other (new system as well) auto-mounting in XFCE4 is not working, I >> have in n XFCE under: >> - Removable Drivers and Media: --> Mount removable drives when >> hot-plugged (checked) >> >> user is in "wheel, usb" group. >> >> When I plug the usb device the XFCE is trying to auto-mount the usb as >> the message is popping up but it keeps telling me: Authentication is >> required for mounting external /dev/sda1 >> >> Why it worked on one system but not on another? > > Check the groups of the user on both systems. Automounters often require > the user to be a member of the plugdev group. It is working now. I login (crated XFCE) session via x2go and I think one need to first log-in as user, and make any changes in XFCE interface; and now loging via x2to session will work using XFCE auto-mounting.
Re: [gentoo-user] mounting USB without root password
On Sat, 6 Feb 2021 14:00:54 -0700, the...@sys-concept.com wrote: > I'll revive this topic. I have it working on one of my system but on my > other (new system as well) auto-mounting in XFCE4 is not working, I > have in n XFCE under: > - Removable Drivers and Media: --> Mount removable drives when > hot-plugged (checked) > > user is in "wheel, usb" group. > > When I plug the usb device the XFCE is trying to auto-mount the usb as > the message is popping up but it keeps telling me: Authentication is > required for mounting external /dev/sda1 > > Why it worked on one system but not on another? Check the groups of the user on both systems. Automounters often require the user to be a member of the plugdev group. -- Neil Bothwick There's too much blood in my caffeine system. pgpYvMDkw5Lao.pgp Description: OpenPGP digital signature
Re: [gentoo-user] mounting USB without root password
On 1/29/21 10:40 AM, the...@sys-concept.com wrote: > On 1/29/21 10:12 AM, Matt Connell (Gmail) wrote: >> On Fri, 2021-01-29 at 17:06 +, Michael wrote: >>> what XFCE offers for mounting removable block devices and if >>> something is amiss with that. >> >> Thelma, >> >> I use XFCE as well. I think (its been years since I set it up) what >> you want is xfce-extra/thunar-volman to provide a "GUI file manager" >> type of click-to-mount-a-device interface. > > Thank you for correcting me. I reverse the setting in sudoers. > > I had the sys-fs/udisks and xfce-extra/thunar-volman installed so I enable in > XFCE under: > - Removable Drivers and Media: --> Mount removable drives when hot-plugged. > > It solved the problem. I'll revive this topic. I have it working on one of my system but on my other (new system as well) auto-mounting in XFCE4 is not working, I have in n XFCE under: - Removable Drivers and Media: --> Mount removable drives when hot-plugged (checked) user is in "wheel, usb" group. When I plug the usb device the XFCE is trying to auto-mount the usb as the message is popping up but it keeps telling me: Authentication is required for mounting external /dev/sda1 Why it worked on one system but not on another? What is missing?