/Bin/false and/sbin/nologin 1 difference/bin/false is the strictest option to disable login, and all services are unavailable. /Sbin/nologin only does not allow the/sbin/nologin file of Raspberry Pi in the/usr/sbin/nologin system. tips: View/etc/passwd... /bin/false and/sbin/nologin 1 difference/bin/false is the strictest option to disable login, and all services are unavailable. /Sbin/nologin only does not allow/sbin/nologin files of Raspberry Pi in the/usr/sbin/nologin system. tips: View/etc/passwd files, you can see the shell 2.1 nologin used by each user when the user is configured as/sbin/nologin, if the user is used to ssh to the linux operating system, the system will prompt This account is currently not available. if the configuration is incorrect under Raspberry Pi, configure/usr/sbin/nologin to/sbin/nologin by mistake. root @ raspberrypi will be prompted during SSH: /home # useradd-s/sbin/nologin piaohailin root @ raspberrypi:/home # su piaohailin Cannot execute/sbin/nologin: no such file or directory 2.2 false when the user is configured to/bin/false, the following root @ raspberrypi:/home # useradd-s/bin/false piaohailin root @ raspberrypi is displayed after ssh: /home # su piaohailin root @ raspberrypi:/home # whoami root does not receive any prompts. the user cannot switch over.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.