How to change password in brand new Unix user

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
-3
down vote

favorite












First ever question for me. Straight to the point. I've added a user:



sudo useradd -m _homedir_ _username_


Tried all of these but nothing worked:



passwd _username_

chpasswd username: _password_

usermod -p _password_ _username_


I'm still unable to login directly but login works fine using



su -l username


Via root login.
This is the entry on the /etc/passwd file



sftp_raes:x:11114:500:SFTP trasnfer ad-hoc user:/apps/data:/bin/bash



PS. Passwd seems not to detect digits, always prompting 'less then 1 digit error
error using passwd - digits undetected







share|improve this question





















  • "digits" refers to a number (i.e. 0-9). Are you sure you're entering at least one number (and not using the numpad)?
    – Kevin Kruse
    Jul 20 at 15:15










  • ..shame on me... Thanks Kevin
    – user3405492
    Jul 23 at 8:09
















up vote
-3
down vote

favorite












First ever question for me. Straight to the point. I've added a user:



sudo useradd -m _homedir_ _username_


Tried all of these but nothing worked:



passwd _username_

chpasswd username: _password_

usermod -p _password_ _username_


I'm still unable to login directly but login works fine using



su -l username


Via root login.
This is the entry on the /etc/passwd file



sftp_raes:x:11114:500:SFTP trasnfer ad-hoc user:/apps/data:/bin/bash



PS. Passwd seems not to detect digits, always prompting 'less then 1 digit error
error using passwd - digits undetected







share|improve this question





















  • "digits" refers to a number (i.e. 0-9). Are you sure you're entering at least one number (and not using the numpad)?
    – Kevin Kruse
    Jul 20 at 15:15










  • ..shame on me... Thanks Kevin
    – user3405492
    Jul 23 at 8:09












up vote
-3
down vote

favorite









up vote
-3
down vote

favorite











First ever question for me. Straight to the point. I've added a user:



sudo useradd -m _homedir_ _username_


Tried all of these but nothing worked:



passwd _username_

chpasswd username: _password_

usermod -p _password_ _username_


I'm still unable to login directly but login works fine using



su -l username


Via root login.
This is the entry on the /etc/passwd file



sftp_raes:x:11114:500:SFTP trasnfer ad-hoc user:/apps/data:/bin/bash



PS. Passwd seems not to detect digits, always prompting 'less then 1 digit error
error using passwd - digits undetected







share|improve this question













First ever question for me. Straight to the point. I've added a user:



sudo useradd -m _homedir_ _username_


Tried all of these but nothing worked:



passwd _username_

chpasswd username: _password_

usermod -p _password_ _username_


I'm still unable to login directly but login works fine using



su -l username


Via root login.
This is the entry on the /etc/passwd file



sftp_raes:x:11114:500:SFTP trasnfer ad-hoc user:/apps/data:/bin/bash



PS. Passwd seems not to detect digits, always prompting 'less then 1 digit error
error using passwd - digits undetected









share|improve this question












share|improve this question




share|improve this question








edited Jul 20 at 8:39
























asked Jul 19 at 18:22









user3405492

11




11











  • "digits" refers to a number (i.e. 0-9). Are you sure you're entering at least one number (and not using the numpad)?
    – Kevin Kruse
    Jul 20 at 15:15










  • ..shame on me... Thanks Kevin
    – user3405492
    Jul 23 at 8:09
















  • "digits" refers to a number (i.e. 0-9). Are you sure you're entering at least one number (and not using the numpad)?
    – Kevin Kruse
    Jul 20 at 15:15










  • ..shame on me... Thanks Kevin
    – user3405492
    Jul 23 at 8:09















"digits" refers to a number (i.e. 0-9). Are you sure you're entering at least one number (and not using the numpad)?
– Kevin Kruse
Jul 20 at 15:15




"digits" refers to a number (i.e. 0-9). Are you sure you're entering at least one number (and not using the numpad)?
– Kevin Kruse
Jul 20 at 15:15












..shame on me... Thanks Kevin
– user3405492
Jul 23 at 8:09




..shame on me... Thanks Kevin
– user3405492
Jul 23 at 8:09










1 Answer
1






active

oldest

votes

















up vote
4
down vote













Edit: The original Question and title are answered in the original Answer below. The updated Question contains the correct command and is answered here in the updated Answer.



Updated Answer



A digit is a number (i.e. 0-9). The password contains less than [n] digits means your password requirements require at least n digits.



Original Answer



To change the password for another user, run this as a root user:



