Glftpd Install Succefull..

Ask questions regarding Gentoox, Gentoo and Linux in general in these forums and we'll do our best to help you!
Post Reply
Cpasjuste
Linux User
Posts: 14
Joined: Tue Feb 03, 2004 4:45 am

Glftpd Install Succefull..

Post by Cpasjuste »

If u need a very nice ftp on ur xbox, u should try glftpd.
I will not list all possibility, take a look at http://www.glftpd.com.

First update the ftp tool (It will be usefull) :
#emerge ftp

Then install glftpd (it will install xinetd too)
#emerge glftpd

Edit the glftpd startup script :
# pico /etc/xinetd.d/glftpd


service glftpd
{
disable = no
flags = REUSE NAMEINARGS
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/tcpd
server_args = /opt/glftpd/bin/glftpd -l -i -z cert=/etc/glftpd-dsa.pem $
}

Edit ur glftpd config file to sweet ur needs (the default one should work)

# pico /opt/glftpd/glftpd.conf


Edit ur service file and add the glftpd service if its not here :

# pico /etc/services

Add this line where u want : glftpd 21/tcp


Edit the xinetd config file to allow user from internet.

# pico /etc/xinetd.conf



defaults
{
# only_from = localhost <=== I HAVE COMMENT THIS LINE
instances = 60
log_type = SYSLOG authpriv info
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}

includedir /etc/xinetd.d




Then Start glftpd by the xinetd procces :

/etc/init.d/xinetd start


Connect FROM LOCALHOST to the new installed glftpd to add an new user and ip :

# ftp
ftp> open localhost
Connected to localhost.
220 MY SITE NAME (glftpd 1.32_Linux+TLS) ready.
Name (localhost:root):glftpd
234 AUTH SSL successful
[SSL Cipher EDH-DSS-DES-CBC3-SHA]
331 Password required for glftpd.
Password:glftpd

Yes root login and passwd is glftpd / glftpd


Add an user :

ftp> site adduser My_Nick My_Pass My_ident@My_iP


Exemple : site adduser gentoox xbox *@* (will allow all logins from all ip and with any ident)

Exemple : site adduser gentoox xbox cpasjuste@192.168.*.* (will allow connection from my localnetwork and only if i put cpasjuste in the ident/firewall tab in flashFXP)

Enjoy ...

Ps: You should install a firewall if u use ur xbox as a server, i have try
shorewall ( # emerge shorewall ) and have try the http://www.shorewall.net docs to set it easly.
Post Reply