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

learn more… | top users | synonyms

13
votes
3answers
685 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 ...
9
votes
1answer
9k views

How to generate a /etc/shadow compatible password for Ubuntu 10.04?

How are passwords generated that are used by Ubuntu 10.04? I know that they use SHA 512 as hashing algorithm, but I figure that there is some sort of salting done. I need to generate such a password ...
7
votes
1answer
350 views

Keeping configs, user ids, groups and passwords consistent across Linux-servers

I have a couple of Debian servers with only little users and services. The applications are kept as far as possible in their own directories where they can be backed-up or synced easily. But I have ...
4
votes
1answer
229 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 ...
4
votes
1answer
204 views

Using UTF-8 in the /etc/passwd file. Any known issues?

I was recently asked to modify the GECOS field in the passwd file for a certain user so that it will contain his name with his original accented characters. My first was reaction was "sure, why not?" ...
4
votes
1answer
1k views

Unable to delete a user from a Linux CentOS 6.3 machine, what can be done?

When I try deleting my user (from a root shell) it says userdel: cannot remove entry 'itaig' from /etc/passwd The user isn't even displayed on /etc/passwd. [root@ab2c1 ~]# su - itaig su: warning: ...
3
votes
3answers
2k views

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.
3
votes
1answer
69 views

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 ...
3
votes
4answers
1k views

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 ...
3
votes
2answers
848 views

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 ...
2
votes
4answers
999 views

Temporary changes to /etc/passwd or /etc/group - how-to

I want to temporarily modify /etc/passwd and/or /etc/group to "remove" a user/group without deleting the line. Is there a way to do that? ...
2
votes
2answers
2k views

ssh root access denied after changing shell

after i tried to change my server shell, i cannot login as root anymore. First, i installed the z-shell (zsh) as root and then i wanted to change it to my default shell. Therefore i used "chsh". My ...
2
votes
1answer
527 views

Why is the displayed name in bash different from the one in /etc/passwd?

I remotely SSH login as root (using PUTTY), The bash shell prompt becomes: [root@yukiko /]# When I entered: getent passwd The first line I see is this one: root:x:0:0:root:/root:/bin/bash ...
2
votes
2answers
375 views

Is there a shell to change password when connecting over SSH?

This is a pretty odd question, but I'd like my users to be able to change their passwords for my FTPS server, which is using local accounts. Currently all these users have /bin/false set as shell, but ...
2
votes
1answer
540 views

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 : ...
2
votes
1answer
661 views

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 ...
2
votes
1answer
149 views

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 ...
2
votes
1answer
4k views

How to change the password of a (vsftpd) FTP account when 'passwd' isnt working

Kinda newbie here, I have a server which uses vsftpd. I changed the password of user 'aa' from the root account with 'passwd aa', which changed the SSH password for user 'aa', but not for his FTP ...
2
votes
1answer
544 views

How to change UNIX user password using passwd if user is stored in a MySQL database?

I'm trying to setup libnss-mysql and libpam-mysql. So far everything has been working. I can use id to get information about the users stored in my databas. getent passwd is working, as well. However, ...
1
vote
6answers
3k views

Compare two user lists in bash

I have two different user lists. I need to compare the users and make sure they exist in both files. One is the passwd file, and another is a flat file for that has the usernames and other ...
1
vote
1answer
161 views

Alias Entry in /etc/passwd file

On my desktop machine, my account is david, but on my servers it's dweintra. This means whenever I use scp I have to do this: $ scp some.file dweintra@app05: and $ ssh dweinta@app05 I'd like to ...
1
vote
2answers
155 views

Accidentally messed up /etc/passwd

I accidentally modified the default shell program /bin/bash for my user in /etc/passwd. I didn't set a root password in my ubuntu server installation. Now I can't even login. Is there anything I can ...
1
vote
2answers
162 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 ...
1
vote
2answers
166 views

Password accepted by passwd but not su

