zeldor.biz

Linux, programming and more

Copyright © 2025
Log in

Internet Super Server

February 12, 2013 by Igor Drobot Leave a Comment

super-server

Inetd listens for connections on certain sockets. When a connection is found on one of its sockets, it decides what service the socket corresponds to, and invokes a program to service the request. The server program is invoked with the service socket as its standard input, output and error descriptors.

Essentially, inetd allows running one daemon to invoke several others [Read more…]

Filed Under: Bash, Debian, FTP, HTTP, Linux, Networking, Ubuntu Tagged With: Debian, FTP, inetd, ssh

Show hidden files in proftpd

January 31, 2011 by Igor Drobot Leave a Comment

If you can’t see hidden files in proftpd ( files with a .(dot), like .htaccess), you can force the files to be displayed in almost all clients with a server wide variable in your proftpd.conf:

Chnge to -a if exists already or add to the bottom:

1
ListOptions -a

ListOptions -a

Restart proftpd and reconnect.

Filed Under: FTP, Linux Tagged With: FTP, ProFTPD

Understanding FTP using commands

November 29, 2010 by Igor Drobot Leave a Comment

FTP and SMTP are simple text based protocols, I show you how to get some files without a graphical FTP-Client.

Connect with Telnet:

1
2
3
4
5
6
id@acer:~$ telnet debianuser.org 21
Connected to debianuser.org.
USER anonymous
PASS anonymous
PASV
RETR deli-0.8.0-core.iso

id@acer:~$ telnet debianuser.org 21 Connected to debianuser.org. USER anonymous PASS anonymous PASV RETR deli-0.8.0-core.iso

[Read more…]

Filed Under: Bash, FTP, Linux Tagged With: command line ftp, FTP

FTP over IPv6

September 4, 2010 by Igor Drobot Leave a Comment

The standard ftp command/client does not support IPv6 resolution.

A very powerful IPv6 ftp client alternative is lftp.

1
2
3
id@acer:~$ lftp ipv6.idrobot.net
lftp ipv6.idrobot.net:~> dir
-rw-r--r--   1 ftp      ftp             0 Aug 26 17:28 test.txt

id@acer:~$ lftp ipv6.idrobot.net lftp ipv6.idrobot.net:~> dir -rw-r--r-- 1 ftp ftp 0 Aug 26 17:28 test.txt

And of course Firefox does FTP over IPv6:
ftp://ipv6.idrobot.net OR ftp://[2a01:4f8:131:51e2::10]

Filed Under: FTP, IPv6, Linux, Networking Tagged With: FTP, ftp ipv6, Ipv6, lftp ipv6

Pure-FTPd

August 7, 2010 by Igor Drobot Leave a Comment

Pure-FTPd is a free (BSD), secure, production-quality and standard-conformant FTP server. It doesn’t provide useless bells and whistles, but focuses on efficiency and ease of use. It provides simple answers to common needs, plus unique useful features for personal users as well as hosting providers.

The following howto is aimed at installing and configuring a FTP-server, based on Pure-FTPd, which supports virtual user.

Install Pure-FTPd:

1
2
3
aptitude update ; aptitude install pure-ftpd
groupadd ftpgroup
useradd -g ftpgroup -d /dev/null -s /etc ftpuser

aptitude update ; aptitude install pure-ftpd groupadd ftpgroup useradd -g ftpgroup -d /dev/null -s /etc ftpuser

Create user:
Create our first FTP user. In this example our user will be “zeldor”:

1
pure-pw useradd zeldor -u ftpuser -g ftpgroup -d /home/pubftp/zeldor -N 10

pure-pw useradd zeldor -u ftpuser -g ftpgroup -d /home/pubftp/zeldor -N 10

In the command above, we gave zeldor a limit of 10 MB disk space with option “-N 10”

By default all users will be saved in “/etc/pure-ftpd/pureftpd.passwd”, but first we have to update the pure-ftpd Database:

1
pure-pw mkdb

pure-pw mkdb

This database is only a binary file but it is ordered and has an index for quick access.

Get user information:
Show all available user and their home directories.

1
pure-pw list

pure-pw list

Get information for a specific user:

1
pure-pw show zeldor

pure-pw show zeldor

Reset password for a specific user (don’t forget to update your database):

1
2
pure-pw passwd zeldor
pure-pw mkdb

pure-pw passwd zeldor pure-pw mkdb

Configuration:

1
2
vim /etc/default/pure-ftpd-common
STANDALONE_OR_INETD=standalone

vim /etc/default/pure-ftpd-common STANDALONE_OR_INETD=standalone

Server type should be standalone.

Use user database:

1
2
cd /etc/pure-ftpd/auth
ln -s /etc/pure-ftpd/conf/PureDB 50pure

cd /etc/pure-ftpd/auth ln -s /etc/pure-ftpd/conf/PureDB 50pure

Restart and enjoy :)

1
/etc/init.d/pure-ftpd restart

/etc/init.d/pure-ftpd restart

Filed Under: Debian, FTP, Linux Tagged With: FTP, FTP Server, Pure-FTPd

  • 1
  • 2
  • Next Page »
Yeaaah Cookie! We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok