将久经考验的 vsftpd 配置移动到带有 Fedora 16 的新服务器上,我遇到了问题。一切似乎都按预期进行,但用户身份验证失败。我在任何日志中都找不到任何表明发生了什么的条目。
这是完整的配置文件:
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_file=/var/log/vsftpd.log
xferlog_std_format=YES
idle_session_timeout=0
data_connection_timeout=0
nopriv_user=ftpsecure
connect_from_port_20=YES
listen=YES
chroot_local_user=YES
chroot_list_enable=NO
ls_recurse_enable=YES
listen_ipv6=NO
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
Run Code Online (Sandbox Code Playgroud)
FTP 向我询问用户名和密码,我提供了它们,登录不正确。我已经验证,该用户可以从 ssh 登录。有些事情搞砸了pam_service。
匿名(如果更改为允许)似乎运行良好。
SELinux 被禁用。
Ftpsecure 似乎配置得很好......我完全不知所措!
以下是我检查但没有成功的日志文件:
/var/log/messages
/var/log/xferlog #empty
/var/log/vsftpd.log #empty
/var/log/secure
Run Code Online (Sandbox Code Playgroud)
在 中找到了一些东西/var/log/audit/audit.log:
type=USER_AUTH msg=audit(1335632253.332:18486): user pid=19528 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:authentication acct="kate" exe="/usr/sbin/vsftpd" hostname=ip68-5-219-23.oc.oc.cox.net addr=68.5.219.23 terminal=ftp res=failed'
也许我应该看看/var/log/wtf-is-wrong.help :-)
更多信息:
/etc/pam.d/vsftpd 看起来像这样:
#%PAM-1.0
session optional pam_keyinit.so force revoke
auth required pam_listfile.so item=user …Run Code Online (Sandbox Code Playgroud) 我在全新的 Fedora 16 服务器上安装了 mysql,但它无法启动。这是日志文件(^G和所有)中的行:
^G/usr/libexec/mysqld: Can't create/write to file '/tmp/ibNPyIlu' (Errcode: 13)
Run Code Online (Sandbox Code Playgroud)
我看了看,/tmp/它有相当奇怪的权限:
drwxrwxrwt.
Run Code Online (Sandbox Code Playgroud)
为什么是点? chmod 1777不会改变任何东西。这是否对错误负责?下一步是什么?
我在 Mac 上使用 iTerm2 来做 Linux 工作。为了避免丢失终端连接,我打开了“空闲时,发送 Ascii 代码”。默认值为 0。这就像一个保持连接活跃的魅力,但有一个严重的问题。
事实证明这是将 ^@ 发送到终端,这在大多数情况下是可以的,但vi它会插入最近输入的文本。
我能寄什么东西是安全的?