Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Problems with the ftp server
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
FBorges22
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2007
Posts: 98
Location: Earth Orbit

PostPosted: Tue Jul 08, 2008 4:13 am    Post subject: [Solved] Problems with the ftp server Reply with quote

Greetings,

Recently I have updated my profile using the eselect profile set 8 command and after that I performed a emerge -uDN world. The process went all right but now I am having trouble with my personal FTP server based in proftpd.

After the update I simply cannot use the anonymous account anymore. But if I try to login with my standard user account called borges I can access with no problems.

What this could be? I checked the proftpd.conf file and I cannot see anything wrong with him.

I think there is something related to the acl flag. Because I saw this flag set after I gave the emerge -uDNp world command.

Here is a copy of the file:

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                      "INCOM FTP Server"
ServerType                      standalone
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

# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
DefaultRoot ~

# 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

        # We want clients to be able to login with "anonymous" as well as "ftp".
        UserAlias                       anonymous ftp

        # 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
        DisplayChdir            .message

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

<Limit LOGIN>
AllowUser borges
AllowUser ftp
AllowGroup ftpuser
AllowGroup ftp
DenyAll
</Limit>


Thanks,
FBorges22


Last edited by FBorges22 on Thu Jul 10, 2008 6:12 pm; edited 1 time in total
Back to top
View user's profile Send private message
cassiol
Guru
Guru


Joined: 16 Oct 2006
Posts: 304
Location: /BR/SC/FLORIPA

PostPosted: Tue Jul 08, 2008 11:41 am    Post subject: Reply with quote

hello,,,

maybe this help you http://gentoo-wiki.com/ProFTPd
Back to top
View user's profile Send private message
FBorges22
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2007
Posts: 98
Location: Earth Orbit

PostPosted: Tue Jul 08, 2008 4:17 pm    Post subject: Reply with quote

I had to switch back to the 2006.0 profile and now the proftpd is working all right. Unfortunately I cannot use the 2008.0 profile because he require the ACL enabled.
Back to top
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Wed Jul 09, 2008 6:43 am    Post subject: Reply with quote

The acl USE flag does not appear to be forced on in any profiles currently in the tree, regardless of version.

Did you try echo 'net-ftp/proftpd -acl' >> /etc/portage/package.use then emerge -av net-ftp/proftpd, with the profile set to a suitable 2008.0 variant?
Back to top
View user's profile Send private message
FBorges22
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2007
Posts: 98
Location: Earth Orbit

PostPosted: Wed Jul 09, 2008 6:16 pm    Post subject: Reply with quote

desultory wrote:
The acl USE flag does not appear to be forced on in any profiles currently in the tree, regardless of version.

Did you try echo 'net-ftp/proftpd -acl' >> /etc/portage/package.use then emerge -av net-ftp/proftpd, with the profile set to a suitable 2008.0 variant?


I am gonna try this. One thing for certain: I will have to recompile a lot of packages.
Back to top
View user's profile Send private message
FBorges22
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2007
Posts: 98
Location: Earth Orbit

PostPosted: Wed Jul 09, 2008 8:25 pm    Post subject: Reply with quote

Okay... I have been successful by altering the make.conf setting the -acl flag.

I was thinking:

What are the differences between the 2006.0 and 2008.0 profile? After the switching I cannot see any significant changes in my system.
Back to top
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Thu Jul 10, 2008 6:44 am    Post subject: Reply with quote

The differences should be relatively minor on a mature system, most flags having already been specified if the defaults are not suitable. Being the currently active profile set 2008.0 would tend to have updates as features change and the older profiles will likely be removed from the tree before 2008.0 is.
Back to top
View user's profile Send private message
FBorges22
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2007
Posts: 98
Location: Earth Orbit

PostPosted: Thu Jul 10, 2008 6:12 pm    Post subject: Reply with quote

Okay. The question has been solved.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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