Questions tagged [passwd]
The passwd tag has no summary.
229 questions
0
votes
1
answer
30
views
find when samba smbpasswd was last updated?
like with passwd -S <user> showing the last time the linux login password was updated via passwd...
is there a way in samba as root to show when the last time a valid samba user listed via ...
-4
votes
1
answer
91
views
Linux passwd / no password
Disabled password on login with command sudo passwd -l user
How do I retrieve the password?
1
vote
0
answers
113
views
How to debug chpasswd "Authentication token manipulation error"
I'm trying to programmatically change a user's password using chpasswd, but I'm getting the following error:
/sbin/chpasswd <<< "0s22xmgW:<new_password>"
chpasswd: (user ...
1
vote
0
answers
307
views
How do I use static UIDs and GIDs for services in my yocto build?
I have a piece of equipment running a yocto build. This build includes services like ssh-server, mysql, and ntp, with each run as their own users. mysql is UID 999, sshd is UID 998, etc.
In my ...
1
vote
0
answers
151
views
How to test password PAM options without changing password
I notice there are settings in /etc/pam.d/common-password to define minimum password strength. For example:
...
password requisite pam_pwquality.so retry=3 maxrepeat=0 minlen=19 ucredit=-1 ...
1
vote
1
answer
128
views
does /etc/passwd primary group mean you are in that group?
This is in RHEL-8.10 for what it's worth...
in /etc/passwd I have
ron:x:20000:100:me:/home/ron:/bin/bash
so my uid is 20000, and my gid is 100 which as defined by convention in /etc/group is the ...
0
votes
1
answer
94
views
What is the meaning of having a username as the last field of an `/etc/passwd` entry?
In Google Compute Engine VM in /etc/passwd file i see an entry like this one:
root:x:0:0:root:/root:my_logged_in_username_here.
What could that mean? The last field is for user command interpreter as ...
0
votes
0
answers
435
views
Setting user passwords via kernel parameter
What is the correct syntax to use these bits of information from systemd manual:
systemd-sysusers(8) will look for the credentials passwd.hashed-password., passwd.plaintext-password. and passwd.shell....
0
votes
1
answer
172
views
I've forgotten my password but am logged in--what tools can I use to assist in recovery and limit damages?
I have an encrypted hard drive. The hard drive, root user, and primary user all share the same password. I have successfully logged in but seem to have forgotten the password.
I'm looking to limit the ...
8
votes
3
answers
10k
views
How do I get rid of password restrictions in passwd
My usual password just doesn't fit into its standards, and frankly this install doesn't need to be fort knox. Is there any way to disable them?
edit: this helped me https://www.reddit.com/r/Gentoo/...
0
votes
2
answers
730
views
Difference between *LK* in /etc/shadow and /usr/sbin/nologon in /etc/passwd
What is the practical difference between setting *LK* in /etc/shadow and setting /usr/sbin/nologon in /etc/passwd?
When would we choose one over the other? When would we combine them?
1
vote
3
answers
9k
views
How can I reuse an old password?
I recently changed my password on my VMware Photon OS host. Now I want to reset it to the old one again, but passwd does not let me do it and displays the following message:
Password has been already ...
0
votes
1
answer
1k
views
AuditD - Log sudo access to /etc/passwd by all commands but never for other files
I'm struggling with the following task for AuditD
/etc/passwd should be monitored for any access doesn't matter if a cat or sudo cat is used...ok, easy. BUT I should also prevent auditd to log any ...
8
votes
4
answers
5k
views
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;...
0
votes
1
answer
114
views
etc shadow file for passwd - calculate not only date but time
I want to know if there is a way to get the last password change date + time stamp ?
10
votes
2
answers
2k
views
Source of passwd error messages
I am testing if the passwd command could run if the setuid bit is disabled. I disabled the setuid by running the following command:
chmod 0554 /bin/passwd
After doing so, I tested if the passwd ...
0
votes
1
answer
2k
views
How to check which user has changed their or other user's password?
How can I capture (if there is a log file somewhere) when a user changes their password or another user's password?
I see this log but I can't determine whom change password for user XXXX
Mar 31 12:41:...
0
votes
2
answers
355
views
Help needed: sudo passwd -l
I used the command sudo passwd -l on my own user account in Ubuntu and now I can't log in anymore. Is there any way to unlock that?
I tried adding "!" in front of my password but it still ...
0
votes
1
answer
120
views
How to update user password with the file has password,without prompt key in?
I am using Debian 11,set password with shadow.
I random generate password into file pas:
cat pas
"Th3P@ssw0rd"
When I update password to normal user has sudo privilege,
sudo passwd username
...
3
votes
1
answer
3k
views
unable to change directory with CD command
My situation might not be typical, and this is a reverse shell I got.
I find myself stuck in the root directory; I can't "cd" to change my current directory to anywhere. However, I can list/...
2
votes
1
answer
7k
views
Running "su command" as another user
I have a user user1 which is part of wheel group and has all the root privileges .
user1 is able to change password for user2 using the below command
(My understanding is that here passwd is run as ...
0
votes
0
answers
426
views
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 ...
1
vote
0
answers
113
views
passwd results in signal SIGSEGV: segmentation violation
On Ubuntu 18.04 I am attempting to change my password with
sudo passwd myusername
I enter the new password and get this:
Enter new UNIX password:
Retype new UNIX password:
fatal error: ...
1
vote
0
answers
559
views
PAM guru help to interpret system-auth password-auth RHEL 7
I have a RHEL 7.9 system which currently has identical system-auth and password-auth files located under /etc/pam.d/. That file is
auth required pam_faillock.so preauth audit deny=3 ...
1
vote
1
answer
984
views
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 <username&...