Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [passwd-file]

Questions about the file `/etc/passwd`. Contents, manipulation and recovery.

0
votes
0answers
78 views

How can I prevent unprivileged users from accessing /etc/passwd, /etc/group, etc

As the title suggests, I have a multi user environment, and in the interest of protecting privacy, I'd really like to be able to restrict users access to some of these publicly viewable files that ...
7
votes
1answer
367 views

Trusting non human users

When looking into /etc/passwd and /etc/shadow I found many non human users. I read a bit about it and know what they do (as a group, though specifically I see many I have no clue about). All of them (...
0
votes
3answers
522 views

delete all users from group

In ubuntu, how do you delete all users from a group using the bash command line? The group is called grp1 and it's at /etc/group It don't care whether the actual group remains or not. I just want the ...
1
vote
0answers
19 views

Why does Ubuntu include accounts for packages that aren't installed?

Why does Ubuntu include accounts for packages that aren't installed (such as gnats, irc,...)? Seems the accounts should be created as needed when the packages are installed, not sitting there in the ...
0
votes
1answer
82 views

default username gone only can login as guest (16.04)

Today I did a stupid thing. I used sudo gedit /etc/passwd changed x:1000:1000:kai:/home/linuxidc:/bin/bash this from 1000 to 0. Then after I restart only can login as a guest. No default username ...
1
vote
0answers
121 views

Is it possible to place a file in /target before install starts, using a preseed?

I'm using a preseed to install my system. However, I'd like to place existing passwd and group files in /target/etc, after partitioning, but before the install starts. Any ideas?
0
votes
0answers
232 views

Safely edit fstab and passwd files

I remember hearing that there were wrapper tools to help editing /etc/fstab and /etc/passwd to do basic syntax checking (eg a newline at the end of the file). My google-fu isn't turning them up... ...
26
votes
6answers
6k views

Personal computer hacked: How do I block this user from logging in again? How do I find out how they are logging in?

I am 99.9% sure that my system on my personal computer has been infiltrated. Allow me to first give my reasoning so the situation will be clear: Rough timeline of suspicious activity and subsequent ...
0
votes
1answer
91 views

Ubuntu 14.04 not booting on main user after name change

So I wanted to change the name of the home folder, and did so using the mv command: mv /home/oldname /home/newname. It worked fine. No errors appeared until I tried accessing the home folder. It said ...
0
votes
1answer
347 views

How to get the details of User(Computer)name and the Password?

Where the details of Password and Username/Computer Name being Stored in Ubuntu 14.04? How to Change the Password and the Username? Ways to recover the forgotten Password and the Username without ...
1
vote
0answers
126 views

Delete a duplicate username?

My ubuntu login screen shows two accounts with my username. I am only able to log into one of them, and I have no idea where the other one came from or what the password is. My /etc/passwd file shows ...
36
votes
2answers
5k views

Why is everybody so concerned about etc/passwd?

Here is the content of my vagrant machine of this particular file: root:x:0:0:root:/root:/bin/bash daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin bin:x:2:2:bin:/bin:/usr/sbin/nologin sys:x:3:3:sys:/...
0
votes
2answers
542 views

how to delete a user from ubuntu with the same uid of myuser

There is an option to have more than one user on your linux box and use them for different task. So, basically, I used it sometime to have different instance of application for different projects. For ...
1
vote
1answer
320 views

Getting Full User Name Wrong

Why when I issue a command like: awk -F: -v U="$LOGNAME" '$1==U{print $5}' /etc/passwd or grep $USER /etc/passwd | awk 'BEGIN { FS=":" } { print $5 }' is displayed Diogo Saraiva,,, instead of ...
2
votes
0answers
10k views

sudo useradd: cannot lock /etc/passwd; try again later (no lock files)

When doing this on Ubuntu server 14.04: camilstaps@localhost:~$ sudo useradd --home-dir /var/www/xxx.camilstaps.nl/ --no-create-home --root /var/www/xxx.camilstaps.nl/ --shell /bin/sh xxx I'm ...
0
votes
1answer
968 views

etc/passwd cannot be found [closed]

I can't find the etc/passwd file on my Ubuntu computer. I know I shouldn't try to mess with it now, but when I was I couldn't find it. Yet I can still access my computer. Did they hide it in the 14....
2
votes
1answer
1k views

Postfix+Dovecot Unix user authentication

I want to set up a mailserver with postfix+dovecot+roundcubemail. And I don't want virtual users. Is it possible to use Unix users and somehow just include the /etc/passwd file for authentication/...
3
votes
3answers
15k views

How to recover a deleted /etc/passwd file? [duplicate]

I deleted the /etc/passwd file and cannot login now. I don't know the root password and tried lots of passwords, but none of them worked. How can I fix this?
0
votes
1answer
558 views

Is this shadow file normal or hacked?

I may have been hacked. This is most of my /etc/shadow file. I can't understand why so may items have a password hash of "x". Does "x" have a special meaning? Or is it really a hashed password, ...
0
votes
1answer
212 views

passwd file deleted in ubuntu

i was recently making some researches about the passwd file, and out of curiosity i deleted it, after i deleted it my computer froze, and after a hard reboot it doesnt boot. i found a solution on this ...
2
votes
3answers
7k views

How to change my UID back in passwd file?

My OS is Ubuntu 12.10, and my account is called acgtyrant, and its UID is 1000. For the need of researching, I changed my UID from 1000 to 1010 in /etc/passwd, and then I found my files' master ...
2
votes
3answers
1k views

Locked out after using usermod

After trying to change my password with usermod -p <new password> <username> ( which seemed to work but didn't give any messages ) I found I could not log in using either my old or new ...
9
votes
3answers
2k views

Why is there a shell given to user for PostgreSQL?

cat /etc/passwd |grep postgre postgres:x:115:127:PostgreSQL administrator,,,:/var/lib/postgresql:/bin/bash apt-cache show postgresql Package: postgresql Priority: optional Section: database ...
5
votes
1answer
7k views

Unable to change user password in Ubuntu 12.10

The User Password is not changing for some reason. In the terminal it says password updated successfully, $ sudo passwd [sudo] password for zaigham: Enter new UNIX password: Retype new UNIX ...
2
votes
1answer
729 views

Ubuntu User Accounts messed up

I need to fix Ubuntu Accounts but somehow don't really see how it could be done. The problem is: files /etc/passwd and /etc/hostname and /etc/hosts where changed. /etc/passwd After John:x:1000:...
1
vote
0answers
274 views

Cycles through black screen on login after changing password [duplicate]

On my laptop, I forgot the password to my Ubuntu partition, so I logged into the root command shell on the recovery start up option in GRUB so that I could change the password. On my first attempt to ...
2
votes
1answer
5k views

Do I need user 1000, and can I replace it?

On my computer running Mythbuntu, I'm having a problem where some important processes are being run by a user called 1000. $ ps -aux | grep myth Warning: bad ps syntax, perhaps a bogus '-'? See http:...
2
votes
1answer
33k views

Why do I keep getting “invalid password” when trying to log in?

I have read and tried everything that I can find and I am still having issues logging in. I have Ubuntu 11.10 that I have put on my machine a couple of weeks ago and I still cannot log in. It says ...
4
votes
1answer
28k views

useradd: cannot lock /etc/passwd; try again later

Trying to add a user: useradd -c "test" -d /home/bbbbbbbb -e "01-jan-2013" -f 10 -g admin -p secretfgjdhdgd -s /bin/bash -u 123456 blobblob but getting: useradd: cannot lock /etc/passwd; try ...
20
votes
5answers
17k views

I deleted the “/etc/passwd” file and cannot log in

I was trying to change my username and also my home directory (/home/username) and my system started to crash. I deleted the passwd file but I had a backup named passwd_bkp. I tried to rename this ...
5
votes
1answer
8k views

Where is the username and password stored

Just for my curiosity ,where is the username and associated password is stored in ubuntu? And how it is verified at the login time?
6
votes
1answer
4k views

Replacement for non-interactive “chpasswd -e”?

On older Debian machines one could issue something like: echo '<username>:*'|chpasswd -e in order to change the password field of the user (<username>) to *. Now I am aware of passwd -...
1
vote
1answer
1k views

different mailbox formats for special dovecot/system users

On a server me and a friend set up we're currently using mbox mailbox format. (Think I should mention that my friend set up the mail part of the server and I yet don't know too much about mailserver ...
8
votes
3answers
23k views

How to add user without useradd command?

Is it possible to add a user in ubuntu linux without useradd command I think its possible by adding the entries in /etc/passwd and /etc/shadow but i don't know the exact steps to do it and the user ...