Linux安全网 - Linux操作系统_Linux 命令_Linux教程_Linux黑客

会员投稿 投稿指南 本期推荐: 强烈推荐:Ylmf OS 3.0 正式版发布附迅雷高 XP系统下硬盘安装Fedora 14图文教程
搜索:
您的位置: Linux安全网 > Linux入门 > » 正文

RHCE 6.0 集训试题+答案(4)

来源: 未知 分享至:
chmod 777 /var/ftp/pub man ftpd_selinux chcon -P -t pubic_content_rw_t /var/ftp/pub getsebool -a | grep ftp allow_ftpd_anon_write=1            vim /etc/vsftpd/vsftpd.conf 允许匿名用户可以上传: anon_upload_enable=YES write_enable=YES为前提  将所有用户都锁定在自己的家目录: chroot_list_enable=YES 仅允许example.com域用户访问: vim /etc/hosts.allow  vsftpd:example.com Vim /etc/hosts.deny  vsftpd:  ALL 测试: SElinux的状态设置为Enforcing模式 yum whatprovides *system-config-selinux 安装 select-status-system Default Enforcing Mode 新建一台web server 要求如下: 1、下载http://192.168.0.254/pub/tools/server.html文中,当用户输入http://serverX.example.com可以访问该文件,仅允许本机可以访问http//serverX.example.com下的pub目录 NameVirtualHost 192.168.0.116:80 <VirtualHost 192.168.0.116:80> #    ServerAdmin webmaster@dummy-host.example.com     DocumentRoot /var/www/html/virt1     <Directory /var/www/html/pub>     order allow,deny     deny from all     allow from 192.168.0.116 #   options Indexes -FollowSymLinks    Allowoverride  authconfig     </Directory>     ServerName server16.example.com     ErrorLog logs/dummy-host.example.com-error_log     CustomLog logs/dummy-host.example.com-access_log common </VirtualHost> 2、

Tags:
分享至:
最新图文资讯
1 2 3 4 5 6
验证码:点击我更换图片 理智评论文明上网,拒绝恶意谩骂 用户名:
关于我们 - 联系我们 - 广告服务 - 友情链接 - 网站地图 - 版权声明 - 发展历史