This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# UBUNTU 20.04 LTS Allow access to USERNAME only from 18.30 to 21.00 every day | |
# Add to /etc/pam.d/common-auth | |
account required pam_time.so | |
# Add to /etc/security/time.conf | |
*;*;USERNAME;Al1830-2100 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
check_return_value() { | |
retval=$? | |
case $retval in | |
0|3) return ;; | |
*) clear | |
prompt -i "\n Operation canceled by user, Bye!" | |
exit 1 ;; | |
esac | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
docker image build --build-arg BROWSER=chromium --build-arg TZ='Europe/Rome' --build-arg GROUP_ID=65542 --build-arg USER_ID=1026 -t ubuntu:python-playwright -f Dockerfile . |