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.

112 questions
31
votes
3 answers

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 permissions stay in intact? Ubuntu 12.04 LTS.
Mikko Ohtamaa
  • 1,364
  • 3
  • 17
  • 28
29
votes
2 answers

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 letters and numbers. It seems the maximum length is…
Alan42
  • 561
  • 4
  • 14
13
votes
3 answers

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 server, I tried: sshpass -p 'OLDPASS' ssh…
Chris
  • 173
  • 1
  • 2
  • 8
10
votes
5 answers

/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 "production_1 is the only member of the group…
Thomas L Holaday
  • 1,253
  • 4
  • 16
  • 19
10
votes
1 answer

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 myself. How can I do that? Is there a command line…
t6d
  • 507
  • 2
  • 5
  • 12
10
votes
2 answers

"+::::::" 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 question by one Jim from 2012: Anyone know what this…
dr0i
  • 231
  • 1
  • 11
9
votes
1 answer

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: cannot change directory to /home/itaig: No such file…
Itai Ganot
  • 10,424
  • 27
  • 88
  • 143
8
votes
5 answers

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. When I try to change the password for one of those,…
Daniel C. Lopez
  • 81
  • 1
  • 1
  • 3
7
votes
1 answer

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 vipw: /etc/passwd is unchanged I'm assuming this…
LoneWolfPR
  • 275
  • 1
  • 3
  • 17
7
votes
1 answer

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 account. I can't seem to find much other info on…
Flion
  • 181
  • 1
  • 1
  • 8
7
votes
1 answer

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 trouble to find an easy and reliable way to back…
Martin
  • 316
  • 2
  • 13
6
votes
2 answers

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?
Dimitri
  • 181
  • 1
  • 1
  • 5
5
votes
2 answers

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 deploy.json. Generate a password for your deploy…
joshua.paling
  • 1,115
  • 2
  • 10
  • 13
5
votes
1 answer

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?" but then I started getting paranoid that there…
danakim
  • 410
  • 2
  • 8
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,433
  • 29
  • 67
  • 95
1
2 3 4 5 6 7 8