LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-12-2003, 01:06 PM   #1
warlock
LQ Newbie
 
Registered: May 2003
Location: Norway
Posts: 4

Rep: Reputation: 0
ProFTPD


Hello.... I new to Linux and have some trouble with proftp
Can somebody please post a valid configuration file ????????
 
Old 05-12-2003, 01:20 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
A simple and valid Proftpd configuration file from a Slackware machine:
Code:
# This is a basic ProFTPD configuration file.
# It establishes a single server and a single anonymous login.
# It assumes that you have a user/group "nobody" and "ftp"
# for normal/anonymous operation.

ServerName                      "ProFTPD Default Installation"
#ServerType                     standalone
ServerType                      inetd
DefaultServer                   on
AllowLogSymlinks                on

# 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 maximum number of processes per service
# (such as xinetd)
MaxInstances                    30

# Set the user and group that the server normally runs at.
User                            nobody
Group                           nogroup

SystemLog                       /var/log/proftpd.log
TransferLog                     /var/log/xferlog

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

# A basic anonymous FTP server configuration.
# To enable this, remove the user ftp from /etc/ftpusers.
<Anonymous ~ftp>
  RequireValidShell             off
  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                    50

  # 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>

  # An upload directory that allows storing files but not retrieving
  # or creating directories.
#  <Directory incoming/*>
#    <Limit READ>
#      DenyAll
#    </Limit>
#
#    <Limit STOR>
#      AllowAll
#    </Limit>
#  </Directory>

#<Limit LOGIN>
#DenyAll
#AllowGroup users
#</Limit>

</Anonymous>
 
Old 05-14-2003, 05:25 AM   #3
warlock
LQ Newbie
 
Registered: May 2003
Location: Norway
Posts: 4

Original Poster
Rep: Reputation: 0
ProFTPD

Thank you verry mutch for the config file. I also have a new question: How can i set up proftp, make a account only for myself with username and password ????


(:
 
Old 05-14-2003, 06:01 AM   #4
restless
Member
 
Registered: Feb 2003
Location: Belgium
Distribution: Debian
Posts: 166

Rep: Reputation: 31
just use your linuxbox login name and password... (but not root, because root should be disabled and is disabled by default.)
 
Old 05-14-2003, 10:18 AM   #5
warlock
LQ Newbie
 
Registered: May 2003
Location: Norway
Posts: 4

Original Poster
Rep: Reputation: 0
ProFTPD

OK thank you, it's working, but if i want to make a account for other user's, how do i do this ??? Have you one example file, you see i have to take it step by step

(:
 
Old 05-14-2003, 11:17 AM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Use the adduser script if it's available for your system. Otherwise, you can use useradd (see man useradd for more info) OR there are User Administration tools in your bigger desktop environments such as KDE or GNOME.

Cool
 
Old 08-21-2003, 05:01 PM   #7
bnumark
Member
 
Registered: Jun 2003
Location: Madison, WI
Distribution: RedHat 8.0
Posts: 72

Rep: Reputation: 15
how can i change the port?
 
Old 08-21-2003, 08:01 PM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Inside the conf file, look at:
Code:
# Port 21 is the standard FTP port.
Port                            21


Cool
 
Old 08-21-2003, 11:49 PM   #9
bnumark
Member
 
Registered: Jun 2003
Location: Madison, WI
Distribution: RedHat 8.0
Posts: 72

Rep: Reputation: 15
but when i change the port, on pc accross the net, it will sit and lag, it will never connect
 
Old 08-22-2003, 01:33 AM   #10
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
When you change anything in the conf, you have to restart the server, then, to connect, you have to specify the new port:
ftp 1.2.3.4:9999

Assuming you changed it to 9999

Cool
 
Old 08-22-2003, 08:34 AM   #11
bnumark
Member
 
Registered: Jun 2003
Location: Madison, WI
Distribution: RedHat 8.0
Posts: 72

Rep: Reputation: 15
the server has been restarted, for somereason when i changed my port, i get an error that my computer is activly refusing the connection
 
Old 08-22-2003, 09:14 AM   #12
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
How are you accessing it?

Make sure your firewall isn't blocking the new port you've decided to use.

Cool
 
Old 08-22-2003, 03:34 PM   #13
bnumark
Member
 
Registered: Jun 2003
Location: Madison, WI
Distribution: RedHat 8.0
Posts: 72

Rep: Reputation: 15
SmartFTP and the firewall isnt blocking it.
 
Old 08-22-2003, 03:42 PM   #14
bnumark
Member
 
Registered: Jun 2003
Location: Madison, WI
Distribution: RedHat 8.0
Posts: 72

Rep: Reputation: 15
ok i fixed the refusing part, but it still hangs....,

(14:39:44) Leo: yeah it logs in
(14:39:50) Leo99: but then I can't get a dir listing
(14:39:58) Tyler: wait tho
(14:40:05) Tyler: can you see a lot of music?
(14:41:01) Leo: no
(14:41:08) Tyler: hmmm
(14:41:12) Leo: it gets to the part where it tries to look at whats on your server
(14:41:14) Leo: and it hangs
(14:41:20) Tyler: ohh alright
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
proftpd: proftpd startup failed tumana Linux - Newbie 14 06-17-2012 12:06 PM
[PROFTPD] Ldap and proftpd authentication wesleywest Linux - Software 1 02-22-2005 10:51 AM
Disabling the chroot in proftpd and enabling root logins on ssh/proftpd jon_k Linux - Software 1 06-16-2004 11:27 AM
proftpd help strider17 Linux - Newbie 2 02-08-2004 12:44 PM
proftpd --- need help? could someone post a working proftpd.conf i could look at ZooRoPa Linux - Networking 1 04-02-2003 07:56 PM


All times are GMT -5. The time now is 07:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration