Basic useradd question

The name of the pictureThe name of the pictureThe name of the pictureClash 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.







share|improve this question




















  • It sounds like you want to set an empty password for your user. Is that right?
    – dhag
    Nov 20 '17 at 20:57














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.







share|improve this question




















  • It sounds like you want to set an empty password for your user. Is that right?
    – dhag
    Nov 20 '17 at 20:57












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.







share|improve this question












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.









share|improve this question











share|improve this question




share|improve this question










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
















  • 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










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.






share|improve this answer




















  • 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










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















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






























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.






share|improve this answer




















  • 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














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.






share|improve this answer




















  • 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












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.






share|improve this answer












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.







share|improve this answer












share|improve this answer



share|improve this answer










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
















  • 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

















 

draft saved


draft discarded















































 


draft saved


draft discarded














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













































































Popular posts from this blog

Peggy Mitchell

The Forum (Inglewood, California)

Palaiologos