Each file has an owner, a group and permissions for owner, group and others, each made of read (4), write (2) and execute (1) bits; chmod 755 means owner rwx, group r-x, others r-x. Directories need execute permission to enter them.
chown changes owner and group; umask sets default permissions for new files; special bits include setuid and setgid (run with the file owner's or group's identity) and the sticky bit (only owners can delete files in a shared directory such as /tmp).
Use the least privilege necessary, and avoid running services as root.
ls -l script.sh # -rwxr-xr-x 1 user group ...
chmod 755 script.sh
chmod u+x script.sh
chown user:group file.txt