Questions tagged [passwd-file]

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

Filter by
Sorted by
Tagged with
2 votes
0 answers
37 views

I (unintentionally) deleted (I guess) a passwd file

I was trying to install x11vnc to screen share my laptop through the terminal. While I was doing it, x11vnc asked me to add a password and so I did. Then I needed to open another terminal and it ...
user avatar
1 vote
1 answer
2k views

useradd: cannot open /etc/passwd

I am facing create a new user on my ubuntu 20.04 from GUI as well as terminal. I am getting following error: sahadeb@HP-Elite-Book:~$ sudo adduser user1 Adding user `user1' ... Adding new group `user1'...
user avatar
0 votes
1 answer
249 views

Cannot login to Ubuntu after changing home directory

I recently tried changing my home directory from /home/henry to /hdd/home/henry using viwp passwd. /hdd is a separate hard drive. I then rebooted the system but I cannot log in. I get the login ...
user avatar
  • 187
6 votes
1 answer
955 views

Who is debian-tor in my /etc/passwd file?

I have found this entry in /etc/passwd: debian-tor:x:117:123::/var/lib/tor:/bin/false But there is no /var/lib/tor folder. This is on a server not a desktop.
user avatar
  • 163
0 votes
1 answer
187 views

How to update field of /etc/passwd?

I want to update some contact information in /etc/passwd. It's the 5th field, shown as "user info" in the following example username : x : uid : gid : user info : home directory : shell It looks ...
user avatar
  • 133
0 votes
0 answers
852 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 ...
user avatar
  • 354
7 votes
1 answer
461 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 (...
user avatar
  • 95
0 votes
3 answers
2k 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 ...
user avatar
1 vote
0 answers
32 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 ...
user avatar
  • 19
0 votes
1 answer
100 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 ...
user avatar
1 vote
0 answers
188 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?
user avatar
1 vote
0 answers
763 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... ...
user avatar
  • 3,030
25 votes
6 answers
7k 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 ...
user avatar
0 votes
1 answer
112 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 ...
user avatar
0 votes
1 answer
561 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 ...
user avatar
1 vote
0 answers
454 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 ...
user avatar
  • 111
35 votes
2 answers
6k 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:/...
user avatar
  • 493
0 votes
2 answers
906 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 ...
user avatar
  • 101
1 vote
1 answer
676 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 ...
user avatar
5 votes
2 answers
15k 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 getting ...
user avatar
0 votes
1 answer
4k 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....
user avatar
2 votes
1 answer
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/...
user avatar
3 votes
3 answers
26k 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?
user avatar
  • 41
0 votes
1 answer
639 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, ...
user avatar
0 votes
1 answer
242 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 ...
user avatar
  • 1
3 votes
3 answers
10k 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 ...
user avatar
  • 185
2 votes
3 answers
2k 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 ...
user avatar
14 votes
3 answers
5k 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 ...
user avatar
  • 7,755
5 votes
1 answer
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 ...
user avatar
  • 307
3 votes
1 answer
759 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:...
user avatar
  • 187
1 vote
0 answers
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 ...
user avatar
  • 11
2 votes
1 answer
7k 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:...
user avatar
  • 6,449
2 votes
1 answer
38k 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 ...
user avatar
  • 21
4 votes
1 answer
31k 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 ...
user avatar
22 votes
5 answers
21k 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 ...
user avatar
6 votes
1 answer
10k views

Where is the username and password stored?

Just for my curiosity, where is the username and associated password stored in Ubuntu? And how it is verified at the login time?
user avatar
  • 17k
6 votes
1 answer
5k 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 -...
user avatar
  • 5,281
1 vote
1 answer
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 ...
user avatar
11 votes
3 answers
35k 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 ...
user avatar