Hi, Stephan Beck wrote: > How can you access this new account to generate an ssh key pair there?
There seems to be a bug with adduser --disabled-password . With empty password input i get: $ su test_user Password: su: Authentication failure Only this succeeds: $ su Password: # su test_user $ whoami test_user adduser gave the user this line in /etc/passwd: test_user:x:<number>:<number>:Test User,,,:/home/test_user:/bin/bash and in /etc/shadow test_user:*:17066:0:99999:7::: Above will not work with users who have /usr/sbin/nologin as shell "NOLOGIN(8) System Management Commands NOLOGIN(8) NAME nologin - politely refuse a login " which is used to nail up the user's lines in /etc/passwd like: backup:x:34:34:backup:/var/backups:/usr/sbin/nologin resulting in # su backup This account is currently not available. One has to work around by explicitely giving the shell to use # su backup -s /bin/bash $ whoami backup Greg Wooledge wrote: > sudo -u test bash Does not work for me (at least not out of the box): $ sudo -u test_user bash [sudo] password for thomas: Sorry, user thomas is not allowed to execute '/bin/bash' as test_user on [...] $ Have a nice day :) Thomas