1.find command handling Actions -print printing on standard output -ls Export information for each file in a long format -exec COMMAND{}\; execute the specified command on the found file -ok COMMAND{}\; Interactive exec find passes the found file to the command specified by-exec at once find /tmp -iname "*.doc" -exec mv {}{} x \; find |xargs COMMAND The previous execution result is treated as a parameter of the following command 2. Special Permissions for Files /etc/shadow permissions ugo:000 permissions matching mechanism when a process accesses a file Initiator of the process: The genus Group of the process master process: Usually the basic group of the process owner 3. executable file suid Any user executes this executable file, no longer as the user's own identity as the owner of the process, but rather as the owner of the file as a process of the master suid permission settings, s or s x : s on the primary execution permission bit of the file - : S set SUID permissions chmod u+s FILE... assuming that the original permission is 755 set SUID permissions chmod 4755 file... 4. directory file:sgid has a sgid directory, When a user creates a file in this directory, the group of the new file is not a group of users, but the genus of the directory. The sgid permission bit is set, which behaves as s or s x  on the file group execution permission bit;: s - : S Set Sgid Permissions chmod g+s FILE... assuming that the original permission is 755 set Sgid permissions chmod 2755 FILE 5. Sticky bit: &NBsp;sticky for public writable directories, users can create files that can delete their own files, but cannot delete other users ' files sticky permission bit settings , which behaves as a T or t x : t on the other user's execution permission bit - : T Set sticky permissions chmod o+t FILE... Assuming that the original permission is 755 set sticky permissions chmod 1755 file
Linux Basic 26