作者commom (夏天)
看板Linux
标题[问题] 使用rsync同步後ftp无法显示档案
时间Tue Feb 17 11:43:46 2015
各位前辈大家好
最近小弟准备将旧的电脑资料 转移到新的电脑上
所以将使用者帐号密码整理一下汇入新的电脑
也使用rsync将家目录整个备份过去
在使用上没有问题 新的家目录同步都是正常的
但是从ftp连线时 却只看的到目录及资料夹
其他所有的档案都看不到
但是ftp连线纪录 显示传输正常
回应: 150 Here comes the directory listing.
回应: 226 Directory send OK
想请问一下这样的问题有解吗?
目前已经重新 restart vsftpd 及reinstall过了
系统两者皆是scientific linux 6.X
麻烦各位解答了
谢谢
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 140.115.20.130
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Linux/M.1424144630.A.B01.html
1F:推 NGCat: 直觉是权限问题,建议比对一下OWNER与MOD看看。 02/17 12:06
2F:→ commom: 有比对过了 全部chmod 777 也没有解决 02/17 15:28
3F:→ commom: 但是目前发现不能新建档案及目录 可能看一下vsftpb.conf 02/17 15:29
4F:→ commom: 有没有问题... 02/17 15:29
5F:→ commom: 看起来似乎是SELinux的问题 用setenforce 0之後看的到档 02/17 16:51
6F:→ kenduest: 预设的ftp目录的话, restorecon 恢复套用最快 02/17 18:54
7F:→ kenduest: 或者自己用 chcon 把 type 改成 public_content_t 02/17 18:56
8F:推 NGCat: 那将SELinux关掉,就知道是不是了呵。 02/18 00:00
9F:→ danny8376: 不都关掉试了 已经确定了啊.... 02/18 11:20
10F:推 h0677870105: 将public_content_t 设定在你的同步目录後,相关的 02/23 09:29
11F:→ h0677870105: seboolean 也要打开写的权限 02/23 09:31
12F:→ h0677870105: boolean 值也要打开 02/23 09:31