chmod To set a file, so it is public for reading, writing, and executing, the command is: chmod u=rwx,g=rwx,o=rwx test.txt