As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [passwd]

passwd refers to the Unix command for changing a user's password and also the file in which users' login data is stored.

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

how to configure passwd/pam.d to confirm new password 3 or more times when changing password with passwd

I am looking to reconfigure my pam.d to prompt for new password confirmation 3 times when using passwd to change password. I have tried to duplicate the unix.so line in password-auth and system-auth ...
juwonlona's user avatar
0 votes
1 answer
182 views

Users and groups not found, but exist in their respective files

I just encountered a bizarre condition on a Debian system I was working on. Out of nowhere, a program complained that its rungroup could not be found. After a bit of digging around, it seems like my ...
InterLinked's user avatar
0 votes
0 answers
227 views

SSSD Linux passwd not working Windows Domain - Server does not support the requested control [1.3.6.1.4.1.42.2.27.8.5.1]

My linux box for some reason is not allowing to use the passwd command to change the user's Windows AD password. We can access the box using AD, run sudo using AD password, running id command I can ...
the-burgh's user avatar
0 votes
0 answers
24 views

Solution to generate clear password from private key+UUID and encrypted password from public key+UUID

I'm looking for a solution to Generate an encrypted UNIX password for a specific target using it UUID and a public GPG key Retrieve a target clear password from its UUID and the private GPG key I ...
Emeric Verschuur's user avatar
0 votes
0 answers
32 views

Linux "passwd" command can not force expire the password for the LDAP

I have basic of setup of LDAP. Users can log and change of their password (passwd user_name) but when I am trying force expire the password: password -e uesr_name I can not do it. I got the error: ...
borys227's user avatar
0 votes
0 answers
46 views

SUSE 11 - Unable to Lock Passwordless User

I'm trying to add a new dedicated, passwordless Ansible user to a small number of old SUSE 11 boxes, but I'm having problems unlocking the after creation. I initially thought this was because the ...
motorleague's user avatar
-1 votes
2 answers
77 views

What "wd" is supposed to mean from the utility tool passwd? [closed]

https://man7.org/linux/man-pages/man1/passwd.1.html What "wd" is supposed to mean in the name of the utility tool passwd? pass is for password - what about wd ?
Tarida George's user avatar
1 vote
1 answer
512 views

Let openldap users change password with passwd in centos, i broke it

Tried to do the above with this tutorial: https://www.unixguide.net/content/openldap-allow-users-change-their-password-unix-passwd-command So I created this ldif: dn: olcDatabase={2}hdb,cn=config ...
Codejoy's user avatar
  • 97
0 votes
1 answer
661 views

Update sudoers file in multiple servers with a bash script

I have 50 Linux servers and can login to the servers without root password (I know the password). Now I would like to add 3 lines in sudoers file on each servers. Obviously logging into 50 servers and ...
KKE's user avatar
  • 135
0 votes
1 answer
210 views

When I run `sudo passwd` I set my password and the script exits okay. Running `sudo chsh -s /bin/bash` immediately after fails

Long time lurker, first time poster. My linux server is behaving strangely. When I run sudo passwd, I can set my password up correctly. However, if I run sudo chsh -s /bin/bash, the command returns ...
Alex's user avatar
  • 19
10 votes
2 answers
3k views

"+::::::" at the end of /etc/passwd

In some of my servers there is this strange line at the end of /etc/passwd/ consisting of just: +:::::: Does anyone knows what it means? I searched the net but only found the same, unanswered ...
dr0i's user avatar
  • 231
0 votes
1 answer
410 views

Superuser unable to change password of user on LDAP server

Just set up an LDAP server (sun) running Ubuntu 20.04 following the guide on Ubuntu Server Docs with TLS enabled with a bunch of users, groups, and automounts in database. Several clients (here: seca) ...
marz_cyclone's user avatar
0 votes
1 answer
287 views

Allow sudo over SSH while forbidding TTY login

I want to lock users from local login (keyboard and monitor), but still allow remote logging with SSH. Easily achievable with passwd -l and ssh-copy-id. But what about sudo? I want to keep password ...
kszonek's user avatar
1 vote
1 answer
643 views

Add a second /etc/passwd + /etc/shadow + /etc/group combination

Is it possible to add a second /etc/passwd + /etc/shadow + /etc/group combination like this to a linux system? /etc/passwd /etc/passwd2 /etc/shadow /etc/shadow2 /etc/group /etc/group2 During ...
erunima's user avatar
  • 21
0 votes
2 answers
2k views

Regex for /etc/passwd Content

I have a collection files from many systems in my enterprise in a store directory (/store/) and I wanted to find all of the passwd files and cat them out to a single file. Intuitively, the command I ...
Lexicon's user avatar
  • 247
1 vote
2 answers
712 views

Sync users over NFS

I'm implementing a web server with configuration and user files shared over NFS (Amazon EFS) as described here: https://serverfault.com/a/933566/81774 As part of my Apache configuration, I am ...
jdog's user avatar
  • 121
29 votes
2 answers
6k views

Why is the maximum length of OpenWrt’s root password 8 characters?

When I try to set root's password: root@OpenWrt:~# passwd Changing password for root Enter the new password (minimum of 5, maximum of 8 characters) Please use a combination of upper and lower case ...
Alan42's user avatar
  • 571
0 votes
2 answers
37 views

Password protect all sites (folders) under a folder

I have a server where I have a few tester sites in a folder. Hence all of those tester sites are in mysites folder. What I am hoping is that no one accessing my site is able to go to www.example.com/...
user219492's user avatar
0 votes
1 answer
280 views

ppolicy not enforced on OpenLDAP Client when using 'passwd'

The issue: Password Policy is not being enforced when I change the password using the 'passwd' command. It is enforced when I use the 'ldappaswd' command. But the OpenLDAP password still changes using ...
Ram Krishnan's user avatar
0 votes
1 answer
260 views

Linux custom NSS module, `_nss_SERVICE_getspnam_r` is called but `_nss_SERVICE_getpwnam_r` is not

I'm creating a custom NSS module. I managed to make it work on my local Redhat 7.3 box, configured nsswitch.conf correctly passwd: files SERVICE shadow: files SERVICE and confirmed that both ...
terencezl's user avatar
3 votes
1 answer
111 views

Spamassasin user - disable shell

I recently discovered that spamassasin added the following line to my passwd file: debian-spamd:x:115:122::/var/lib/spamassassin:/bin/sh. Why does spamassasin need shell access? Is it safe to disable ...
koseduhemak's user avatar
0 votes
2 answers
8k views

passwd doesn't work: Authentication token manipulation error

I have an strange problem... I cannot login to my Ubuntu using my own private key. Fortunately I have a password and it works but I cannot change my password. I can su user to root. See the following ...
mahyard's user avatar
  • 237
2 votes
2 answers
2k views

try to lock password but have no entry in /etc/shadow

Goal: Maintaining a former colleagues system, I want to lock all password logins in order to only allow ssh key based logins. Infos: The CentOS 6.5 system does not offer any network based ...
MarkHelms's user avatar
  • 181
0 votes
1 answer
3k views

passwd: Module is unknown when creating CentOS 7 domU on Jessie

DomU created by xen-tools using the command below: sudo xen-create-image --hostname=test --dhcp --memory=256mb --install-method=rinse --dist=centos-7 --arch=amd64 --lvm=VM --bridge=xenbr-48 --...
Karol Jędrzejczyk's user avatar
1 vote
2 answers
45 views

Cent OS unable to login after passwd

I tried to change password of centos root using passwd command. But accidentally I pressed enter key without entering any password. Now I can't login to server, neither using old password nor without ...
crashNburn's user avatar
2 votes
2 answers
2k views

Changing root password via script fails but reports success

I have a project which requires me to make a script / sequence of commands to change the root password on a CentOS 7 installation. I can assume the user that will be executing the script is already ...
example6's user avatar
13 votes
3 answers
80k views

How can I set the root password in a docker container from a script?

I have a script that runs on the host and creates/starts/stops a docker container. I'd like the script to change the password of the root user within the container. Since the container is an ssh ...
Chris's user avatar
  • 173
2 votes
2 answers
84 views

centos 7, sudoers rights limits

i have a task to separate duties of users on a group of servers, the system is centos 7 there is a user that i want to give every right on the server except for the right to change root and other ...
Ghaith Mansour's user avatar
3 votes
2 answers
3k views

Is it safe to manually edit /etc/passwd?

I need to change the "real name" of a user (not the username). For example if I have: testuser:x:1001:1001:Max Mustermann,,,:/home/testuser:/bin/bash And I want it to be: testuser:x:1001:1001:Max ...
Richard Boonen's user avatar
-2 votes
1 answer
2k views

linux redhat + login prompt keep getting again and again [duplicate]

we installed new server redhat version - 6.7 from kick start, after installation complete successfully we get the login prompt but I am unable to login locally on my redhat linux 6.7 server. The ...
dandan's user avatar
  • 1,071
0 votes
1 answer
662 views

Cache FreeIPA passwords to /etc/passwd

I have setup freeIPA/Kerberos authentication for my domain and it works well. I have a service that does not support server-based auth, only local auth via /etc/passwd. Is there a method to cache ...
Vince's user avatar
  • 371
0 votes
1 answer
1k views

Cannot run passwd through plink

This is my situation. I am trying to run the following command in WINDOWS 7 plink.exe user@ip.add.re.ss -pw password "passwd user" to change the password for a particular user. it keeps giving ...
Misbah Bin Mashkoor's user avatar
0 votes
1 answer
12k views

Can't edit files /etc/passwd and /etc/shadow

I have some issues with files /etc/passwd and /etc/shadow. Both of them are without permissions: ---------- 1 root root 1357 Aug 5 11:30 passwd ---------- 1 root shadow 1175 Aug 5 11:30 shadow ...
Martin Sudolsky's user avatar
-3 votes
1 answer
48 views

SSH with user root from 2 different stations both running passwd [closed]

A few days ago, we were connected to a xenserver through ssh (user root) from 2 different stations. And we tried passwd, and we changed the root password to 2 different passwords simultanously. And we ...
SonOfSun's user avatar
1 vote
0 answers
247 views

Cygwin: Obtain comment field from Active Directory with mkpasswd

Running cygwin on W7x64. Since a generated /etc/passwd file is static, it has to be performed occasionally when new employees are hired. It polls Windows AD, and writes the passwd file. In the past, ...
tralston's user avatar
  • 165
4 votes
2 answers
6k views

Command 'getent'

Part 1 Is getent supposed to be an executable? In my zsh setup, I can see getent is actually defined as a function $ which getent getent () { if [[ $2 = <-> ]] then grep ":$...
Anthony Kong's user avatar
  • 3,198
0 votes
1 answer
2k views

Resetting root password on Slackware (software RAID)

I'm trying to reset password to root account on Slackware server (with Intel Atom on Intel motherboard and two HDDs). There is software RAID set up (devices mounted during boot: md0 - /, md1 - /usr, ...
Jan Kastor's user avatar
1 vote
1 answer
201 views

How can I allow users to reset their Linux user passwords from a web interface? [closed]

I am running SAS Visual Analytics on a cluster for my department. I want the users to be able to set and reset their own password for their user account. Users and Passwords for the application are ...
KinsDotNet's user avatar
2 votes
1 answer
2k views

Purpose of the noaccess user in UNIX?

Can someone point me to a document or explain to me the utility or application of the noaccess user? It would seem interchangeable with any other user I might create. What is it's purpose of being ...
700 Software's user avatar
  • 2,213
1 vote
1 answer
3k views

How to enable Dovecot virtual users to change their password using passwd-file?

I am running Dovecot with several virtual users in passwd-file: http://wiki2.dovecot.org/AuthDatabase/PasswdFile . The file is /etc/dovecot/userdb . How can I enable the users to change their password?...
stf's user avatar
  • 123
1 vote
2 answers
17k views

sshd on a minimal Linux: "Failed password for invalid user root"

I'm trying to start SSH server on a minimal Fedora installation. And I mean really minimal: one that is produced by diskimage-builder ramdisk builder. It does not even have users (absent /etc/passwd ...
Divius's user avatar
  • 11
0 votes
0 answers
442 views

Dovecot Virtual domain/passwd-file login issue

I used this walk through http://wiki2.dovecot.org/HowTo/VirtualUserFlatFilesPostfix but there is still an issue not allowing me to login. /var/log/dovecot.log Jan 13 10:25:49 imap-login: Info: ...
chrisw9808's user avatar
1 vote
0 answers
981 views

can't change NIS account password from Centos-7 client “NIS server Centos-6”

I'm trying to change password for a NIS account from a Centos-7.0.1406 client and the server is Centos-6.6 it seems that passwd command don't ask me neither to change password nor ask me for old ...
Eslam's user avatar
  • 239
1 vote
1 answer
8k views

linux + cant access as user + could not open session

in my Linux machine - red-hat I successfully to login to different users as the following su - userC [machine@Linux ~]$ pwd [machine@Linux ~]$ /Users/userC but only in one user I get the following ...
maihabunash's user avatar
1 vote
1 answer
240 views

Does password aging affect locked accounts in Linux?

I have a requirement to change the maxdays setting of several Linux accounts to 365 and most of the accounts are locked. Does password aging settings affect these accounts? My concern is that I'll ...
Chris M.'s user avatar
-1 votes
1 answer
506 views

Shared /home with NFS: chown /home/userdir to a user that doesn't exist on the server

Let's say I have a NFS /home on my server that gets mounted on boot by clients (EDIT: on their own machines -- locally), in order to have a common /home for my clients, this way they automatically ...
Aroll605's user avatar
  • 151
0 votes
1 answer
113 views

Tool to lint passwd and group files

Recently I fixed a problem caused by duplicate entries in /etc/passwd on Linux. To catch it sooner next time I plan to do some basic sanity checks on the file each day, one of which will be that no ...
Ed Avis's user avatar
  • 101
2 votes
2 answers
8k views

passwd: Authentication token manipulation error

I am running a Ubuntu 12 machine, and have recently been working to secure it. I made all the changes from this guide. I am not running a Linode, but I used these as a starting point for setting up ...
The_Anomaly's user avatar
11 votes
5 answers
39k views

/etc/passwd shows user in a group, but /etc/group does not

I want to verify that the user account filesender_1 is a member of the group valid_senders. When I look at /etc/group, filesender_1 is not there: valid_senders:x:12345:production_1 I read this as "...
Thomas L Holaday's user avatar
1 vote
1 answer
108 views

how to avoid console network error (host is not communicating) when passwd or update?

I am trying to change the root password and update ssl package but the commands passwd or yum update {package} make the console loops endlessly. I have set the buffer to 600 sec. which I am reaching ...
Tritof's user avatar
  • 159