Basic useradd question

Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I added one user with myname(prashant) but i had not set any password for same user account.
Still when i reboot(runlevel5), i os asked mi for password for same user account. I tried to login with without password as i not set, still authentication failure msg display. how it is possible?
OS : Cent os 6.4
I added more two users also but not beneficial.
Please can any one tell me the reason and way to login with same user.
useradd
add a comment |Â
up vote
1
down vote
favorite
I added one user with myname(prashant) but i had not set any password for same user account.
Still when i reboot(runlevel5), i os asked mi for password for same user account. I tried to login with without password as i not set, still authentication failure msg display. how it is possible?
OS : Cent os 6.4
I added more two users also but not beneficial.
Please can any one tell me the reason and way to login with same user.
useradd
It sounds like you want to set an empty password for your user. Is that right?
â dhag
Nov 20 '17 at 20:57
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I added one user with myname(prashant) but i had not set any password for same user account.
Still when i reboot(runlevel5), i os asked mi for password for same user account. I tried to login with without password as i not set, still authentication failure msg display. how it is possible?
OS : Cent os 6.4
I added more two users also but not beneficial.
Please can any one tell me the reason and way to login with same user.
useradd
I added one user with myname(prashant) but i had not set any password for same user account.
Still when i reboot(runlevel5), i os asked mi for password for same user account. I tried to login with without password as i not set, still authentication failure msg display. how it is possible?
OS : Cent os 6.4
I added more two users also but not beneficial.
Please can any one tell me the reason and way to login with same user.
useradd
asked Nov 20 '17 at 19:49
Prashant
61
61
It sounds like you want to set an empty password for your user. Is that right?
â dhag
Nov 20 '17 at 20:57
add a comment |Â
It sounds like you want to set an empty password for your user. Is that right?
â dhag
Nov 20 '17 at 20:57
It sounds like you want to set an empty password for your user. Is that right?
â dhag
Nov 20 '17 at 20:57
It sounds like you want to set an empty password for your user. Is that right?
â dhag
Nov 20 '17 at 20:57
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
From the useradd(8) man page:
-p, --password PASSWORD
[...] The default is to disable the password.
The way to allow login is to assign a password using passwd.
To allow login by using passwd it is ok, but when i need to use this command. I mean after just useradd or when. Because i added user already and restarted system. I am now using this command but it is setting password. Kindly let me know how i disable the password of created account and while creation of new account using useradd command how i disable the password. Thanks in advance.
â Prashant
Nov 20 '17 at 20:12
@Prashant Your question is unclear. Do you want to set passwd or not?
â Arpit Agarwal
Nov 20 '17 at 20:59
The question is clear: the OP wants to login and cannot because the system is asking for a password, even though none was set.
â G-Man
Nov 20 '17 at 21:07
Yes G-Man is correct, i just added user with useradd command and when i reboot machine it shows me to enter password for same user.
â Prashant
Nov 21 '17 at 10:56
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
From the useradd(8) man page:
-p, --password PASSWORD
[...] The default is to disable the password.
The way to allow login is to assign a password using passwd.
To allow login by using passwd it is ok, but when i need to use this command. I mean after just useradd or when. Because i added user already and restarted system. I am now using this command but it is setting password. Kindly let me know how i disable the password of created account and while creation of new account using useradd command how i disable the password. Thanks in advance.
â Prashant
Nov 20 '17 at 20:12
@Prashant Your question is unclear. Do you want to set passwd or not?
â Arpit Agarwal
Nov 20 '17 at 20:59
The question is clear: the OP wants to login and cannot because the system is asking for a password, even though none was set.
â G-Man
Nov 20 '17 at 21:07
Yes G-Man is correct, i just added user with useradd command and when i reboot machine it shows me to enter password for same user.
â Prashant
Nov 21 '17 at 10:56
add a comment |Â
up vote
1
down vote
From the useradd(8) man page:
-p, --password PASSWORD
[...] The default is to disable the password.
The way to allow login is to assign a password using passwd.
To allow login by using passwd it is ok, but when i need to use this command. I mean after just useradd or when. Because i added user already and restarted system. I am now using this command but it is setting password. Kindly let me know how i disable the password of created account and while creation of new account using useradd command how i disable the password. Thanks in advance.
â Prashant
Nov 20 '17 at 20:12
@Prashant Your question is unclear. Do you want to set passwd or not?
â Arpit Agarwal
Nov 20 '17 at 20:59
The question is clear: the OP wants to login and cannot because the system is asking for a password, even though none was set.
â G-Man
Nov 20 '17 at 21:07
Yes G-Man is correct, i just added user with useradd command and when i reboot machine it shows me to enter password for same user.
â Prashant
Nov 21 '17 at 10:56
add a comment |Â
up vote
1
down vote
up vote
1
down vote
From the useradd(8) man page:
-p, --password PASSWORD
[...] The default is to disable the password.
The way to allow login is to assign a password using passwd.
From the useradd(8) man page:
-p, --password PASSWORD
[...] The default is to disable the password.
The way to allow login is to assign a password using passwd.
answered Nov 20 '17 at 19:53
Ignacio Vazquez-Abrams
32.1k66780
32.1k66780
To allow login by using passwd it is ok, but when i need to use this command. I mean after just useradd or when. Because i added user already and restarted system. I am now using this command but it is setting password. Kindly let me know how i disable the password of created account and while creation of new account using useradd command how i disable the password. Thanks in advance.
â Prashant
Nov 20 '17 at 20:12
@Prashant Your question is unclear. Do you want to set passwd or not?
â Arpit Agarwal
Nov 20 '17 at 20:59
The question is clear: the OP wants to login and cannot because the system is asking for a password, even though none was set.
â G-Man
Nov 20 '17 at 21:07
Yes G-Man is correct, i just added user with useradd command and when i reboot machine it shows me to enter password for same user.
â Prashant
Nov 21 '17 at 10:56
add a comment |Â
To allow login by using passwd it is ok, but when i need to use this command. I mean after just useradd or when. Because i added user already and restarted system. I am now using this command but it is setting password. Kindly let me know how i disable the password of created account and while creation of new account using useradd command how i disable the password. Thanks in advance.
â Prashant
Nov 20 '17 at 20:12
@Prashant Your question is unclear. Do you want to set passwd or not?
â Arpit Agarwal
Nov 20 '17 at 20:59
The question is clear: the OP wants to login and cannot because the system is asking for a password, even though none was set.
â G-Man
Nov 20 '17 at 21:07
Yes G-Man is correct, i just added user with useradd command and when i reboot machine it shows me to enter password for same user.
â Prashant
Nov 21 '17 at 10:56
To allow login by using passwd it is ok, but when i need to use this command. I mean after just useradd or when. Because i added user already and restarted system. I am now using this command but it is setting password. Kindly let me know how i disable the password of created account and while creation of new account using useradd command how i disable the password. Thanks in advance.
â Prashant
Nov 20 '17 at 20:12
To allow login by using passwd it is ok, but when i need to use this command. I mean after just useradd or when. Because i added user already and restarted system. I am now using this command but it is setting password. Kindly let me know how i disable the password of created account and while creation of new account using useradd command how i disable the password. Thanks in advance.
â Prashant
Nov 20 '17 at 20:12
@Prashant Your question is unclear. Do you want to set passwd or not?
â Arpit Agarwal
Nov 20 '17 at 20:59
@Prashant Your question is unclear. Do you want to set passwd or not?
â Arpit Agarwal
Nov 20 '17 at 20:59
The question is clear: the OP wants to login and cannot because the system is asking for a password, even though none was set.
â G-Man
Nov 20 '17 at 21:07
The question is clear: the OP wants to login and cannot because the system is asking for a password, even though none was set.
â G-Man
Nov 20 '17 at 21:07
Yes G-Man is correct, i just added user with useradd command and when i reboot machine it shows me to enter password for same user.
â Prashant
Nov 21 '17 at 10:56
Yes G-Man is correct, i just added user with useradd command and when i reboot machine it shows me to enter password for same user.
â Prashant
Nov 21 '17 at 10:56
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f405836%2fbasic-useradd-question%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
It sounds like you want to set an empty password for your user. Is that right?
â dhag
Nov 20 '17 at 20:57