Skip to contentSkip to conversation

default password

DISCUSSION kaushal 5 participants 5 messages Oct 5, 2004

lore
Share & tools
lore

kaushal

author
#0 lore raw

Hello all,
When we do adduser or useradd at the shell,what is the default
password assigned for that new user?

Thanks
regards-
kaushal

#1 lore raw

Hi Kaushal

I don't know if there is (or which is) a default password assigned for a new user created usind useradd, but after the definition of a new user (for example "patata") you can change his password using the passwd command in this way (being root!):

[root@obelix /usr/local/users]# passwd patata Changing password for user patata.
New password: <PUT PASSWORD HERE>
Retype new password: <CONFIRM PASSWORD HERE>
passwd: all authentication tokens updated successfully. [root@obelix /usr/local/users]#

Hope this can help you.

Pedro

05/10/2004 10:24
kaushal <[email protected]>@vger.kernel.org

Enviado por: [email protected]

Destinatarios: admin <[email protected]>
CC:
Asunto: default password

Hello all,
When we do adduser or useradd at the shell,what is the default
password assigned for that new user?

Thanks
regards-
kaushal

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
In reply to kaushal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 3 lines

Hello all,
When we do adduser or useradd at the shell,what is the default
password assigned for that new user?

# useradd testing
# cat /etc/shadow | grep testing
testing:!:12696:0:99999:7:::

Here you can see that the password hash is '!'. This isn't a valid password hash. You can't login with this password.

Lothar
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBYl9iWOkN8SqY+ZkRAj40AJsHQ/7JiQGd9j0P72yky67yOaRfJACeK4x6 gamkyW5wtMIGhnMZ4bKbkCE=
=3VTM
-----END PGP SIGNATURE-----

#3 lore raw
In reply to kaushal

At 10/5/2004 01:54 PM +0530, kaushal asked:

Quoted 1 line

When we do adduser or useradd at the shell,what is the default password assigned for that new user?

man useradd (on RHES3) says:
-p passwd
The encrypted password, as returned by crypt(3). The default is to disable the account.

--
Jeff Woods <[email protected]>

#4 lore raw
In reply to kaushal

There is no default password. The account can not be logged into until it is given a password.
----- Original Message -----
From: "kaushal" <[email protected]>
To: "admin" <[email protected]>
Sent: Tuesday, October 05, 2004 4:24 AM
Subject: default password

Quoted 14 lines

Hello all,
When we do adduser or useradd at the shell,what is the default
password assigned for that new user?

Thanks
regards-
kaushal

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html