passwd myusername



Then you're prompted to input the password. See man passwd on your system, or use the following link online.






share|improve this answer























  • or better, man passwd on your RHEL system (as the OP is using RHEL)
    – Jeff Schaller
    Jul 19 at 18:58










  • @JeffSchaller yes, I still haven't settled on a preferred method of saying "use man, or use this link". I chose a link whose manpage matches my manpage (CentOS). Will try to edit the answer a bit.
    – Kevin Kruse
    Jul 19 at 19:06






  • 1




    Indeed, it's been a discussion for a couple years
    – Jeff Schaller
    Jul 19 at 19:07










  • Thanks @KevinKruse but all commands I listed in the post were performed as root. Passwd in particular is giving me 'less then One digit error' due to the undetected digits while trying to set password
    – user3405492
    Jul 19 at 20:56










  • @user3405492 your post indicates you used passwd mypassword, not passwd myusername. After that, you will be prompted for a password but the characters will not be displayed on the terminal. If you are still having issues, please show what displays on the terminal after you use passwd myusername
    – Kevin Kruse
    Jul 19 at 21:00










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%2f457277%2fhow-to-change-password-in-brand-new-unix-user%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
4
down vote













Edit: The original Question and title are answered in the original Answer below. The updated Question contains the correct command and is answered here in the updated Answer.



Updated Answer



A digit is a number (i.e. 0-9). The password contains less than [n] digits means your password requirements require at least n digits.



Original Answer



To change the password for another user, run this as a root user:



passwd myusername



Then you're prompted to input the password. See man passwd on your system, or use the following link online.






share|improve this answer























  • or better, man passwd on your RHEL system (as the OP is using RHEL)
    – Jeff Schaller
    Jul 19 at 18:58










  • @JeffSchaller yes, I still haven't settled on a preferred method of saying "use man, or use this link". I chose a link whose manpage matches my manpage (CentOS). Will try to edit the answer a bit.
    – Kevin Kruse
    Jul 19 at 19:06






  • 1




    Indeed, it's been a discussion for a couple years
    – Jeff Schaller
    Jul 19 at 19:07










  • Thanks @KevinKruse but all commands I listed in the post were performed as root. Passwd in particular is giving me 'less then One digit error' due to the undetected digits while trying to set password
    – user3405492
    Jul 19 at 20:56










  • @user3405492 your post indicates you used passwd mypassword, not passwd myusername. After that, you will be prompted for a password but the characters will not be displayed on the terminal. If you are still having issues, please show what displays on the terminal after you use passwd myusername
    – Kevin Kruse
    Jul 19 at 21:00














up vote
4
down vote













Edit: The original Question and title are answered in the original Answer below. The updated Question contains the correct command and is answered here in the updated Answer.



Updated Answer



A digit is a number (i.e. 0-9). The password contains less than [n] digits means your password requirements require at least n digits.



Original Answer



To change the password for another user, run this as a root user:



passwd myusername



Then you're prompted to input the password. See man passwd on your system, or use the following link online.






share|improve this answer























  • or better, man passwd on your RHEL system (as the OP is using RHEL)
    – Jeff Schaller
    Jul 19 at 18:58










  • @JeffSchaller yes, I still haven't settled on a preferred method of saying "use man, or use this link". I chose a link whose manpage matches my manpage (CentOS). Will try to edit the answer a bit.
    – Kevin Kruse
    Jul 19 at 19:06






  • 1




    Indeed, it's been a discussion for a couple years
    – Jeff Schaller
    Jul 19 at 19:07










  • Thanks @KevinKruse but all commands I listed in the post were performed as root. Passwd in particular is giving me 'less then One digit error' due to the undetected digits while trying to set password
    – user3405492
    Jul 19 at 20:56










  • @user3405492 your post indicates you used passwd mypassword, not passwd myusername. After that, you will be prompted for a password but the characters will not be displayed on the terminal. If you are still having issues, please show what displays on the terminal after you use passwd myusername
    – Kevin Kruse
    Jul 19 at 21:00












up vote
4
down vote










up vote
4
down vote









Edit: The original Question and title are answered in the original Answer below. The updated Question contains the correct command and is answered here in the updated Answer.



Updated Answer



A digit is a number (i.e. 0-9). The password contains less than [n] digits means your password requirements require at least n digits.



Original Answer



To change the password for another user, run this as a root user:



passwd myusername



Then you're prompted to input the password. See man passwd on your system, or use the following link online.






share|improve this answer















