I'm just learning linux. Working as root, I created a new user called testuser. I then changed testuser to a nologin shell.
Now I want to login as the testuser to see what a user with a nologin shell can/can't do.
I tried: su testuser and got: This account is currently not available. I tried: su - testuser and got: su: warning: cannot change directory to /home/testuser: No such file or directory This account is currently not available.
How do I switch from root to a user with a nologin shell?