Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 

Bash login check

Danny
Champion Champion
Champion

🛒 More SmartTasks
👍 Tested to be working with R81.20+

SmartTask to verify SSH login to the security management is not set to: /bin/bash

Script code

Copy the code below into a new script of your SmartConsole script repository.
test `grep passwd:admin:shell /config/db/initial|grep bash|wc -l` -ne 0 && echo '{"result":"failure","message":"SSH login to '$(hostname)' must not be set to: /bin/bash"}' || echo '{"result":"success"}'

SmartTask

Create a new S
...;
TO ACCESS CHECKMATES TOOLBOX it's simple and free

Disclaimer: Check Point does not provide maintenance services or technical or customer support for third party content provided on this Site, including in CheckMates Toolbox. See also our Third Party Software Disclaimer.




0 Replies