Questions tagged [passwd]
The passwd tag has no summary.
228 questions
8
votes
2
answers
938
views
Does any organisation standardise system management fundamentals?
Context
Through a bug report and discussion about KDE Plasma's user management KConfig Module silently failing to support commas inside the full name field, I recently came to realise that parsing ...
-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
2
answers
318
views
Fedora CoreOS: how can I add a user to dialout group?
Problem
Context: Fedora CoreOS operating system (read-only root filesystem).
I'm trying to add myuser to group dialout so I can access /dev/ttyS1 via its group owner. However, during first boot, ...
1
vote
0
answers
92
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 ...
0
votes
1
answer
178
views
/etc/shadow file and password storing algorithm in Linux [duplicate]
I don't know what's algorithm of storing password in /etc/shadow in Linux.
I tested via the following script via python:
import hashlib
message = b"123"
md5_hash = hashlib.md5(message)....
1
vote
0
answers
285
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 ...
2
votes
1
answer
104
views
How to set correctly a password aging using krb5?
I have a Solaris server, it use ldap for user authentication and kerberos for password.
The user can change his password, I have only problem with password aging
for example:
passwd -r ldap -n 12 ...
1
vote
0
answers
148
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 ...
0
votes
0
answers
75
views
User group membership defined in /etc/group is missing after login
I use Bookworm distro on RPI and without any reason stopped working applications which require gpio membership. Real groups membership for pi I get via
pi@digie35:~ $ groups
pi adm dialout cdrom sudo ...
1
vote
1
answer
124
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
78
views
Debian passwd package sources - Unable to find patch that modifies passwd utility options
I noticed passwd utility doesn't support the -s/--stdin option on Debian which allows to read password from standard input. With this option you can do something like echo mypassword | passwd -s ...
0
votes
1
answer
89
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 ...
-1
votes
1
answer
226
views
Why/When to use passwd -d? [closed]
According with man passwd exists the following information:
-d, --delete
Delete a user's password (make it empty).
This is a quick way to disable a password for an account.
It will set the named ...
0
votes
0
answers
427
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....
-2
votes
2
answers
842
views
Password not getting set for this user creation script
The following script is supposed to create a user and generate a random password on an Ubuntu machine:
#!/bin/bash
#Script should execute with sudo/root access
if [[ "${UID}" -ne 0 ]]
then
...