################ #自动安装系统 ############
1.kickstart Script
To automatically answer the system installation process of all the problems of the script file, the system can be installed automatically. After the system is installed, the system will be
Anaconda-ks.cfg This file is the kickstart script generated by this system as a template
2. Manually edit the Kickstart script so much
System-config-kickstart Tools available in the system to make kickstart graphically
Yum Install System-config-kickstart-y # #安装图形制作工具
System-config-kickstart # #打开图形ks制作工具
Ksvalidator Ks.cfg # #检测ks语法
3.kickstart file Sharing
Yum Install Httpd-y
Systemctl Stop Firewalld.service
Systemctl Disable Firewalld.service
Systemctl Start httpd
Systemctl Enable httpd
CP ks.cfg/var/www/html
4. Test the KS file
Virt-install \
>--name kstest \
>--ram 800 \
>--file/var/lib/libvirt/images/kstest.qcow2 \
>--file-size 8 \
>--location ftp://172.25.254.250/pub/rhel7.2 \
>--extra-args "ks=http://172.25.254.100/ks.cfg" &
##### #pxe网络安装服务
1. Corresponding Software Installation
Yum Install DHCP Tftp-server syslinux httpd-y
Systemctl Stop Firewalld.srevice
Systemctl Disable Firewalld.service
Vim/etc/xinetd.d/tftp
"Disable =yes" ========> "Disable = no"
Systemctl Restart xinetd
Systemctl Start httpd
Systemctl Enable httpd
2. Must download and copy files
cp/usr/share/syslinux/pexlinux.0/var/lib/tftpboot/
Copy all isolinux/* from the installation image to/var/lib/tftpboot/
Mkdir/var/lib/tftpboot/pxelinux.cfg
Cp/var/lib/tftpboot/isolinx.cfg/var/lib/tftpboot/pxelinux.cfg/default
################### #用户权限列表
1. Definition of permission list
A record table that special users have special permissions on a file
2. Recognition of permission lists
-rw-rw-r--+ 1 root root Oct 21:20 file
3. View of the Permissions list
Getfacl file
User:: rw-# #特殊指定用户权限
User Permissions
Group:: rw-# #特殊指定组权限
Group Permissions
Mask:: rw-# #权限阀值
Other:: r--# #其他人权限
4. How to set ACL list
Setfacl-m u:username: Permissions filename
setfacl-m u:test:rw File # #指定test用户对file文件特殊权限为读写
Setfacl-x u:student File # #删除列表中的student用户信息
Setfacl-x g:student File # #删除列表中的student用户组信息
Setfacl-b Bile # #关闭列表
5.mask permission Threshold
If you perform chmod on a file that has a special permission list, you may modify the mask in this permission list
Mask Maximum permission value that is available to a particular user
set mask:setfacl-m m: Permissions filename # #修改该mask的值
6. Default Permissions
When we need to create a new file in the specified directory or a directory that has special permissions for the specified user
Setfacl-m d:u:username: Permissions filename
! Default permissions do not take effect on existing files
default permissions do not take effect on the directory itself
########################## #系统延迟及定时机制
1.at delay
At time
At> Action
At>ctrl +d
At> <EOT>
At-l # # #查看正在进行的任务
ATRM Task number
When an action is executed with output
The output is sent as a message to the person's initiator
Mail # # #打开邮件
Q # # #退出
At user's black and white list
/etc/at.deny # #默认存在并生效
/etc/at.allow # #默认不存在, once present, Etc/at.deny fail
2. Recurring tasks
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
3. Management of temporary system files
Vim/usr/lib/tmpfiles.d/*.conf
Type filename Perm user group
D/mnt/westos 1777 root root
Systemd-tmpfiles--create/usr/lib/tmpfiles.d/*
Systemd-tmpfiles--clean/usr/lib/tmpfiles.d/*
Note October 29,30