How to Create a user without password in linux

I have explained in this article how to create the user account without password, It’s not a recommended method but i have explained here because i have faced this question, one interview.

use the below command’s to create the user account without password.

To create user account

# adduser mageshm

Use the below command to create user “mageshm” without password

# passwd -f -u mageshm
Unlocking password for user mageshm.
passwd: Success

-f, –force force operation
-u, –unlock unlock the password for the named account (root only)

Magesh Maruthamuthu

Love to play with all Linux distribution

You may also like...