• NewNewAugustEast@lemmy.zip
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    21 hours ago

    You want the user to put their age somewhere?

    Have a simple script that asks for a number and echos it into a file called “age”. Done.

    And they can only run the script if they want to.

    • drath@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      7 hours ago
      $ cat /home/$USER/isUserUnderage.txt
      no
      $ ll /home/$USER/isUserUnderage.txt
      -rw-r--r-- 1 root root
      

      Done. Now please let me through, mr. Caflifornia Immigration Officer