Questions tagged [etcpasswd]

A file found on UNIX-based systems containing valuable information about the system's user accounts.

18 questions
28
votes
3 answers

What's all those users in the /etc/passwd file?

The /etc/passwd is supposed to have a line for every user on the system. Amongst the common username and root there is a bunch of other users. Some examples: timidity:x:114:127:TiMidity++ MIDI sequencer…
Pithikos
  • 1,654
8
votes
1 answer

What are the commas in my /etc/passwd file?

There are weird commas after the real-name parameter of some lines in my /etc/passwd file. kye:x:1000:100:Kye,,,:/home/kye:/bin/bash What gives? Why are they there? Can I remove them?
Kye
  • 218
4
votes
1 answer

Instead /bin/bash as a shell, /bin/passwd in /etc/passwd file

I'm a Unix support Admin and I have a rare situation here. I have a recently adopted an environment that has a user with a /bin/passwd binary as a shell. xxx:x:1:100:xx:/home/xx:/bin/passwd Anyone have a clue about what is this for? Does this have…
2
votes
2 answers

chpasswd and passwd not updating /etc/shadow for root user

I'm having a weird problem, and I don't know if I've screwed something up or this is the way it's supposed to be and I never noticed.. Using passwd and chpasswd to change a users password works as expected, /etc/passwd is ignored and /etc/shadow is…
harleypig
  • 121
2
votes
1 answer

Is it safe to delete puppet user after uninstalling puppet and puppet-common?

In Debian I installed puppet with apt-get install puppet. Later I decided to uninstall it with apt-get purge puppet puppet-common. However I just noticed my /etc/passwd file still contains the line for puppet: puppet:x:107:115:Puppet configuration…
James
  • 123
2
votes
1 answer

How do I sort the "/etc/passwd" UIDs?

I have been banging my head on this little project the past few days and here is how it goes... I need to organize all the UIDs for multiple servers so all users have the same UID in their /etc/passwd. Obviously I am trying to find a proper script…
1
vote
1 answer

How to configure John The Ripper to use a static string as part of password discovery?

I recendly found an old microcontroller project of mine again and want to use it. Unfortunatly I forgot the password but know the middle of it. Further I get managed to free the shadow file. Is there a way to tell John The Ripper "hey, this string…
Rowolt
  • 11
1
vote
1 answer

Get login shell of a user not in /etc/passwd in linux

How do I get the default login shell of a specific user in linux. The user isn't necessarily in /etc/passwd. They may be logging in with NIS or LDAP or other pam method.
fakedrake
  • 993
0
votes
1 answer

bash prompt change after user default directory change

There is something I am not understanding. I have used the method found here about changing user default directory using vipw /etc/passwd However once I go into this file and change a user default dir setting their bash prompt changes to, from my…
0
votes
2 answers

Login as root in ubuntu server 14.04

I have a problem to login as root. My '/etc/passwd' file is like root:x:0:0:root:/root:which zsh .... .... I asked similar question at "How can I change the shell for to original one (/bin/bash) without root privilege?" and I the proposed…
0
votes
1 answer

Just ruined /etc/passwd is there anyway to fix

I'm a noob. I'm messing around on a raspberry pi trying to get the hang of things. I'm having a jolly time. I don't now how to use vim. I know that you need to hit i to insert text, but I know very little about the commands to get things…
0
votes
1 answer

Regain access to Ubuntu server

I did a stupid mistake on my Ubuntu virtual server (Amazon). I was messing around with /etc/passwd & /etc/group files and i am about to lock my self out of the server for good. I have a copy of the original passwd+group files but i cannot copy them…
ktsangop
  • 218
0
votes
1 answer

Cygwin /etc/passwd not honoring /bin/bash

How can I get Cygwin to honor the /etc/passwd file and make my default shell bash instead of sh? I presume it is controlled somehow by windows XP since I had an issue before with permissions and had to regenerate the /etc/passwd file after updating…
WilliamKF
  • 8,058
0
votes
0 answers

Is MD5 hash a security defect in linux?

I'm quite new to linux and Unix, and I was going through the /etc/shadow file and a user had its hash starting with $1$(MD5), but the user has a UID and GID >99 so I assume that the users security is not as important as say root. Would this be a…
user1267579
0
votes
1 answer

Recover "passwd" file in fedora

I was trying something and execute the below command sudo mv /etc/passwd /etc/passwd.bak Now I am getting the below error whenever I am trying to run sudo sudo: you do not exist in the passwd database I am not an expert in Linux stuff. Anyone has…
1
2