LinuxQuestions.org
Register a domain and help support LQ
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 04-20-2005, 02:41 AM   #1
Brothaigh
LQ Newbie
 
Registered: Mar 2005
Posts: 2

Rep: Reputation: 0
Configuring WU-FTPD


I'm very new to Linux, but I want to be able to set up FTP access for various users who must be chrooted to directories containing their webpages and still have access to the subdirectories within. They need read and write access as well. I just can't seem to figure out how to go about this using the configuration files, and the HOW-TO's don't make much sense either. Hopefully one of ya'll could spread some light on the situation.
 
Old 04-20-2005, 10:49 AM   #2
wesleywestervel
LQ Newbie
 
Registered: Aug 2004
Posts: 13

Rep: Reputation: 0
I'm using PRO-ftp since it's more secure + has more options then WU-ftp.

links:
http://proftpd.org
http://forums.proftpd.org/phpBB2/

My install guide ( questions are welcome)

First off lets install the FTP-server on your linux machine
go to non-grapichal mode ( textmode) login.

#download proftpd

command:

Code:
wget ftp://ftp.proftpd.org/distrib/source...1.2.10.tar.bz2
this will store proftpd in the direcotry where you executed this command
#installing/configureing proftpd
in the direcotry where you download proftpd

Code:
tar -xzvf proftpd-1.2.10.tar.bz2
cd proftpd-1.2.10 ( or the mapname of proftpd)
make
make install
#now proftpd is installed you have to configure the config file (proftpd.conf) that is located at /usr/local/etc/:

Code:
cd /usr/local/etc/
vi proftpd.conf
edit the following

Code:
# A basic anonymous configuration, no upload directories.  If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
<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
  DisplayFirstChdir		.message

  # Limit WRITE everywhere in the anonymous chroot
  <Limit WRITE>
    DenyAll
  </Limit>
</Anonymous>
change <Anonymous ~ftp> into <Anonymous /your/direcorty/you/want/to/share> for example <Anonymous /home>

hit esc
shift + :
w
q
enter

#now for the finishing touch

#give right to the map for testing ( nog save chmod)

Code:
chmod 777 path_of_the_map_you_gave_above
for example
chmod 777 /home
create 2 users with a group ( if then don't exist )

Code:
groupadd ftp
groupadd nogroup

useradd -g ftp ftp
useradd -g nogroup nobody
now you can start proftpd
Code:
cd /usr/local/sbin/
./proftpd -c /usr/local/etc/proftpd.conf
all users created on the system can login with the password and username

P.S.
all above works local. if you want some friends to access your ftp sever from outside your local lan, you have to edit IPTABLES if your running those, forward a port.
http://www.portforward.com/ here is some info about your router/modem.
you should forward 20 21 to the IP that your linux machine is running
 
  


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
FTPD default permissions (wu-ftpd) bd1308 Linux - Software 1 10-22-2005 07:01 AM
about ftpd pulven Linux - Software 2 01-14-2005 09:57 AM
Disabling Kerberos ftpd for wu-ftpd mortisd Linux - Software 0 08-31-2004 06:37 AM
wu-ftpd new at this... ckone Linux - Software 1 04-04-2003 01:36 PM
wu-ftpd hommih Linux - Networking 0 02-06-2002 08:06 PM


All times are GMT -5. The time now is 02:58 PM.

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