ts-7000
[Top] [All Lists]

[ts-7000] Re: Creating a working ftp account on my TS-7400 (proftpd)

To:
Subject: [ts-7000] Re: Creating a working ftp account on my TS-7400 (proftpd)
From: "inakizi" <>
Date: Tue, 12 Dec 2006 16:13:33 -0000
Are you trying to login or FTP?
because this file is to enable FTP.

Can you check what do you have on /var/log? You should have a couple 
log files. Can you post here the contents?

--- In  "Robert Wasniak" <> wrote:
>
> I copied the text word for word and saved it to my /etc/proftp.conf 
> file.  my login still hangs while logging in from a client.   
> 
> 
> 
> 
> 
> 
> --- In  "inakizi" <inakizi@> wrote:
> >
> > Hello Robert,
> > 
> > I was having the same problem and I solved it with this 
> > configuration file (please read my comments at the end):
> > 
> > # This sample configuration file illustrates configuring two
> > # anonymous directories 
> > 
> > ServerName                  "FTP"
> > ServerType                  inetd
> > DefaultServer                       on
> > Port                                21
> > 
> > RootLogin   on
> > 
> > ExtendedLog             /var/log/ftpext      ALL default      
> > #/dev/null ALL default
> > SystemLog               /var/log/ftpsystem   ALL default      
> > #/dev/null ALL default
> > TransferLog             /var/log/ftptransfer ALL default      
> > #e/dev/null ALL default
> > 
> > # Set the user and group that the server normally runs at.
> > User                                root    
> > Group                               root    
> > Umask                               022
> > MaxInstances                    6 
> > 
> > DefaultRoot /root
> > 
> > # Set the maximum number of seconds a data connection is allowed
> > # to "stall" before being aborted.
> > TimeoutStalled                      60
> > 
> > # We want 'welcome.msg' displayed at login, and '.message' 
> displayed
> > # in each newly chdired directory.
> > DisplayLogin                        welcome.msg
> > DisplayFirstChdir           .message
> > 
> > # Our "basic" anonymous configuration, including a single
> > # upload directory ("uploads")
> > <Anonymous /var/ftp>
> >   
> >   RequireValidShell         off
> >   HideUser                  root
> >   # Allow logins if they are disabled above.
> >   <Limit LOGIN>
> >     AllowAll
> >   </Limit>
> > 
> >   # Maximum clients with message
> >   MaxClients                        3 "Sorry, max %m users -- try 
again 
> > later"
> > 
> >   User                              nobody  
> >   Group                             nogroup
> >   UserAlias                 ftp       nobody
> >   UserAlias                 anonymous nobody
> > 
> >   # Limit WRITE everywhere in the anonymous chroot
> >   <Limit WRITE>
> >     DenyAll
> >   </Limit>
> >   
> >   # An upload directory that allows storing files but not 
> retrieving
> >   # or creating directories.
> >   <Directory uploads/*>
> >     <Limit READ WRITE STOR DIRS >
> >      AllowAll 
> >     </Limit>
> > 
> >     <Limit RETR >
> >       DenyAll 
> >     </Limit>
> >   </Directory>
> > 
> >   <Directory downloads/*>
> >     <Limit READ WRITE STOR>
> >       DenyAll
> >       IgnoreHidden                  on
> >     </Limit>
> >     
> >     <Limit RETR DIRS>
> >       AllowAll
> >       IgnoreHidden                  on
> >     </Limit>
> >   </Directory>
> > 
> > </Anonymous>
> >  
> > This allowed me to do FTP using root. Now this is very risky and 
> you 
> > should not create a product with this feature enabled. Now to be 
> > able to create this config file, I enabled logging. Please after 
> you 
> > get everything working disable the logging changing this entries:
> > 
> > ExtendedLog             /dev/null ALL default
> > SystemLog               /dev/null ALL default
> > TransferLog             /dev/null ALL default
> > 
> > or you will destroy your flash memory.
> > 
> > Now if you want to enable ftp in a product or even HTTP we have 
to 
> > solve a problem first. I'm trying to track down a problem 
creating 
> > and using users on the TS-7400, I guess the problem is with the 
> > kernel but I haven't figured out what it is yet but I think that 
> the 
> > kernel functions setgid and setuid are not working in the TS-
7400. 
> > If this doesn't work you cannot create users and the FTP and HTTP 
> > servers cannot work with a user diferent from root.
> > 
> > If someone knows something about this problem plese share some 
> > information.
> > 
> > 
> > 
> > --- In  "Robert Wasniak" <rwasniak@> 
> > wrote:
> > >
> > > Can I see a copy of any one's proftp config file/setup... I 
> cannot 
> > > login as root to the proftpd server! thanks in advance
> > > 
> > > -Bobby
> > > 
> > > --- In  "loupi7400" 
> > > <louis_pierre_beaumont@> wrote:
> > > >
> > > > Hello Jim,
> > > > 
> > > > Thanks a lot for the link, it provided usefull info that i 
used
> > > > to make my ftp server working! :)
> > > > 
> > > > In proftpd.conf, i changed the user and group from "ftp" 
> > to "root".
> > > > I also added a "DefaultRoot /home" option to map the ftp 
> server 
> > root 
> > > > to /home.
> > > > 
> > > > I can now login to the ftp with "root", no password.
> > > > 
> > > > Everything is working great now! :)
> > >
> >
>




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU