proftpd setting up a server.

Ask questions regarding Gentoox, Gentoo and Linux in general in these forums and we'll do our best to help you!
Post Reply
brucett
Novice
Posts: 20
Joined: Sun Dec 26, 2004 12:31 pm

proftpd setting up a server.

Post by brucett » Tue Mar 29, 2005 8:58 pm

I have just finished setting up my samba server and it is working perfectly as intended.

Now i want to be able to set up an ftp server preferably using proftpd as thats the one i have emerged. but that doesnt really matter. As this Xbox runs 24/7 i want to know so i can access it wherever in the world. ie. i type into a ftp client an ip,port,user,pass and i will be able to access files off it from wherever.

If anyone could help with some basic .conf file to get me started on this and some commands it would be appreciated.

Current System: Xbox Xecuter 2.6 flashed with BootLoader 5.1a, 200gb HD.

brucett
Novice
Posts: 20
Joined: Sun Dec 26, 2004 12:31 pm

Post by brucett » Tue Mar 29, 2005 9:16 pm

got it working as a simple ftp between my linux xbox and windows pc. Thats a start! Now need to know how to open ports and stuff i think in order to get this baby running.

jeokeefx
Novice
Posts: 20
Joined: Thu Mar 24, 2005 3:13 pm

Post by jeokeefx » Wed Mar 30, 2005 8:00 pm

im not sure exactly what you mean , do you have a firewall installed , do you have a router ?

Code: Select all

if its a firewall , simply open port 21 

if you have a router , port forward port 21 ..
what i usually do is edit the /etc/proftpd/proftpd.conf file simply by adding the line below to the very bottom of the file

Code: Select all

defaultroot ~
then create a user

Code: Select all

useradd -m website
passwd website
make that users home directory the http root directory

Code: Select all

usermod -d /var/www/localhost website
then you can upload documents to your apache directory and the user is stuck in that directory because of the defaultroot entry

thecrackerjack
Newbie
Posts: 3
Joined: Wed Jan 18, 2006 8:58 pm

Post by thecrackerjack » Wed Feb 22, 2006 1:23 pm

thank you very much for the user set up help, but when i try to upload a file to the modified directory of the user it tells me i do not have permissions to write to the file. i'm guessing i need to chmod it to 775 and add my new user to to the group that owns the folder. thing is i dont recall how to check and see the current groups owner of a file hmmmmmm amazing what one forgets in the summer

thank you again

orochi
Gentoox Guru!
Posts: 606
Joined: Sun Oct 24, 2004 8:11 am

Post by orochi » Wed Feb 22, 2006 7:54 pm

man chmod
man chown


dont worry about chmod 775 ing the file, you wont be able to write a file until the user you are logged in has permission to do so, add him to the group of the folder you want to write to

User avatar
zlasher
Adept
Posts: 63
Joined: Mon Jan 30, 2006 10:38 am
Location: Norway
Contact:

Post by zlasher » Tue Apr 04, 2006 10:37 am

Just a small hint.. (I stumbeled over this problem) Proftp may seem a bit slow - this could be (probably is) caused by reverse DNS.. by adding these two parameters to the proftpd.conf file - logon and listing dirs will be a lot faster.. (probably already is in the default installations - right Shallax?) - If you do a native install, or emerge proftpd yourself - this could be a good thing to keep in mind..


IdentLookups off
UseReverseDNS off



Steinar T
Xbox v1.1, Xtender, Xecuter 3CE
Gentoox Pro 4.1 native
http://xboxlinux.mine.nu

Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests