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
-1 votes
2 answers
58 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 ?
user avatar
1 vote
1 answer
234 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 ...
user avatar
  • 67
0 votes
1 answer
373 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 ...
user avatar
  • 125
0 votes
1 answer
113 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 ...
user avatar
  • 19
10 votes
2 answers
2k 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 ...
user avatar
  • 221
0 votes
1 answer
159 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) ...
user avatar
0 votes
1 answer
103 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 ...
user avatar
1 vote
1 answer
319 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 ...
user avatar
  • 21
0 votes
2 answers
1k 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 ...
user avatar
  • 237
1 vote
2 answers
551 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 ...
user avatar
  • 151
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 ...
user avatar
  • 561
0 votes
2 answers
36 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/...
user avatar
0 votes
1 answer
205 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 ...
user avatar
0 votes
1 answer
214 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 ...
user avatar
3 votes
1 answer
92 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 ...
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 ...
user avatar
  • 217
1 vote
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 ...
user avatar
  • 171
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 --...
user avatar
1 vote
2 answers
41 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 ...
user avatar
2 votes
2 answers
1k 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 ...
user avatar
13 votes
3 answers
74k 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 ...
user avatar
  • 173
2 votes
2 answers
71 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 ...
user avatar
2 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 ...
user avatar
-2 votes
1 answer
1k 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 ...
user avatar
  • 1,001
0 votes
1 answer
506 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 ...
user avatar
  • 371
0 votes
1 answer
898 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 ...
user avatar
0 votes
1 answer
10k 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 ...
user avatar
-3 votes
1 answer
44 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 ...
user avatar
1 vote
0 answers
215 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, ...
user avatar
  • 165
3 votes
2 answers
5k 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 ":$...
user avatar
  • 2,906
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, ...
user avatar
1 vote
1 answer
171 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 ...
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 ...
user avatar
  • 2,163
1 vote
1 answer
2k 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?...
user avatar
  • 123
1 vote
2 answers
16k 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 ...
user avatar
  • 11
0 votes
0 answers
424 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: ...
user avatar
1 vote
0 answers
904 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 ...
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 ...
user avatar
1 vote
1 answer
233 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 ...
user avatar
-1 votes
1 answer
401 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 ...
user avatar
  • 151
0 votes
1 answer
102 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 ...
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 ...
user avatar
10 votes
5 answers
35k 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 "...
user avatar
1 vote
1 answer
107 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 ...
user avatar
  • 159
31 votes
3 answers
39k views

Copying Linux users and passwords to a new server

I am migrating over a server to new hardware. A part of the system will be rebuild. What files and directories are needed to copy so that usernames, passwords, groups, file ownership and file ...
user avatar
7 votes
1 answer
2k views

Linux: Lost internet while using vipw. How can I unlock the file?

I was editing the passwd file with vipw, when I briefly lost internet connectivity. When I logged back in and tried to edit again I get the error: vipw: Couldn't lock file: Interrupted system call ...
user avatar
-1 votes
3 answers
4k views

What is default shell for users in /etc/passwd for Solaris 11?

For a Solaris 11 Server Config Review that I am doing, I have following lines in my /etc/passwd file: root:x:0:0:Super-User:/root:/usr/bin/bash daemon:x:1:1::/: bin:x:2:2::/usr/bin: sys:x:3:3::/: ...
user avatar
5 votes
2 answers
21k views

What is the purpose of openssl passwd

I'm reading "Reliably Deploying Rails Applications" Regarding defining users to be set up by Chef, it says: “Next we need to define users, inside data_bags/users copy the file deploy.json.example to ...
user avatar
8 votes
5 answers
16k views

Change local password as root after configuring for MS-AD Kerberos+LDAP

I have followed this excellent post to configure Kerberos + LDAP: http://koo.fi/blog/2013/01/06/ubuntu-12-04-active-directory-authentication/ However, there are some local users used for services. ...
user avatar
2 votes
1 answer
731 views

OpenLDAP on ArchLinux users cannot change passwd

I started an office and i NEED centralized login and home directories to work. Since all workstations are going to run Arch and problems with different LDAP versions I finally concluded the LDAP ...
user avatar
  • 31