Create a new file with some script in it.
sudo chmod u+x filename
sudo chown user:group filename
Tags: Linux, permissions, script, ubuntu