On Wednesday 16 January 2002 16:13 pm, Venkatakrishnan sudarsanam wrote:
> Hi all,
>
> I tried to create a new user account using the useradd along with the users
> password.  But when I try to login again using the created userid it shows
> as invalid.   the syntax i gave in the root was
>
> # useradd testid -p test
>
> is there anything wrong with this syntax.

>From man useradd:

       -p passwd
              The encrypted password,  as  returned  by  crypt(3).   The
              default is to disable the account.

You need to give the encrypted password on command line. Since
this is not always possible, make creating a user a two-step process -
one of useradd username and one of passwd username.

Sometimes reading documentation helps, you know.

Binand

_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to