• dbx12@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    5 hours ago

    I already found another one!

    echo $USER prints my current user name. Once I do USER=root it shows im running as root. And I wasn’t even asked for my sudo password! :O :O :O

    • goferking (he/him)@lemmy.sdf.org
      link
      fedilink
      arrow-up
      0
      ·
      11 minutes ago

      You joke but at work our security office mass reset passwords because they saw a list of users in the pwd file. Even after others pointed out it was just a list of usernames not their credentials AND that it couldn’t be the actual credentials as we’re an AD shop

      They would definitely fall for that 😭

  • A_A@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    5 hours ago

    Layman explanation :
    “PS1” is the primary shell prompt.
    So, it is that which the linux operating system displays at the start of each line where you, the user, type a command.
    Obtaining “#” as the prompt would normally indicate to the user that the next command is to be accepted as having “root privileges” (thought it could do whatever to the system) … but in the above case, the “#” doesn’t mean that … nor anything other than : that prompt as been changed.

    • diaphragmwp@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 hours ago

      Ah yes, the linux operating system… It’s actually usually Linux distros that display lots of things with colors, other unixes are usually just the hostname with $ or #. Identifies the machine and isn’t distracting, just how I like it. Except for the part when I forget which dir I am in, of course.

    • A_A@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      5 hours ago

      So the joke here really is :
      “Hey we programmers are so bright since we do understand this while laymen do not.”

        • A_A@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          3 hours ago

          i accept your constructive criticism : your comment helps me a little understand myself.

      • FluorineBalloon@programming.dev
        link
        fedilink
        English
        arrow-up
        0
        ·
        3 hours ago

        It’s actually “this joke made me laugh but not a lot of people will understand, so I’m posting it in a space where like minded people hang out rather than confuse most people by posting it in a general humor community.”

        Not everything is an attack.

        • A_A@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          3 hours ago

          i value your opinion and it’s probably better on topic than mine since i am quite bitter about programming and software. Whatever the O.S. , linux , Microsoft or other, since many decades, it is still creating trouble … yet i use some of it right now. Nevermind, i should be happy that people can make jokes and have a good time.