Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
strange ftp behaviour
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
EASYdoor
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2004
Posts: 79
Location: Novo mesto

PostPosted: Mon Sep 27, 2004 10:42 pm    Post subject: strange ftp behaviour Reply with quote

so i've finally configured my proftpd server that the users are strctly in their homefolders...
that work's if i use the ftp localhost, or ftp with explorer, but when i start a ftp client for example total commander,...the user can simply go up and browse my system...

how could i fix this?!?
Back to top
View user's profile Send private message
swegener
Developer
Developer


Joined: 19 Jun 2004
Posts: 8
Location: Karlsruhe, Germany

PostPosted: Mon Sep 27, 2004 10:50 pm    Post subject: Reply with quote

What options are in your proftpd.conf?

According to the docs "DefaultRoot ~" should do it.
Back to top
View user's profile Send private message
EASYdoor
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2004
Posts: 79
Location: Novo mesto

PostPosted: Tue Sep 28, 2004 6:10 am    Post subject: Reply with quote

here are is my proftpd.conf:

Code:


ServerName "sth"
ServerType         standalone
DefaultServer         on
ServerIdent on "sth"
AuthPAM off

Port            21

Umask            022

MaxInstances         30

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


DefaultRoot ~
TransferLog /var/log/proftpd_promet
DenyFilter \*.*/


<Directory />
  AllowOverwrite      on
</Directory>


<Anonymous ~ftp>
  User            ftp
  Group            ftp

  UserAlias         anonymous ftp
  MaxClients         10 "Dovoljenih je samo 10 povezav na enkrat" #tole sm dodal
  DisplayLogin         welcome.msg
  DisplayFirstChdir      .message

  <Limit WRITE>
    DenyAll
  </Limit>
</Anonymous>

 <Anonymous ~ftp_priv>
   User                 ftp_priv
   Group                 ftp
   AnonRequirePassword on
 
   UserAlias           private ftp_priv
   UserAlias           upload ftp_priv
 
   MaxClients          10
 
   DisplayLogin        welcome.msg
   DisplayFirstChdir   .message
 
   <Limit WRITE>
      Deny from all
   </Limit>
 
   <Directory incoming>
      <Limit READ WRITE DIRS STOR CWD CDUP>
     AllowAll
    </Limit>
  </Directory>
 </Anonymous>
<Global>
RootLogin on
</Global>
ServerAdmin EASYdoor@siol.net
<VirtualHost 193.77.149.161>
AccessGrantMsg "sth"
</VirtualHost>
Back to top
View user's profile Send private message
EASYdoor
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2004
Posts: 79
Location: Novo mesto

PostPosted: Tue Sep 28, 2004 4:39 pm    Post subject: Reply with quote

Hellooo???

Anyone that could help???
Back to top
View user's profile Send private message
swegener
Developer
Developer


Joined: 19 Jun 2004
Posts: 8
Location: Karlsruhe, Germany

PostPosted: Tue Sep 28, 2004 5:05 pm    Post subject: Reply with quote

When using a VirtualHost configuration, the DefaultRoot directive has to be moved to the Global context (to be effective for all VirtualHosts) or to the VirtualHost context (to be active only for that VirtualHost). Putting it into the server config context only activates it for everything that's not in a VirtualHost context.
Back to top
View user's profile Send private message
EASYdoor
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2004
Posts: 79
Location: Novo mesto

PostPosted: Tue Sep 28, 2004 6:17 pm    Post subject: Reply with quote

swegener thanx a lot,...that really worked
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