First post here, yay =)
I have a SSH user that I want to keep for ssh and some other things.
My current solution is below. It might be a bad solution?!
My system is >
Operating System: CentOS Linux 8 (Core)
Kernel: Linux 4.18.0-193.19.1.el8_2.x86_64
My "solution" is to edit >
/etc/bashrc
and change
btpython /www/server/panel/class/ssh_security.py login
to
#btpython /www/server/panel/class/ssh_security.py login
FILE=/usr/bin/btpython
if [[ ! -f "$FILE" ]]; then
echo "$FILE is not accessible by users"
else
btpython /www/server/panel/class/ssh_security.py login
fi