Changing Directory/File Permission
Using Linux Command Line
1. To check your home directory's
permission:
cd
ls -l .
2. To set read/write/access permission
for you (owner of the file) and search permission for all (drwx--x--x) on your home
directory:
cd
chmod 711 .
3. To set read/write/execute permission
for you (owner of the file) and read permission for all (-rwxr--r--) on you file, go to
the directory where the file resides, and:
chmod 744 <file_name>
4. To add execute permission for you
(owner of the file) (-rwx------):
chmod +x <file_name> (or chmod
700 <file_name>)
5. To remove execute permission from you (owner of the file)
(-rw-------):
chmod -x <file_name> (or chmod
600 <file_name>)
<Top of the page>
|