The passwords on one of my CentOS boxes is no longer accepted by ssh or su for the user clipuser but that same password is accepted by passwd (after su'ing from root to the user). /var/log/secure ...
1
vote
1answer
773 views

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 ...
1
vote
1answer
4k views

RtKit on my ubuntu?

Hi I just updated my ubuntu karmic Koala to Lucid Lynx and found sth strange on my file /etc/passwd. rtkit:x:120:130:RealtimeKit,,,:/proc:/bin/false Can someone tell me what it is?
1
vote
1answer
349 views

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 ...
1
vote
4answers
2k views

How to change passwd constraints

I was today trying to change my password on our lab servers (SUSE) with passwd and got the error message that my password was "based on a dictionary word", which it really wasn't. I'd like to change ...
1
vote
1answer
48 views

CentOS Password Change

I am looking for changing my centos password by using passwd with encryption. echo "Password1" | passwd --stdin username But if I'm using with above method, user will see what my password is. Does ...
1
vote
1answer
300 views

Changing eDirectory Password From Linux Machine

I have Configured LDAP Authentication for my Linux Machines. The LDAP Server is Novell eDirectory. The LDAP Users are able to login into the machine. But when i am issuing passwd command it is asking ...
1
vote
1answer
382 views

passwd ldap request to ActiveDirectory fails on half of 2500 users

We just setup ActiveDirectory in my company and imported all linux users and groups. On the linux client: (configured to ask ldap in nsswitch.conf): If i do a common ldapsearch to the AD ldap ...
1
vote
1answer
44 views

I would like to allow login to a box with no password for a particular user how do I do that?

I would like a userid to allow logging into a box without a password. I am not sure how to accomplish this as changing the password to nothing is not allowed. Thanks
1
vote
1answer
572 views

How do I persuade Dovecot and postfix to use multiple passwd files for user accounts and passwords?

I'm setting up Dovecot and postfix for the first time, and I'm a little stuck. I'm sharing a virtual server with a few other people and I want a separate user account file (passwd file) for each ...
1
vote
2answers
121 views

Diskless login with Linux/OpenSolaris

Is it possible to enable a Linux or OpenSolaris based server to process standard unix login requests without spinning up the hard drive holding the root partition? I have a Nexenta-based (1) server ...
1
vote
2answers
379 views

How to add root user in nis passwd file?

One of the sys admins accidentally moved aside /etc/passwd... doh! Restoring the file from backup doesn't work... it errors out because root user does not exist. I've got NIS running at this site and ...
1
vote
2answers
709 views

debian: creating user with password with one command

I need to create a user with password in a shell script, but passwd wants me to enter the password twice. Is there a way to create a user with password in one command?
1
vote
1answer
906 views

sudo: uid 1000 does not exist in the passwd file!

How can i restore my /etc/passwd file? I have access to it, but it's currently empty and I added this to the file, but I can't even SSH to the machine, I'm getting a "connection refused". ...
1
vote
0answers
54 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 ...
1
vote
0answers
124 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 ...
0
votes
3answers
121 views

I edited /etc/passwd and have strange problems

I manually edited /etc/passwd for non-root user - yeah, I know this is bad. Unfortunately I saw this (SSH failing authentication after manual edit of /etc/passwd and /etc/shadow) very late. I already ...
0
votes
3answers
160 views

What is the affect of executing “sudo passwd” on a system without a root account?

I've just used "sudo passwd" instead of "passwd" on a system by mistake and I'm wondering what the affect of this would be. There are two users on the system, my user account which has sudo privileges ...
0
votes
2answers
78 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 ...
0
votes
2answers
584 views

Locked only user account on Ubuntu 12.04. Can't login

I have an Ubuntu 12.04 server on which I've locked my only account, logged out, and now I cannot log in . jiechao@ubuntu-Jiechao:~$ sudo passwd -l jiechao passwd: password expiry information ...
0
votes
3answers
749 views

different hash length in /etc/shadow

Here is the output of /etc/shadow for two different users stored on the system: usr1:$1$zgKwt6aQ$gXxsMLgcxa/u6rmq5QseP.:14307:0:99999:7::: ...
0
votes
1answer
36 views

Wrong directory in passwd file. How to edit properly?

I have the following value under /etc/passwd file: web3:x:5006:5006::/var/www/clients/client2/web3:/bin/false Now, the correct value should be: ...
0
votes
2answers
980 views

Telnet without passwords

Back in the days of Redhat 9 I set up networks using dumb terminals that used telnet to log in to the server. And simply by deleting the 'X' in /etc/passwd for the user, the user could log in with a ...
0
votes
2answers
198 views

Solaris 11 nsswitch.conf messed up, need to edit it from an alternate kernel

Ok, so I was editing the name-service/switch service and messed up my nsswitch.conf, I overwrote the "passwd = files" with "passwd = filesasdf" so now I can't auth to the server when I boot that ...
0
votes
2answers
234 views

Query on editing /etc/passwd file

Can i open /etc/passwd file using an editor like vi and then add a comment into this file. If i am able to do that, will the change be persistent after reboot. If it is not the right way to edit the ...
0
votes
1answer
28 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 ...
0
votes
1answer
58 views

How to tell passwd to use salted passwords?

I am hunting the web on how to change passwords of an existing user using a salted hash. I found that way with adding a non-existing user: ...