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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-12-2003, 12:06 PM
|
#1
|
LQ Newbie
Registered: May 2003
Location: Norway
Posts: 4
Rep:
|
ProFTPD
Hello.... I new to Linux and have some trouble with proftp
Can somebody please post a valid configuration file ????????
|
|
|
05-12-2003, 12:20 PM
|
#2
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
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>
|
|
|
05-14-2003, 04:25 AM
|
#3
|
LQ Newbie
Registered: May 2003
Location: Norway
Posts: 4
Original Poster
Rep:
|
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 ????
(:
|
|
|
05-14-2003, 05:01 AM
|
#4
|
Member
Registered: Feb 2003
Location: Belgium
Distribution: Debian
Posts: 166
Rep:
|
just use your linuxbox login name and password... (but not root, because root should be disabled and is disabled by default.)
|
|
|
05-14-2003, 09:18 AM
|
#5
|
LQ Newbie
Registered: May 2003
Location: Norway
Posts: 4
Original Poster
Rep:
|
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
(:
|
|
|
05-14-2003, 10:17 AM
|
#6
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
08-21-2003, 04:01 PM
|
#7
|
Member
Registered: Jun 2003
Location: Madison, WI
Distribution: RedHat 8.0
Posts: 72
Rep:
|
how can i change the port?
|
|
|
08-21-2003, 07:01 PM
|
#8
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Inside the conf file, look at:
Code:
# Port 21 is the standard FTP port.
Port 21
Cool
|
|
|
08-21-2003, 10:49 PM
|
#9
|
Member
Registered: Jun 2003
Location: Madison, WI
Distribution: RedHat 8.0
Posts: 72
Rep:
|
but when i change the port, on pc accross the net, it will sit and lag, it will never connect
|
|
|
08-22-2003, 12:33 AM
|
#10
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
08-22-2003, 07:34 AM
|
#11
|
Member
Registered: Jun 2003
Location: Madison, WI
Distribution: RedHat 8.0
Posts: 72
Rep:
|
the server has been restarted, for somereason when i changed my port, i get an error that my computer is activly refusing the connection
|
|
|
08-22-2003, 08:14 AM
|
#12
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
How are you accessing it?
Make sure your firewall isn't blocking the new port you've decided to use.
Cool
|
|
|
08-22-2003, 02:34 PM
|
#13
|
Member
Registered: Jun 2003
Location: Madison, WI
Distribution: RedHat 8.0
Posts: 72
Rep:
|
SmartFTP and the firewall isnt blocking it.
|
|
|
08-22-2003, 02:42 PM
|
#14
|
Member
Registered: Jun 2003
Location: Madison, WI
Distribution: RedHat 8.0
Posts: 72
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 02:40 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|