#目录权限
Create directory /admin/sales /admin/devel /admin/training
/admin/sales owner is root ,group is admin ,all users in the directory can create documents, but the files and directorys you created automatic for group admin, the owner for founder itself, other users without any access.
/admin/devel owner is root ,group is root , all users in the directory can create documents, but can't delete other files created by the user.
/admin/training the owner is root ,group is root ,user root has all the limits of authority, other users without any access, except user alex can write and read in this directory.
1’mkdir /admin cd /admin
2’mkdir {sales, devel ,training}
3’chgrp sales ;chmod 2770 sales
4 ‘chmod 1777 devel /
5chmod 770 training
6’setfacl –m u:alex:rwx training/ {若要求对此目录下创建的文件适当权限, setfacl -m d:g:admin:rw training }
7’ll : getfacle training/
#内核升级
1’yum –y install lftp*
2’lftp 192.168.0.254
3’get kernel
4’rpm –ivh kernel*
5’vim /boot/grub/grub.conf & /etc/grub.conf
#LDAP
Join ldap domain , dc=example, dc = com ,server = instructor.example.com
Certificate from :ftp://192.168.0.254/pub/example-cd.crt
To be able to use ldapuserX0 on your machine
1’system-config-authentication
2’
3’su – ldapuser1
4’exit
#NTP server
1’system-config-date
2’ 添加 网络
#自动挂载 ldapuser1
/ldaphome/ldapuserX on the server automatic mount on the directory /ldaphome on your machine.
1’ showmount –e 192.168.0.254 & getent passwd ldapuserX
2’vim /etc/auto.mater /ldaphome /etc/auto.misc
3’vim /etc/auto.misc
ldapuserX -fstype=nfs 192.168.0.254:/ldaphome/ldapuserX
* -fstype=nfs 192.168.0.254:/ldaphome/&
4’mkdir /home/guests; cd /home/guests; ln –s –d /ldaphome/ldapuserX ldapuserX
5’ ’service autofs stop ,service autofs start; chkconfig autofs on
6’su – ldapuserX
#WEB
Download from the service ftp://192.168.0.254/pub/test/ exam.html
Rename index.html ,put it in /var/www/html
http://station.domainX0.example.com to visit
1’lftp 192.168.0.254 get exam.html
2’yum –y install httpd
3’cp exam.html /var/www/html/index.html
4’vim /etc/hosts [进行主机名解析]
5’service httpd start ; chkconfig httpd on
6’firefox:查看
#FTP
Realize anonymous download
1’ yum -y install vsftpd
2’service vsftpd start; chkconfig vsftpd on
3’ cd /var/ftp/; mkdir mmm/;cd pub/ ; touch file1
4’lftp 192.168.0.9
5’ get file1
