Linux: Add a user with a disabled password


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


Advertisment to support

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.