>_ IzzyLab

Topic breakdown

File permissions in Linux are three groups of three bits each: for the owner, the group, and others. Within each group are the read (r), write (w), and execute (x) bits, which add up into a single octal digit: r=4, w=2, x=1. So 7 is rwx (4+2+1), and 5 is r-x (4+1). Permissions are changed with chmod, and you can view the current ones with ls -l or stat. For a script to be runnable, it needs the x bit.

What's checked

  1. file /root/deploy.sh is in place
  2. permissions on /root/deploy.sh are 755

What it looks like