3

我正在尝试解决这个问题:

2014-04-07 14:00:58,628 srv proftpd[10143] srv (pfsense.localdomain[192.168.0.1]): FTP session opened.
2014-04-07 14:01:13,779 srv proftpd[10091] srv (pfsense.localdomain[192.168.0.1]): Preparing to chroot to directory '/srv/user1'
2014-04-07 14:01:13,779 srv proftpd[10091] srv (pfsense.localdomain[192.168.0.1]): USER user1: Login successful.
2014-04-07 14:01:13,779 srv proftpd[10091] srv (pfsense.localdomain[192.168.0.1]): ROOT PRIVS: unable to seteuid(): Operation not permitted
2014-04-07 14:01:13,779 srv proftpd[10091] srv (pfsense.localdomain[192.168.0.1]): ROOT PRIVS: unable to setegid(): Operation not permitted
2014-04-07 14:01:13,782 srv proftpd[10091] srv (pfsense.localdomain[192.168.0.1]): RELINQUISH PRIVS: unable to seteuid(PR_ROOT_UID): Operation not permitted
2014-04-07 14:01:13,782 srv proftpd[10091] srv (pfsense.localdomain[192.168.0.1]): FTP session closed.

我在我的文件系统“srv”上创建了一个文件夹,其中包含“user1”、“user2”等子文件夹。

drwxrwxrwx  19 root root  4096 Mar  5 20:05 srv

每个用户的主目录都设置为“user1”、“user2”等。

drwx---r-x 189 user1   users     4096 Apr  3 11:34 user1

proftp 配置:

Include /etc/proftpd/modules.conf
ServerName          "SRV"
ServerType standalone
DeferWelcome            off
MultilineRFC2228 on
DefaultServer           on
ShowSymlinks on
TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200
DisplayLogin                    welcome.msg
DisplayChdir .message true
ListOptions "-l"
DenyFilter          \*.*/
DefaultRoot         ~
Port                21
User                proftpd
Group               nogroup
Umask 022 022
AllowOverwrite          on
TransferLog /var/log/proftpd/xferlog
SystemLog   /var/log/proftpd/proftpd.log
<IfModule mod_quotatab.c>
 QuotaEngine off
</IfModule>
<IfModule mod_ratio.c>
 Ratios off
</IfModule>
<IfModule mod_delay.c>
 DelayEngine on
</IfModule>
<IfModule mod_ctrls.c>
 ControlsEngine        off
 ControlsMaxClients    2
 ControlsLog           /var/log/proftpd/controls.log
 ControlsInterval      5
 ControlsSocket        /var/run/proftpd/proftpd.sock
</IfModule>
<IfModule mod_ctrls_admin.c>
 AdminControlsEngine off
</IfModule>
Include /etc/proftpd/conf.d/
<Global>
 PassivePorts 65400 65535
</Global>

更多的:

Ubuntu server 13.10
Webmin 1.680
ProFTPD Version 1.3.5rc3
4

1 回答 1

2

我有一个类似的问题,并通过在 /etc/proftpd/proftpd.conf 中将 UseIPv6 设置为 off 来纠正它

于 2015-09-23T19:49:45.723 回答