Questions tagged [passwd]
The passwd tag has no usage guidance.
200
questions
0
votes
0
answers
61
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
44
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
258
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 ...
0
votes
1
answer
28
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
...
2
votes
1
answer
123
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 ...
0
votes
0
answers
43
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 ...
2
votes
1
answer
269
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 ...
3
votes
1
answer
190
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
56
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
70
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
33
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: ...
0
votes
1
answer
92
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
64
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 ...
2
votes
1
answer
63
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 ...
1
vote
1
answer
85
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&...
0
votes
0
answers
13
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 ...
1
vote
0
answers
97
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
...
1
vote
0
answers
118
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 ...
1
vote
2
answers
226
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
305
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 ...
0
votes
1
answer
48
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 ...
2
votes
1
answer
82
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 ...
1
vote
0
answers
200
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
41
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 ...
2
votes
1
answer
122
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 ...
1
vote
1
answer
62
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 ...
0
votes
1
answer
106
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
...
-2
votes
1
answer
135
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
151
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 ...
1
vote
1
answer
183
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 ...
3
votes
2
answers
439
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
37
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
272
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.
...
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 ...
1
vote
1
answer
516
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
830
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
vote
1
answer
93
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
134
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 ...
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
36
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
93
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 ...
1
vote
1
answer
371
views
/etc/passwd.org, /etc/group.org, /etc/shadow.org files
On a Debian 10 server, which started as Debian 7 and updated whenever new version came out, I accidentally found these three files:
/etc/passwd.org, /etc/group.org, /etc/shadow.org
The backup files /...
3
votes
0
answers
56
views
force specific shell environment variable on process using /etc/pam.d/ rules
I am using slim login manager, and it has its own pam rules file: /etc/pam.d/slim.
auth requisite pam_nologin.so
auth required pam_env.so readenv=1
auth required pam_env....
1
vote
0
answers
43
views
force slim login manager to use /bin/sh to execute scripts, instead of user shell specified in /etc/passwd
I am using slim login manager, and openbox window manager.
I believe, the startup sequence has these steps:
1) root: /etc/init.d/slim
2) root: /usr/bin/slim
2) user: /usr/bin/slim
3) user: ...
0
votes
0
answers
520
views
Why would 000 on /etc/shadow permissions lead to me not being able to use passwd?
Basically, I decided to change the password on the VM I use for work which runs CentOS 7. Entering a new password in literally every case (user runs passwd himself, user sudos passwd, sudo su and then ...
1
vote
0
answers
106
views
passwd -d can't remove password of user?
I created a new user to access a network share which I want to give no password. I ran useradd share and then sudo passwd -d share. passwd tells me that the password expiry information changed. If I ...
1
vote
1
answer
569
views
User with privilege to manage other users' password EXCEPT root's
I am trying to give user a privilege to change other users' passwords, BUT excluding root's password.
I have edited the /etc/sudoers file with visudo and appended the following line:
myuser ALL=/...
1
vote
3
answers
3k
views
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?
1
vote
2
answers
594
views
Cannot use sudo su after I changed my password
I am running Ubuntu 14.04 LTS.
Yesterday, I changed the password on my user account, which is an admin account. This morning, I discovered that I can no longer use sudo su to switch to root. I know ...
1
vote
1
answer
405
views
Can you edit /etc/passwd on a firmware image?
I'm trying to gain root access on a cheap DVR that I bought for a CCTV system. The manufacturer has a firmware update image available for download that I was able to inspect using a tool called ...