To change the permissions of all of the files within that directory, type “chmod -R 755 directoryname” . (Replace “directoryname” with the actual name of the directory.) If you wish to only change permissions for one file, type “chmod 755 filename“. Type “exit” to log out of the SSH session when you are done.
chmod -R 755 barthezg
Change a File’s Ownership
To change the owner of a file or directory in Linux, type chown followed by the new owner and the file or directory to be changed. Use the following command to transfer ownership of a file named example.txt to the user rose.
`chown rose example.txt`
Leave a Reply