View previous topic :: View next topic |
Author |
Message |
FBorges22 Tux's lil' helper
Joined: 14 Feb 2007 Posts: 98 Location: Earth Orbit
|
Posted: Tue Jul 08, 2008 4:13 am Post subject: [Solved] Problems with the ftp server |
|
|
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 |
|
|
cassiol Guru
Joined: 16 Oct 2006 Posts: 304 Location: /BR/SC/FLORIPA
|
|
Back to top |
|
|
FBorges22 Tux's lil' helper
Joined: 14 Feb 2007 Posts: 98 Location: Earth Orbit
|
Posted: Tue Jul 08, 2008 4:17 pm Post subject: |
|
|
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 |
|
|
desultory Bodhisattva
Joined: 04 Nov 2005 Posts: 9410
|
Posted: Wed Jul 09, 2008 6:43 am Post subject: |
|
|
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 |
|
|
FBorges22 Tux's lil' helper
Joined: 14 Feb 2007 Posts: 98 Location: Earth Orbit
|
Posted: Wed Jul 09, 2008 6:16 pm Post subject: |
|
|
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 |
|
|
FBorges22 Tux's lil' helper
Joined: 14 Feb 2007 Posts: 98 Location: Earth Orbit
|
Posted: Wed Jul 09, 2008 8:25 pm Post subject: |
|
|
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 |
|
|
desultory Bodhisattva
Joined: 04 Nov 2005 Posts: 9410
|
Posted: Thu Jul 10, 2008 6:44 am Post subject: |
|
|
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 |
|
|
FBorges22 Tux's lil' helper
Joined: 14 Feb 2007 Posts: 98 Location: Earth Orbit
|
Posted: Thu Jul 10, 2008 6:12 pm Post subject: |
|
|
Okay. The question has been solved. |
|
Back to top |
|
|
|