免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 12556 | 回复: 14
打印 上一主题 下一主题

centos 6如何在不关闭selinux的前提下使用ftp服务 [复制链接]

论坛徽章:
0
1 [报告]
发表于 2011-07-15 12:53 |只看该作者
本帖最后由 taojie2000 于 2011-07-15 12:56 编辑

回复 1# weiweiabc109


    ftpd_disable_trans         rw r  r   root        执行set .....  1 命令

论坛徽章:
0
2 [报告]
发表于 2011-07-15 12:56 |只看该作者
啥意思  你让我自己创建一个吗?

在这里面创建文件还的先关闭selinux  唉
我试试

论坛徽章:
0
3 [报告]
发表于 2011-07-15 12:57 |只看该作者
回复 3# weiweiabc109


    嗯 试试   你那规则不多啊  我这里 有 266个    centos版本和你不同

论坛徽章:
0
4 [报告]
发表于 2011-07-15 13:08 |只看该作者
setenforce 0   然后touch后提示权限不够
ls -al 后发现root没有写权限
chmod u+w  后root有了写权限   再touch 还是权限不够

vim /etc/selinux/conf 干脆关闭selinux重启后   /linux下 空了……

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
5 [报告]
发表于 2011-07-15 13:17 |只看该作者
已经没有那个bool值了,下面的是rhel6 ftp相关的selinux的bool的信息:
SELinux is based on the least level of access required for a service to run. Services can be run
in a variety of ways; therefore, you must tell SELinux how you are running services. The following
Booleans allow you to tell SELinux how you are running vsftpd:
allow_ftpd_anon_write
When disabled, this Boolean prevents vsftpd from writing to files and directories labeled with the
public_content_rw_t type. Turn this Boolean on to allow users to upload files via FTP. The
directory where files are uploaded to must be labeled with the public_content_rw_t type and
Linux permissions set accordingly.
allow_ftpd_full_access
When this Boolean is on, only Linux (DAC) permissions are used to control access, and
authenticated users can read and write to files that are not labeled with the public_content_t
or public_content_rw_t types.
allow_ftpd_use_cifs
Having this Boolean enabled allows vsftpd to access files and directories labeled with the
cifs_t type; therefore, having this Boolean enabled allows you to share file systems mounted via
Samba through vsftpd.
allow_ftpd_use_nfs
Having this Boolean enabled allows vsftpd to access files and directories labeled with the nfs_t
type; therefore, having this Boolean enabled allows you to share file systems mounted via NFS
through vsftpd.

论坛徽章:
0
6 [报告]
发表于 2011-07-15 13:30 |只看该作者
   版本差异啊

论坛徽章:
0
7 [报告]
发表于 2011-07-15 13:50 |只看该作者
版主 {:3_186:}求链接

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
8 [报告]
发表于 2011-07-15 14:22 |只看该作者
回复 8# weiweiabc109


    记不住从哪下载的了,rhel的电子书,文件名称是"Red_Hat_Enterprise_Linux-6-Managing_Confined_Services-en-US"

论坛徽章:
0
9 [报告]
发表于 2011-07-15 14:26 |只看该作者
回复 8# weiweiabc109


    Red_Hat_Enterprise_Linux-6-Managing_Confined_Services-en-US.pdf (500.85 KB, 下载次数: 197)

     在file transfer  标题下的  booleans

论坛徽章:
0
10 [报告]
发表于 2011-07-15 14:35 |只看该作者
{:3_200:}
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP