Linux: Add a user with a disabled password

Hi,

these commands adds a user with a disabled password:

root@debdev ~ # useradd myuser --home-dir /home/myuser
root@debdev ~ # usermod -a -G myuser myuser 
root@debdev ~ # passwd -d myuser 
root@debdev ~ # mkdir /home/myuser
root@debdev ~ # chown -R myuser:myuser /home/myuser

Michael

Leave a Reply