创建根ftp用户的工作方式

革命

有很多解决方法。我已经完成的其中一项:

adduser username
chown -R username /directory/
chmod -R 755 /directory/

我在Windows上使用FlashFXP,其结尾为

[R] USER xxx
[R] 331 Password required for xxx
[R] PASS (hidden)
[R] 530 Login incorrect.
[R] Connection failed

但是我想在根目录上创建一个ftp用户

还尝试了:

添加/bin/false/etc/shells

nano /etc/shells
useradd userftp -p mypass -d /home -s /bin/false
passwd userftp
/etc/init.d/proftpd start

也无法登录!

proftpd.conf

ServerName              "Myserver"
ServerType              standalone

Port                    21
PassivePorts            35000 35999
UseReverseDNS           off
TimesGMT                off
TimeoutLogin            120
TimeoutIdle             600
TimeoutNoTransfer       900
TimeoutStalled          3600

ScoreboardFile                  /var/run/proftpd/proftpd.pid

TransferLog             /var/log/proftpd/xferlog.legacy
LogFormat               default "%h %l %u %t \"%r\" %s %b"
LogFormat               auth    "%v [%P] %h %t \"%r\" %s"
LogFormat               write   "%h %l %u %t \"%r\" %s %b"

#DON'T modify this log format.  It's used by DirectAdmin to determine user usage
LogFormat               userlog "%u %b %m %a"
ExtendedLog             /var/log/proftpd/xxx.xxx.xxx.xxx.bytes WRITE,READ userlog

AuthUserFile                    /etc/proftpd.passwd
DefaultServer           on
AuthOrder mod_auth_file.c

#AuthPAM off

<IfModule mod_tls.c>
        TLSEngine on
        TLSLog /var/log/proftpd/proftpd.tls.log
        TLSProtocol SSLv23
        #TLSProtocol TLSv1
        TLSVerifyClient off
        TLSRequired off

        #Certificates
        TLSRSACertificateFile /etc/exim.cert
        TLSRSACertificateKeyFile /etc/exim.key
        #TLSCACertificateFile /etc/ftpd/root.cert.pem

        TLSCipherSuite HIGH:MEDIUM:+TLSv1:!SSLv2:+SSLv3
</IfModule>

<Global>
        PassivePorts            35000 35999
        DeferWelcome            on

        RequireValidShell       no

        DefaultRoot             ~
        DirFakeUser on ftp
        DirFakeGroup on ftp

        User                    ftp
        Group                   ftp
        #UserAlias              anonymous ftp

        AllowStoreRestart       on
        AllowRetrieveRestart    on

        ListOptions             -a
        ShowSymlinks            on
        <IfModule mod_facts.c>
                ##Enable this with proftpd 1.3.4b+ to fix FileZilla MLSD
                ##http://www.proftpd.org/docs/modules/mod_facts.html#FactsOptions
                # FactsOptions UseSlink
        </IfModule>

        Umask                   022
        DisplayLogin            welcome.msg
        DisplayChdir            readme
        AllowOverwrite          yes
        IdentLookups            off
        ExtendedLog             /var/log/proftpd/access.log WRITE,READ write
        ExtendedLog             /var/log/proftpd/auth.log AUTH auth

        #
        # Paranoia logging level....
        #
        #ExtendedLog    /var/log/proftpd/paranoid.log ALL default

        <IfModule mod_tls.c>
                TLSEngine on
                TLSLog /var/log/proftpd/proftpd.tls.log
                TLSRSACertificateFile /etc/exim.cert
                TLSRSACertificateKeyFile /etc/exim.key
        </IfModule>
</Global>

Include /etc/proftpd.vhosts.conf
基瓦

根据您的配置,您应该更改

AuthOrder mod_auth_file.c

经过

 AuthOrder mod_auth_pam.c* mod_auth_unix.c

因为mod_auth_file.c仅用于使用proftpd特殊身份验证文件。
您可以在此处查阅AuthOrder选项==> Proftpd AuthOrder指令

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

这是ftp的工作方式吗?

来自分类Dev

委托工作方式

来自分类Dev

ChildNode的工作方式

来自分类Dev

R语言的工作方式

来自分类Dev

方法调用的工作方式

来自分类Dev

了解CPU的工作方式

来自分类Dev

linux:grep的工作方式

来自分类Dev

子网工作方式的语义

来自分类Dev

在views.py中使用类创建表单时,表单动作在django中的工作方式

来自分类Dev

了解JavaScript原型的工作方式

来自分类Dev

sleep()在PHP中的工作方式

来自分类Dev

Hashmap及其在后台的工作方式

来自分类Dev

.is(“ visible”)和.is(“:visible”)的工作方式不同

来自分类Dev

==的工作方式以及.NET内部的作用

来自分类Dev

难以理解stack()的工作方式

来自分类Dev

了解c#属性的工作方式

来自分类Dev

Hashmap及其在后台的工作方式

来自分类Dev

Java Arraylist清除:clear()的工作方式

来自分类Dev

mahout的推荐评估者的工作方式

来自分类Dev

了解fork()系统调用的工作方式

来自分类Dev

对Java同步的工作方式感到困惑

来自分类Dev

了解内存分配的工作方式(LLVM)

来自分类Dev

了解kbuild构建过程的工作方式

来自分类Dev

以下JavaScript Scope的工作方式

来自分类Dev

打字稿对象投射的工作方式

来自分类Dev

Action在Play框架中的工作方式

来自分类Dev

热代码交换的工作方式

来自分类Dev

了解编译器的工作方式

来自分类Dev

关于结构的指针及其工作方式