Questions tagged [passwd]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
40 views

Change passwd: user does not exist

I'm logged into a Debian chroot environment as root, and can't seem to login as my regular user. I was previously using this chroot environment without any issues on an Ubuntu host. Now I've switched ...
  • 1,768
7 votes
3 answers
2k 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
35 views

useradd -p option [duplicate]

I can't understand the purpose of -p option in 'useradd' Let's create a user useradd -m -p 'pass1' user1 after running the command above, when trying to log in using su - user1 authentication fails....
  • 65
0 votes
1 answer
19 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 ?
-1 votes
1 answer
80 views

passwd source code

I am trying to look at the source code of the passwd and gpasswd programs. These tools check the effective UID set to zero to complete execution successfully. But I am a noob to C and couldn't find ...
  • 111
10 votes
2 answers
1k 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 ...
  • 111
0 votes
0 answers
45 views

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 ...
  • 3,243
0 votes
1 answer
98 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
1 answer
105 views

What's the difference between empty password and no password?

As said in this question in comments, empty password and no password are different things. So what's the difference between empty password and no password in Linux Debian?
  • 205
0 votes
0 answers
108 views

Why it is allowed to enter very special characters to `passwd` in Ubuntu?

passwd in Ubuntu allows very special characters to became password like ᦕ, while you can only set very special characters to OpenSUSE with their Yast. Do the very special characters work properly in ...
0 votes
2 answers
94 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 ...
1 vote
1 answer
266 views

What could this portion of the 'Information Security Handbook' by John M.D Hunter possibly mean?

So I am reading this Information Security Handbook by John M.D. Hunter. I quote two paragraphs of the book below: "An operating system is usually capable of preventing users from performing ...
  • 169
0 votes
1 answer
43 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 ...
  • 111
2 votes
1 answer
430 views

How can a user start its own login shell?

I want the default command for a Docker image to start up a login shell for the container's user.¹ Something like: … USER someuser CMD /bin/zsh --login That above gets a login shell, but does not ...
  • 121
0 votes
0 answers
161 views

changing the password of root remote host with no interaction

How could I change the password for a root account on remote server without a need to enter the password each time? Localhost is a MacOS computer and I have sshpass installed, remote host in an ...
  • 35
2 votes
1 answer
1k 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 ...
  • 161
3 votes
1 answer
467 views

Recovering /etc/passwd file

I deleted my /etc/passwd with my fat fingers. I saw that there is a /etc/passwd- that looks like a backup file but I cannot copy it to restore the original one since I can't sudo anymore. My volume is ...
0 votes
0 answers
85 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
2 answers
137 views

Why does openssl create different hashes for the same string, and how does linux accept the different hashes when switching users?

Background As an experiment, I was adding new users (as the root user) by manually creating entries into /etc/passwd. To hash the passwords I was using openssl, in particular OpenSSL 1.1.1g but the ...
1 vote
0 answers
45 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: ...
  • 143
0 votes
1 answer
158 views

Why Command "cata/etc/..." does not give me any results? [closed]

Why if I type: cat/etc/passwd or cat/etc/shadow the termnal give back me the message: no such file or directory found ? At least I should visualize me like user
1 vote
0 answers
160 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 ...
  • 4,553
2 votes
1 answer
86 views

How to change the keyphrase in the pass program without reinitializing a pass store from scratch

I'm using the pass application which I find really handy. I want to change the keyphrase (mother password). I had a look at the man page there but i'm not sure what to do. Do I have to use the init ...
  • 349
1 vote
1 answer
211 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&...
  • 4,553
0 votes
0 answers
15 views

samba password expiration to match login.defs PASS_MAX_DAYS