Edit: The original Question and title are answered in the original Answer below. The updated Question contains the correct command and is answered here in the updated Answer.



Updated Answer



A digit is a number (i.e. 0-9). The password contains less than [n] digits means your password requirements require at least n digits.



Original Answer



To change the password for another user, run this as a root user:



passwd myusername



Then you're prompted to input the password. See man passwd on your system, or use the following link online.







share|improve this answer















share|improve this answer



share|improve this answer








edited Jul 23 at 14:34


























answered Jul 19 at 18:29









Kevin Kruse

17210




17210











  • or better, man passwd on your RHEL system (as the OP is using RHEL)
    – Jeff Schaller
    Jul 19 at 18:58










  • @JeffSchaller yes, I still haven't settled on a preferred method of saying "use man, or use this link". I chose a link whose manpage matches my manpage (CentOS). Will try to edit the answer a bit.
    – Kevin Kruse
    Jul 19 at 19:06






  • 1




    Indeed, it's been a discussion for a couple years
    – Jeff Schaller
    Jul 19 at 19:07










  • Thanks @KevinKruse but all commands I listed in the post were performed as root. Passwd in particular is giving me 'less then One digit error' due to the undetected digits while trying to set password
    – user3405492
    Jul 19 at 20:56










  • @user3405492 your post indicates you used passwd mypassword, not passwd myusername. After that, you will be prompted for a password but the characters will not be displayed on the terminal. If you are still having issues, please show what displays on the terminal after you use passwd myusername
    – Kevin Kruse
    Jul 19 at 21:00
















  • or better, man passwd on your RHEL system (as the OP is using RHEL)
    – Jeff Schaller
    Jul 19 at 18:58










  • @JeffSchaller yes, I still haven't settled on a preferred method of saying "use man, or use this link". I chose a link whose manpage matches my manpage (CentOS). Will try to edit the answer a bit.
    – Kevin Kruse
    Jul 19 at 19:06






  • 1




    Indeed, it's been a discussion for a couple years
    – Jeff Schaller
    Jul 19 at 19:07










  • Thanks @KevinKruse but all commands I listed in the post were performed as root. Passwd in particular is giving me 'less then One digit error' due to the undetected digits while trying to set password
    – user3405492
    Jul 19 at 20:56










  • @user3405492 your post indicates you used passwd mypassword, not passwd myusername. After that, you will be prompted for a password but the characters will not be displayed on the terminal. If you are still having issues, please show what displays on the terminal after you use passwd myusername
    – Kevin Kruse
    Jul 19 at 21:00















or better, man passwd on your RHEL system (as the OP is using RHEL)
– Jeff Schaller
Jul 19 at 18:58




or better, man passwd on your RHEL system (as the OP is using RHEL)
– Jeff Schaller
Jul 19 at 18:58












@JeffSchaller yes, I still haven't settled on a preferred method of saying "use man, or use this link". I chose a link whose manpage matches my manpage (CentOS). Will try to edit the answer a bit.
– Kevin Kruse
Jul 19 at 19:06




@JeffSchaller yes, I still haven't settled on a preferred method of saying "use man, or use this link". I chose a link whose manpage matches my manpage (CentOS). Will try to edit the answer a bit.
– Kevin Kruse
Jul 19 at 19:06




1




1




Indeed, it's been a discussion for a couple years
– Jeff Schaller
Jul 19 at 19:07




Indeed, it's been a discussion for a couple years
– Jeff Schaller
Jul 19 at 19:07












Thanks @KevinKruse but all commands I listed in the post were performed as root. Passwd in particular is giving me 'less then One digit error' due to the undetected digits while trying to set password
– user3405492
Jul 19 at 20:56




Thanks @KevinKruse but all commands I listed in the post were performed as root. Passwd in particular is giving me 'less then One digit error' due to the undetected digits while trying to set password
– user3405492
Jul 19 at 20:56












@user3405492 your post indicates you used passwd mypassword, not passwd myusername. After that, you will be prompted for a password but the characters will not be displayed on the terminal. If you are still having issues, please show what displays on the terminal after you use passwd myusername
– Kevin Kruse
Jul 19 at 21:00




@user3405492 your post indicates you used passwd mypassword, not passwd myusername. After that, you will be prompted for a password but the characters will not be displayed on the terminal. If you are still having issues, please show what displays on the terminal after you use passwd myusername
– Kevin Kruse
Jul 19 at 21:00












 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f457277%2fhow-to-change-password-in-brand-new-unix-user%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay