Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED][proftpd] problem z konfiguracją użytkowników
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish)
View previous topic :: View next topic  
Author Message
kkrzyzak
n00b
n00b


Joined: 17 Jan 2008
Posts: 9

PostPosted: Sun Jan 20, 2008 4:38 pm    Post subject: [SOLVED][proftpd] problem z konfiguracją użytkowników Reply with quote

Witajcie.
w przerwie z zabawą z Sambą próbuję skonfigurować serwer ftp. Tu również posłużyłem się artykułem z gentoo wiki.
Zemergowałem(piękne słowo :D) proftpd, mam użytkownika ftp dodanego do grupy ftp (analogicznie z proftpd i nobody)
mój /etc/proftpd/proftpd.conf:
Code:

# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anonymous access.

ServerName                      "Krzyzak ftp server"
ServerType                      standalone
#ServerType inetd
DefaultServer           on
RequireValidShell       off
AuthPAM                         off
AuthPAMConfig           ftp
# Port 21 is the standard FTP port.
Port                            21

# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask                           022

# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit the maximum number of processes per service
# (such as xinetd).
MaxInstances            30

# Set the user and group under which the server will run.
User                            proftpd
Group                           proftpd

# Normally, we want files to be overwriteable.
<Directory />
        AllowOverwrite          on
</Directory>

# A basic anonymous configuration, with no upload directories.
<Anonymous ~ftp>
        User                            ftp
        Group                           ftp
        AnonRequirePassword             off
        # We want clients to be able to login with "anonymous" as well as "ftp".
        UserAlias                       anonymous ftp gosc

        # Limit the maximum number of anonymous logins.
        MaxClients                      10

        # We want 'welcome.msg' displayed at login, and '.message' displayed
        # in each newly chdired directory.
        DisplayLogin                    welcome.msg
        #DisplayFirstChdir              .message

        # Limit WRITE everywhere in the anonymous chroot.
        <Limit WRITE>
                DenyAll   
        </Limit>
</Anonymous>

proftpd wstaje prawidłowo:
Code:

thot proftpd # /etc/init.d/proftpd start
 * Starting proftpd ...                                                                                                                   [ ok ]
thot proftpd #

podczas próby zalogowania uzyskuję błąd 530- unable to set anonymous privileges. (mimo, że wydaje mi się, że mam prawidłowo ustawiony serwer anonymous), próba zalogowania jako którykolwiek użytkownik systemu też nie przynosi rezultatu (nawet jako root).
W czym może być problem?
Aha, bym zapomniał: /home/ftp ma chmod 777 (tak z desperacji ustawiłem tymczasowo...)


Last edited by kkrzyzak on Thu Jan 24, 2008 2:42 pm; edited 1 time in total
Back to top
View user's profile Send private message
Robert W.
Guru
Guru


Joined: 13 Jul 2004
Posts: 365
Location: Kobyłka

PostPosted: Tue Jan 22, 2008 9:56 pm    Post subject: Re: [proftpd] problem z konfiguracją użytkowników Reply with quote

Code:
USE="-acl" emerge proftpd
Back to top
View user's profile Send private message
kkrzyzak
n00b
n00b


Joined: 17 Jan 2008
Posts: 9

PostPosted: Wed Jan 23, 2008 8:47 pm    Post subject: [SOLVED][proftpd] problem z konfiguracją użytkowników Reply with quote

Działa, dzięki :) pozostaje jeszcze problem bardzo powolnego uploadu (nieporównywanie wolny przy downloadzie kilkanaście mbps, upload wynosi kilka kbps :/ ) jednak w wątku, który założyłem opisując ten problem cisza...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum