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

Advertisment to support michlstechblog.info

Leave a Reply

Your email address will not be published.

Time limit is exhausted. Please reload CAPTCHA.