debian

How To: follow Symbolic Links with Pure-FTPd

My need was to share a directory with a chrooted user, and with Pure-FTPd doing it is very easy.

The FAQ is very exhaustive, I recommend you read it, here in my case I go directly to the point.

From the official FAQ http://download.pureftpd.org/pub/pure-ftpd/doc/FAQ

Making a symbolic link won't work, because when you are chrooted, it means that everything outside a base directory (your user's home directory) won't be reachable, even though a symbolic link.

If you are compiling Pure-FTPd from source, add --with-virtualchroot to your ./configure options.
Binary packages are compiled with this feature turned on, and this is my case.

Open this file: /etc/default/pure-ftpd-common

and set the VIRTUALCHROOT option to TRUE, by default is set to FALSE.

# VIRTUALCHROOT:
# whether to use binary with virtualchroot support
# valid values are "true" or "false"
# Any change here overrides the setting in debconf.
#VIRTUALCHROOT=false
VIRTUALCHROOT=true

Restart the Pure-FTPd server with /etc/init.d/pure-ftpd restart.

Now you are able to create the symbolic link into the user's directory.

How to setup Static IP Address on Debian 6 squeeze

Set static IP on Debian is very simple: just edit the file /etc/network/interfaces.

During installation, if the network settings were not changed, the interfaces file is configured in DHCP mode, and looks like this:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp

To set the static IP address, you need to edit # The primary network interface code> like this:

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 192.168.0.100
gateway 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255

IMPORTANT: The above/below values, as the interface eth0, ​​are just for example, replace them with those of your network configuration.

From shell, as root ( if you are normal user, put sudo before each command ), restart the network service with this command line:

~# /etc/init.d/networking restart

Yes, as the warning say, restart is deprecated: don't worry, the service will restart correctly.

or better:

~# ifdown eth0 && ifup eth0

We're done.

Subscribe to RSS - debian