1181
submitted 1 year ago by coja@lemmy.ml to c/linux@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] phx@lemmy.ca 184 points 1 year ago
  • Login as a user.
  • Delete the user while still logged in
  • Run command

You should get a message "you don't exist, go away"

Not sure if that one is still around but I know one person who ran a script with "deluser $USER" and it ate root resulting in fun messages like that

[-] marcos@lemmy.world 41 points 1 year ago

My local deluser checks if the user has any active process. I tried deleting all of the data by hand, but the process is still assigned to a user name and id.

I'm not sure if this one can error still can be replicated.

[-] phx@lemmy.ca 4 points 1 year ago

Well you could manually edit /etc/password and shadow I suppose

[-] Hubi@feddit.de 28 points 1 year ago

I think I'll just take your word for it.

[-] lauha@lemmy.one 8 points 1 year ago

Easy to try in a virtual machine with snapshot. Or use a filesystem snapshot

this post was submitted on 20 Sep 2023
1181 points (98.7% liked)

Linux

48691 readers
1160 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS