How to create User without useradd command

Discussion in 'Server Operation' started by remz, Apr 19, 2010.

  1. remz

    remz New Member

    Hi,

    Can any one tell me how would you create a user in linux without using the command useradd? Isn't by editing the entries of /etc/passwd and /etc/shadow? If so, how would you create an encrypted password user? Is it by using pwconv?

    :confused::confused::confused:
     
  2. topdog

    topdog Active Member

    add the user to /etc/passwd, /etc/shadow, /etc/groups, then you can set the password using
    Code:
    echo "password" | passwd username --stdin
     
  3. remz

    remz New Member

    Thank You topdog!! I tried the above and it worked!!:):)
     

Share This Page