hanshenrik Asked: 2019-10-20 12:24:47 +0800 CST2019-10-20 12:24:47 +0800 CST 2019-10-20 12:24:47 +0800 CST How to create a disabled account? 772 How do I create a disabled account? for example when trying to login as nobody, root@miniubuntu1804:/home/hans/projects/evaler/src# su nobody This account is currently not available. how do I create an account like that? users accounts 1 Answers Voted hanshenrik 2019-10-20T12:24:47+08:002019-10-20T12:24:47+08:00 adduser --shell=/usr/sbin/nologin disabledUser can also use --shell=/bin/false (what's the difference between them? don't know exactly, but you can probably get an answer to that question at https://unix.stackexchange.com/questions/10852/whats-the-difference-between-sbin-nologin-and-bin-false )
can also use
--shell=/bin/false
(what's the difference between them? don't know exactly, but you can probably get an answer to that question at https://unix.stackexchange.com/questions/10852/whats-the-difference-between-sbin-nologin-and-bin-false )