A brief intro to login scripts to help understand umask. More on chmod and different ways to use it. Finally, we discuss sticky bits and how the chattr command. Honestly try to avoid sticky bits and chattr to keep your fellow system administrators sane.
Commands from the video.
1 clear
2 man umask
3 umask
4 ls
5 touch file1
6 mkdir folder1
7 ls -l
8 umask u=rwx,g=,o=
9 umask
10 touch file2
11 mkdir folder2
12 ls -l
13 umask 007
14 umask
15 touch file3
16 mkdir folder3
17 ls -l
18 chmod 766 file2
19 ls -l file2
20 umask
21 exit
22 umask
23 more ~/.bash_profile
24 more ~/.bashrc
25 more /etc/bashrc
26 grep umask /etc/bashrc
27 ls -la
28 more .bash_logout
29 ls
30 ls -l
31 chmod +t folder2
32 ls -l
33 ls -l /
34 pwd
35 ls -l
36 sudo chattr +i file1
37 ls -l
38 rm file1
39 sudo rm file1
40 sudo chattr -i file1
41 rm file1
Смотрите видео More on linux file permissions and login scripts. Added bonus of making a file unable to be deleted онлайн без регистрации, длительностью online в хорошем качестве. Это видео добавил пользователь Information Technology 13 Сентябрь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 111 раз и оно понравилось 1 людям.