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.

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

116 questions
4
votes
2 answers

passwd asks for new password 4 times

I just had a strange experience. I created a new user on a server (Ubuntu 10.04, Plesk installed) and then wanted to set the password. Look at that output: # useradd dev # passwd dev Enter new password: Retype new password: Geben Sie ein neues…
didi_X8
  • 147
  • 1
  • 6
4
votes
1 answer

Can I put /etc/passwd, /etc/group and /etc/shadow on an NFS share?

OK, this may be a dumb question but I'm wondering if I can export /etc/passwd, /etc/group and /etc/shadow from an NFS server and mount those files over the local ones on the client machine. The goal is a simple centrally managed list of users and…
Nick
  • 4,503
  • 29
  • 69
  • 97
4
votes
3 answers

Can I force the passwd command to use MD5 hash (and not crypt)?

How can I force the passwd command to use MD5 hash and not to use crypt? I need to get the passwd command to talk to the ldap server (which it does) and use MD5 when I change passwords for the users.
MyOnlyEye
  • 135
  • 1
  • 9
3
votes
4 answers

Restoring /etc/passwd from file

I know they say "given root access, everyone will screw up their machine eventually", and I'm discovering how true that is. In an incident of extreme fatfingering, I've managed to wipe out my /etc/passwd file. Now, I have a current backup of it, but…
DWilliams
  • 953
  • 2
  • 20
  • 29
3
votes
1 answer

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 shell access (f.e. set shell to…
koseduhemak
  • 271
  • 3
  • 8
3
votes
2 answers

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 Müller,,,:/home/testuser:/bin/bash Can I just edit…
Richard Boonen
  • 103
  • 1
  • 6
3
votes
1 answer

ProFTPD accounts

I have inherited a server where ProFTPD is installed. I can login to it with account joe_test and its password - but the problem is there is no such user as joe_test in /etc/passwd. If I do ls -la of /var/ftp then /var/ftp/joe_test is: drwxr-xr-x …
Mark Zakred
  • 73
  • 3
  • 8
3
votes
1 answer

Changing pam.d/system_auth?

I'm trying to change pam.d/system_auth to help with password complexity as required by an audit. I'm not familiar with PAM, but the system_auth file says This file is auto generated User changes will be destroyed the next time authconfig is…
Evan
  • 177
  • 2
  • 8
3
votes
1 answer

Importing users from passwd

I'm migrating from one Linux server to another with a very similar configuration. Both have Plesk, which has automatically migrated much of the data. However, there are a number of FTP users created outside of Plesk which I now need to move. I have…
handsofaten
  • 337
  • 1
  • 3
  • 6
3
votes
2 answers

Password rules for yppasswd

I have a NIS master-slave setup and I would like to improve the password rules/complexity for it. Seems like if I introduce new rules to the NIS Master they are applicable only from there. What I mean: I want minimal password length of 9 characters.…
grs
  • 2,235
  • 6
  • 28
  • 36
2
votes
1 answer

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 authentication process PAM should use all of this…
erunima
  • 31
  • 3
2
votes
1 answer

Passwd via PAM only work for LDAP

Now I'v got a working setup using PAM+LDAP over SSL but I can only passwd users in the ldap tree, any idea about how to be able to passwd every users ? Here are some conf files : /etc/pam.d/common-password : password optional pam_unix.so…
Henry-Nicolas Tourneur
2
votes
2 answers

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 authentication features (no Kerberos, ldap, gssapi etc.,…
MarkHelms
  • 181
  • 5
  • 16
2
votes
2 answers

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 root. Currently, I'm using the following, and…
example6
  • 33
  • 5
2
votes
2 answers

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 users passwords. adding the user to the group wheel…