# #自动安装系统
# # # Kickstart Script
Kickstart script is a script file that automatically answers all problems during the installation of the system
This file enables automatic installation of the system
After the system is installed, it will be generated in the root home directory of the system.
Anaconda-ks.cfg This file is the kickstart script generated by this system as a template
# # #kickstart脚本的制作
The installation of the System-config-kickstart tool in the system can be made graphically kickstart
Yum Install System-config-kickstart-y # #安装图形制作工具
System-config-kickstart # #打开图形ks制作工具
Ksvalidator Ks.cfg # #检测制作的ks脚本语法是否正确
# # #kickstart文件共享
Yum Install Httpd-y
Systemctl Stop Firewalld.service
Systemctl Disable Firewalld.service
Systemctl Start httpd
Systemctl Enable httpd
CP ks.cfg/var/www/html
# # #自动安装命令
Virt-install \
--name LCD \
--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.101/ks.cfg" &
# # #kickstart文件参数解析
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/89/9D/wKioL1gYYyKhSAjzAAsPbSoZ4x0318.png-wh_500x0-wm_3 -wmp_4-s_1737489317.png "title=" 2016-11-01 17:43:14 screenshot. png "alt=" wkiol1gyyykhsajzaaspbsoz4x0318.png-wh_50 "/>
# # #附加pxe网络安装服务
corresponding Software Installation
Yum Install DHCP Tftp-server syslinux httpd-y
Systemctl Stop Firewalld.service
Systemctl Disable Firewalld.service
Vim/etc/xinetd.d/tftp
Change Disable = yes to disable = no
Systemctl Restart xinetd
Systemctl Start httpd
Systemctl Enable httpd
2. Must download and copy files
cp/usr/share/syslinux/pxelinux.0/var/lib/tftpboot/
isolinux/* the image, copy it from the real machine to the/var/lib/tftpboot/
Mkdir/var/lib/tftpboot/pxelinux.cfg
Cp/var/lib/tftpboot/isolinux.cfg/var/lib/tftpboot/pxelinux.cfg/defult
Configuration of the 3.DHCPD service
Subnet 172.25.88.0 Netwask 255.255.255.0{
Range 172.25.254.200 172.25.254.230
Option routes 172.25.254.250;
FileName "pxelinux.0";
Next-server 172.25.88.101; # #文件存在的主机ip
}
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/89/B1/wKiom1gZxcyyMDDmAAJoM_pOCKU172.png-wh_500x0-wm_3 -wmp_4-s_969758001.png "title=" 2.png "alt=" Wkiom1gzxcyymddmaajom_pocku172.png-wh_50 "/>
4. Install the complete system
Vim/var/lib/tftpboot/pexlinux.cfg/default
Menu Default # #默认选中标签
Append initrd=initrd.img
repo=ftp://172.25.254.250/rhel7.2 ks=http://172.25.254.101/ks.cfg
# # #用户权限列表
Permission List Definition
Make a special user record table with special permissions to a file
2. Recognition of permission lists
-rw-rw-r--+ 1 root root (OTC) 21:20 file # #权限位有加号代表权限列表开启
-rw-r--r--. 1 root root 0 OTC 21:22 Westos # #权限位是. The delegate permission list is not activated
3. View of the Permissions list
Getfacl file
# file:file # #文件名称
# owner:root # #文件所有人
# group:root # #文件所有组
user::rw-# #文件所有人权限
user:test:rw-# #特殊指定用户权限
group::r--# #组权限
mask::rw-# #权限阀值
other::r--# #其他人权限
Examples:
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/89/AE/wKioL1gZyd_jRAheAALhEXX85kY303.png-wh_500x0-wm_3 -wmp_4-s_1077285665.png "title=" I$e[ph64[]9tszx1{9@vjmk.png "alt=" Wkiol1gzyd_jraheaalhexx85ky303.png-wh_50 "/>
# # #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 File # #关闭列表
5.mask permission Threshold
If you perform chmod on a file with a permission list, it is likely that the mask in this permission list will be modified
Mask is the maximum permission value that a particular user can get
Setfacl-m m: Permissions # #修改该mask的值
6. Default Permissions
When we need to create a new file or directory in the specified 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, sub-directories, child files
Linux Basic Learning (12) Linux automatic installation system