Linux Basic 26

Source: Internet
Author: User

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&nbsp 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.