Questions tagged [passwd]

217 questions
8
votes
3 answers

Password Policy - BAD PASSWORD: The password is just rotated old one

After setting password expiration via: sudo chage -d 0 username Then changing the password and login as that user. When I type "passwd" and try to set the original password I receive message; "Password Policy - BAD PASSWORD: The password is just…
6
votes
1 answer

Output of passwd -S command

Normally when I use passwd -S $USER to get the status of a user account, the output is something like following: $USER L 11/10/2015 0 99999 7 -1 But I have seen cases such that output is short like this: $USER L What is the reason for having an…
Vombat
  • 12,884
5
votes
1 answer

What is the practical difference between locking and deleting a user password?

The accepted answer to How do I completely remove root password suggests passwd -d root ("deleting" the password), and a comment suggests instead using passwd -l root ("locking" the password). The only difference seems to be that a locked password…
l0b0
  • 51,350
3
votes
3 answers

Is a comment line allowed in /etc/passwd

I know, in RHEL 7.8, that you can have blank lines in /etc/passwd But can you have comment lines, and if so what would the line start with?
ron
  • 6,575
2
votes
2 answers

how to prevent the manual shutdown or Reboot to set the passwd even though login as root

I have given the reboot command unexpectedly,to prevent this issue need to assign password confirmation for shutdown or reboot activities even though logging as root.Kindly suggest to prevent this issue.Thanks in advance.
Vijay
  • 21
1
vote
1 answer

setting temporary password only expiration date

using RHEL 7.9, I have local user accounts defined in /etc/passwd and /etc/shadow. my password changing process is to email users, when needed, a temporary password. as root I do passwd with that temporary password followed by a passwd…
ron
  • 6,575
1
vote
0 answers

/etc/passwd minicom as the user shell with parameters

I have an application that I need to constrain the user to operate a serial console. This works perfectly fine: myuser:x:1005:1005:Someone,,,:/home/myuser:/usr/bin/minicom However, I realize that I also need to capture the serial console, so I…
Leonardo
  • 160
1
vote
2 answers

Can /etc/passwd change because of a reboot?

A Zabbix server I am currently started showing an alert like this: /etc/passwd has been changed on Router Now, on this Router machine I don't have a history of the passwd file so I cannot see exactly what changed, but what I know is that the time…
user1301428
  • 1,017
0
votes
0 answers

How to change my password without current password or root access?

I changed my user password two months ago. Logged in. Machine has been up and running since. Now I forgot my new password and want to run a sudo command. 'passwd' wants my current password before doing anything. Note: I also don't have the root…
DarenW
  • 3,443
0
votes
0 answers

Password change failed because password does not meet minimum quality requirements. What does this error mean?

On my macOS machine, I tried something like: passwd derp After I input the old password and the new password, it shows the following: passwd: Password change failed because password does not meet minimum quality requirements. Password change…
0
votes
1 answer

Is it possible to have many startup programs in the /etc/passwd file?

I already know that you can change the command executed for a specific user when he/she logs in. However, I do not know if you can have many start-up programs for the certain user. For example: oqhax:x:1001:1001:Oqhax,,,:/home/oqhax:/bin/bash The…
Oqhax
  • 103