Questions tagged [passwd-file]

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

8 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2 votes
0 answers
169 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 ...
Cristián Hernández's user avatar
1 vote
0 answers
38 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 ...
John's user avatar
  • 19
1 vote
0 answers
232 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?
ChuckYouFarlie's user avatar
1 vote
0 answers
1k 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... ...
Tom Hale's user avatar
  • 3,478
1 vote
0 answers
559 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 ...
pixelpax's user avatar
  • 111
0 votes
1 answer
108 views

I have another user than root with UID 0

I'm running a VPS which I have forogtten for quite a while. It was still running Ubuntu 18. I logged in today an saw that apparently the server was hacked, it was running a cryptominer and stuff. So I ...
Brettetete's user avatar
0 votes
0 answers
1k 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 ...
Jack_Hu's user avatar
  • 354
0 votes
2 answers
1k 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 ...
eSadr's user avatar
  • 101