Sample of S authority: S u i d means that if a user sets this permissions on its own S H E L script, then other users will have the corresponding permissions of the owner when performing this script. Thus, if such permissions are set for a certain script, other ordinary users also have the permissions of the root user during the period. The same principle is also applicable to G U I D, and the user who performs the corresponding script will have the user's permissions in the user group belonging. Find SUID files ls -l | grep '^ ... s' Find SUID and Guid Ls -l | Grep' ^ ... S ... If you want to set up Suid, then the corresponding permission bit before The bit is set to 4; if you want to set the GUID, set the one before the corresponding permission bit is 2; if you want to set it, set the corresponding permission bit to 4 2 . Once this bit is set, a S will appear in the X position. Remember: At the same time as S u i d or g u i d, the corresponding execution rights must be set. For example, if you want to set G u I d, you must have the user group to have execution permissions. If you want to set SUID to file login, it is currently the RWX RW-r - (741), you need to add one 4 in front of this permissions when using the chmod command, ie CHMOD 4741, which will make The permissions of the file becomes RW SRW-R -. CHMOD 4741 LOGIT
file type
D catalog. l Symbol link (pointing to another file). S socket file. B block device file. C character device file. p Named pipe file. - Ordinary document, or more accurately, not with several types of files. Several other related commands chown chmod group id umaskln [-s] source_path target_path (soft link) CHMOD - R option Contained with the file in the subdirectory, pay attention to safety!