using RHEL 7.9 I have local user accounts via /etc/passwd and use samba 4.10 with security = user and passdb backend = tdbsam I just verified with my account (in /etc/passwd) that when locked (via ...
  • 4,553
1 vote
0 answers
187 views

Joined linux host to AD server using realmd. Unable to change ad user passwords from the command line

Have a fairly simple setup of one AD server with various linux hosts. We attached the linux hosts to our domain by using: realm discover domain.example.com realm join domain.example.com -U user.adm ...
  • 322
1 vote
0 answers
196 views

passwd -S Alternate authentication scheme in use

in RHEL 7.9, I do passwd -S on all accounts in /etc/passwd as part of checking user accounts. # passwd -S <account name> root PS 1969-12-30 0 99999 7 -1 (Password set, SHA512 crypt.) bin LK ...
  • 4,553
1 vote
2 answers
360 views

Chsh Enterpise login

I installed Fedora 34 and did the Enterprise Login (domain user). I can't use chsh for change the user default shell to zsh because user does not exists. (It's not present in /etc/passwd because is ...
2 votes
2 answers
576 views

AIX 7 - Command To Check If Never Used User Accounts Are Locked

On AIX 7, I am trying to craft a command that would check the user accounts on my system that have never logged in and to check if they are locked. If a user account that has never logged in exists ...
  • 87
0 votes
1 answer
82 views

Change linux password and expire at the same time

I'm learning Linux bash scripting and faced an error without notification. I would like to understand why I can't both change password and expire it at the same time? Additionally, there is no any ...
  • 105
2 votes
1 answer
130 views

Command To Check If Users In /etc/passwd Exist In A Different File

Is it possible to query the /etc/passwd file to view all user UIDS less than 200 and to check if those users are within a file such as /etc/ftpusers? So far, I have managed to craft the command below ...
  • 87
1 vote
0 answers
297 views

List of Users - RHEL

I want to get list of users - both human and machine who have access to the unix server. OS is: NAME="Red Hat Enterprise Linux Server" VERSION="7.9 (Maipo)" I tried cat /etc/...
0 votes
0 answers
50 views

Server ip with multiple domains / but only 1 user on /etc/passwd

I have access on a server that is running multiple domains on it, but when i check the /etc/passwd file i see only 1 user available ? is it mean that each user have his own linux instalation ? virtual ...
  • 1
2 votes
1 answer
146 views

How can I start a login shell with options?

I am messing around and want to have a guest user whose login shell is a restricted one like rbash. Unfortunately there is no rbash executable anywhere on my Slackware installation, so I have to do ...
  • 163
1 vote
1 answer
126 views

how to disable "Retype new password" when changing password in RHEL/CentOS

Is there a configuration setting in RHEL/CentOS thru which Retype new password can be disabled while changing user password? In shell we can use echo 'username:newpassword' | chpasswd I have to set it ...
  • 11
0 votes
1 answer
131 views

Why are there two root and nobody accounts according to "getent passwd"?

The output further down was retrieved by employing machinectl on a Ubuntu 20.04 host: machinectl pull-tar https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64-root.tar.xz focal ...
  • 15.5k
-2 votes
1 answer
190 views

What are the numbers in /etc/passwd? (and is there a way to find answers to these kind of questions without searching the internet)? [closed]

If i run grep user /etc/passwd, i get the string user:x:1021:1021::/home/user:/bin/bash. What does the numbers "1021:1021" mean? And is there a offline way to find what these mean? If i do ...
0 votes
0 answers
273 views

/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 ...
  • 101
1 vote
1 answer
298 views

kali user password not saved after reboot

I am running Kali on a persistent USB (in a nvme enclosure) and it works fine. But when i do "passwd aUserName" log out and back in, the new password is used like it should. However when i ...
  • 115
3 votes
2 answers
510 views

Why can't I get a unique list of shells? [duplicate]

Trying to get a unique list of shells on my system. When I run this command: cat /etc/passwd | cut -d ':' -f 7 | uniq I get: /bin/bash /bin/sync /sbin/shutdown /sbin/halt /bin/bash I can't ...
0 votes
1 answer
45 views

Need help with a script that uses passwd and shadow

I would like assistance with something I have to do. I need to verify if all users in passwd are also in shadow, if the primary group exists, if the homedir exists and if it belongs to the correct ...
1 vote
1 answer
361 views

Cannot login as a regular user on FreeBSD

This user is a unpriviledged SFTP access user on our server, it was used during the stay-home order earlier this year due to Covid19, and I'm using it today to prepare some work for use tomorrow. ...
  • 487
0 votes
0 answers
29 views

Allow user to change all the passwords on the host

How can I give some user, e.g. jack, permission to edit all the passwords for all users on a host? I have added jack ALL=/bin/passwd /etc/shadow ALL in /etc/sudoers file (alternatively using visudo ...
  • 81
1 vote
1 answer
629 views

Why does Kali Linux have other existing users from /etc/passwd file? I never created these users

I simply wanted to see my user that I just created in the terminal but I came across this sea of users in my existing Kali Linux vm. The command I used displayed a list of users. It started with "...
2 votes
1 answer
1k views

Correct way to create users without home (for shadow.service)

If you create a user without a home on Arch Linux with useradd -M test, an entry like the following is created in /etc/passwd: test:x:1001:1001::/home/test:/bin/bash But because /home/test doesn't ...
  • 1,622
1 vote
1 answer
140 views

Is it possible to stop users from changing their passwords with PAM?

How can I stop users form changing their passwords with PAM? Is this possible? PAM can enforce password strength and the like, but it can reject all changes?
0 votes
1 answer
236 views

Shell for only changing password

I need to restrict all access to a user on a RHEL 8 system and allow them to only change their own password. I thought that I could do [root]$ usermod <username> -s /bin/passwd but this is not ...
  • 133
0 votes
1 answer
1k views

Fedora 32/33 - Remove password strength enforcement

Fedora 32/33 wont let me select a short password for root and user. In this case i want to allow it, but i cannot do so: ❯ sudo passwd Changing password for user root. New password: BAD PASSWORD: The ...
0 votes
0 answers
38 views

adduser name password set to a different user

I am root user and added a new user to the system with adduser username and set the password. I left my server for a half or or so and I come back and press the escape key "wake it up" I go ...
0 votes
0 answers
119 views

order in passwd and shadow file

In order to implement some parser and eventually some tool to write to /etc/passwd and /etc/shadow on linux, I'd like to know if I can assume that the users in the files are guaranteed/or mostly in ...
  • 111

1
2 3 4 5