User rights and system delay and timing mechanism

Source: Internet
Author: User
Tags diff

# # # # #用户权限列表 ######
#
##### #1. Definition of a permission list #####
#制定特殊用户对某个文件有特殊权限的记录表格
##### #2. Recognition ##### of permission lists
#权限位有 + permission bit on the permissions list is., indicating that permissions are not yet open
##### #3. View of the permission list #####
#getfacl file
# #file: File # #文件名称
# #owner: Root # #文件所有人
# #group: Root # #文件所有组
#user:: rw-# #文件所有人权限
#user: kiosk:rwx # #特殊制定用户权限
#group:: r--# #组权限
#mask:: rwx # #权限阀值
#other:: r--# #其它人权限
##### #4. How to set ACL list
#setfacl-M u:uername: Permissions filename
#setfacl-M U:KIOSK:RW file # #指定用户kiosk对file文件有读写权力
#setfacl-x U:kiosk File # #删除列表中的kiosk用户信息
#setfacl-x G:kiosk File # #删除列表中的kiosk组信息
#setfacl-B File # #关闭列表
##### #5. Mask Permission Threshold #####
#如果对有权限列表的文件执行chmod很有可能会修改该权限列表中的mask值
#mask为特殊用户能够获得的最大权限值
#setfacl-M: Permissions # #修改该mask的值
##### #6. Default Permissions #####
#当我们需要在指定目录中新建文件或目录都对指定用户有特殊权限时
#setfacl-M d:u:username permissions filename
#例:
#mkdir See
#setfacl-M d:u:kiosk:rwx see
#getfacl See
# # File:see
# # Owner:root
# # Group:root
#user:: rwx
#group:: R-x
#other:: R-x
#default: user::rwx
#default: user:kiosk:rwx
#default: Group::r-x
#default: mask::rwx
#default: Other::r-x
#默认权限对已有文件不生效
#默认权限对目录本生不生效
#
#在企业七以前的版本上进行acl列表设定时
#dumpe2fs/dev/vda1 | grep Mount # #激活
#tune2fs-o acl/dev/vda1 # #加载配置
#tune2fs-o ^acl/dev/vda1 # #关闭
#
##### #系统延时及其定时机制 #####
##### #1. Delay #####
#at time
#at > action
#at > <EOT>
#ctrl +d # #执行
#
#例:
#at 19:20
#at > Touch File3
#at > <EOT>
#job 1 at Wed Nov 2 19:20:00 2016
#执行结果:
#-rw-rw-r--+ 1 root root 0 Nov 2 19:20 file3
# ATRM Task Number # #结束延时任务
# You can write a script test. Be sure to execute permissions on the script. Otherwise it can't be executed.
# When the execution action has output. The content of the output is sent to the person's sponsor in the form of a message
# view mode
# Mail
# Enter the message number
# at user's black and white list
#/etc/at.deny # #默认存在并生效
#/etc/at.allow # #默认不存在, once there is. /etc/at.deny failure
#
# # # # # # # # #2. Timed Task #####
# Command mode initiated
# crontab-u USERNAME-E
# mm HH DD MM WW
# MM/2 # #每隔2分钟
# HH1-HH2 # #几点到几点
# HH1,HH2 # #几点和几点
#
# crontab-l
# crontab-u Username-r
#
# The way the file originated
# Vim/etc/cron.d/filename
# mm HH DD MM WW USERNAME action
#
# echo ' mm HH DD MM ww USERNAME action ' >/etc/cron.d/filename
#
# Black and white list
#/etc/cron.deny
#/etc/cron.allow
#
# # # # # # # # # # #3. System Temp File Management #####
# vim/usr/lib/tmpfiles.d/*.conf
# type filename Perm user group time
# D/mnt/file 1777 root root 10s
#
# Systemd-tmpiles--create/usr/lib/tmpfiles.d/*
# Systemd-tmpiles--clean/usr/lib/tmpfiles.d/*
# * Indicates the name of the file in which
# # # # # # #diff命令 #####
# You can compare two different points of a file
# diff [Options] source file destination file
Cases
# echo ' hostname ' > file1
# echo ' hostname ' > file2
# echo 12345 >> file2
# cat File1
# foundation40.ilt.example.com
# cat File2
# foundation40.ilt.example.com
# 12345
# diff File1 File2
# 1a2
# > 12345
# vimdiff Source file destination File # #分屏高亮显示不同的行
# diff-u source file Destination file > File.path # #将两文件中的不同重定向到file. Path
#
#
# # # # # # #打补丁 #####
# yum Install patch-y # #安装软件
#
# patch File1 File.path # #给file1打补丁
# patch-b File1 File.path # #补丁前先备份源文
# # #备份后会在所在目录下出现 File1.orig



User rights and system delay and timing mechanism

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.