Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How do you set up a FTP for a User in linux?
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
kevin467
n00b
n00b


Joined: 24 Oct 2002
Posts: 30
Location: Athens, GA

PostPosted: Wed Apr 09, 2003 5:39 pm    Post subject: How do you set up a FTP for a User in linux? Reply with quote

NT
I have one set up for my main user, was set up by an old friend (since moved away), but I want to start a generic user and ftp so my friends can get just files that I put in there off my computer, and how do I locked it to where they can only see whats in that user/ftp. Also, I run gentoo/kde, how do I set it up where my wifes laptop will load *proftpd* on start up?

ty in advance....
_________________
[img:76aaf9594f]http://home.bellsouth.net/coDataImages/p/Groups/117/117107/folders/68780/441324sigsystem4.jpg[/img:76aaf9594f]
Back to top
View user's profile Send private message
magnet
Guru
Guru


Joined: 16 Mar 2003
Posts: 582
Location: france

PostPosted: Wed Apr 09, 2003 9:04 pm    Post subject: Reply with quote

to run proftpd at boot you need to do :

Code:

rc-update add proftpd default


remenber , you'll need to setup proftpd before.
_________________
every step aim at glory.
Back to top
View user's profile Send private message
rizzo
Retired Dev
Retired Dev


Joined: 30 Apr 2002
Posts: 1067
Location: Manitowoc, WI, USA

PostPosted: Wed Apr 09, 2003 9:05 pm    Post subject: Reply with quote

I recommend pure-ftpd over proftpd any day. For pure-ftpd you just need to create an ftp user via the purepw command set. Look at the pure-ftpd homepage for howto.

As far as startup goes, there should be an /etc/init.d/ script that you would add to the default runlevel via rc-update.
Back to top
View user's profile Send private message
guy
Apprentice
Apprentice


Joined: 31 Mar 2003
Posts: 286
Location: USA

PostPosted: Thu Apr 10, 2003 4:32 pm    Post subject: Reply with quote

I use vsftp myself... just as easy as pure-ftp IMO.
If you want to use it, here it goes...

Before you go, you should have xinet.d set up. If you dont,
Code:

emerge xinetd
rc-update add xinetd default


Now you should be ready for vsftpd:
Code:

emerge vsftpd

Once that's installed, edit the file /etc/vsftpd/vsftpd.conf to your liking. It's very well documented. It seems you will want to turn anonymous_enable=NO.

Now, you need to add a user/group for the FTP.
Code:

groupadd ftpgroup
useradd -g ftpgroup -d /home/ftp -p password ftpuser

Unfortunately I dont know how to get symbolic links to work with vsftp while chrooting is enabled. They DO work if you dont chroot though-- if you don't chroot, you can through all the symlinks you want in /home/ftp and they should be accessible by your friends (of course you can make /home/ftp anything you want, like /ftp) (to add a link, just do ln -s target_of_link link_location)

The last step is to go into /etc/xinetd.d/ folder and edit vsftpd file. Add the line
only_from 0.0.0.0 to allow any IP to connect and change disable = yes to disable = no.

Fire up xinetd and all should be good (you can do /etc/init.d/xinetd start)
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