How to change password in brand new Unix user
Clash 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
rhel users passwd
add a comment |Â
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
rhel users passwd
"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
add a comment |Â
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
rhel users passwd
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
rhel users passwd
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
add a comment |Â
"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
add a comment |Â
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.
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 "useman
, 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 usedpasswd mypassword
, notpasswd 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 usepasswd myusername
â Kevin Kruse
Jul 19 at 21:00
 |Â
show 2 more comments
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.
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 "useman
, 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 usedpasswd mypassword
, notpasswd 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 usepasswd myusername
â Kevin Kruse
Jul 19 at 21:00
 |Â
show 2 more comments
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.
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 "useman
, 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 usedpasswd mypassword
, notpasswd 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 usepasswd myusername
â Kevin Kruse
Jul 19 at 21:00
 |Â
show 2 more comments
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.
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.
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 "useman
, 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 usedpasswd mypassword
, notpasswd 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 usepasswd myusername
â Kevin Kruse
Jul 19 at 21:00
 |Â
show 2 more comments
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 "useman
, 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 usedpasswd mypassword
, notpasswd 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 usepasswd 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
 |Â
show 2 more comments
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%2f457277%2fhow-to-change-password-in-brand-new-unix-user%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
"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