Modifying Directory Permissions


Directories, marked by d, also have three types of file permissions: read, write, execute ; but they signal different behavior from file permissions. This permissions can be changed using the chown command.

user@host:~/directory$ ls -l
total 24
dr-xr-xr-x 2 user users 4096 Apr 4 12:42 list_files_on_dir
d-wx-wx-wx 2 user users 4096 Apr 4 12:21 modify_dir_content
d--------- 2 user users 4096 Apr 4 12:24 secret_directory