Загрузка...

Project 41 - File Permissions and the Principle of Least Privilege in System Administration

Commands Used (in the order they appear in the video):

1. touch file1 (to create file)

2. ls (to confirm if newly created file is in our directory)

3. ll file1 (to check what the default file permissions are)

4. The first space -rw-r--r-- denotes the file type, most commonly directory (d) or a normal file (-), which is what this is. The next three spaces, -rw-r--r--, denotes what the owner of the file can do. The next set of three, -rw-r--r--, denotes what group members can do with the file. The last set of three, -rw-r--r-- denotes what all others can do with the file.

5. chmod u+x file1 -v (to give the owner of the file execute permissions)

6. ls -l file1 (to verify the permission changes)

7. chmod a=rwx file1 -v (to assign read, write, and execute permissions to all users)

8. ls -l file1 (to verify the permission changes)

9. touch file2 (to create a new file)

10. chmod a=r file2 -v (to assign read-only permissions for all users)

11. ls -l file1 (to verify the permission changes)

12. ^ Octal notation uses 3 digits ranging from 0 to 7 to denote file permissions.

13. chmod 544 file2 -v (to add group execution permissions to the file)

14. ls -l file2 (to verify the permission changes)

15. chmod 766 file2 -v (to add group write permissions to the file)

16. ls -l file2 (to verify the permission changes)

17. ^The owner has read, write and execute permissions. The group and all others have read and write permissions but not permission to execute the file.

18. chmod 764 file2 -v (to remove write permissions for all other users)

19. ls -l file2 (to verify the permission changes)

20. chmod 777 file2 -v (to assign full permissions for everyone)

21. ls -l file2 (to verify the permission changes)

22. umask (to display the current umask value for our directory)

23. umask -S (to display the umask in symbolic notation)

Видео Project 41 - File Permissions and the Principle of Least Privilege in System Administration канала Daryl Shows His Work
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять