• phx@lemmy.ca
    link
    fedilink
    arrow-up
    182
    arrow-down
    1
    ·
    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
      link
      fedilink
      arrow-up
      41
      ·
      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
        link
        fedilink
        arrow-up
        4
        ·
        1 year ago

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

      • aname@lemmy.one
        link
        fedilink
        arrow-up
        8
        ·
        1 year ago

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