SliTaz SliTaz Forum

You are not logged in.

#1 2026-02-16 21:23:20

ribeirego
Member
Registered: 2012-11-07
Posts: 19

vsftpd (ftp server)

i installed vsftpd

i dont found vsftpd script into inet.d for start/restart/status

ftp server dont start auto... i read over daemons in slitaz first time... but dont understand now... need more it

(read tutorials install and config vsftpd ok)

how can start in command line vsftpd :: service, vsftpd script...

Offline

#2 2026-02-17 11:08:34

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: vsftpd (ftp server)

Hi ribeirego,

from what I read in the INSTALL file https://security.appspot.com/downloads/vsftpd-3.0.5.tar.gz

just add the line in /etc/inetd.conf

ftp stream tcp nowait root /usr/sbin/tcpd /usr/local/sbin/vsftpd

or at least that's what I understood ;-)

You may want to run the binary from an inetd of some kind, because this can

give you extra features - e.g. xinetd has a lot of settings. (Note that

vsftpd's inbuilt listener covers most of the more useful xinetd settings).

5a) If using standard "inetd", you will need to edit /etc/inetd.conf, and add

a line such as:

ftp stream tcp nowait root /usr/sbin/tcpd /usr/local/sbin/vsftpd

(Make sure to remove or comment out any existing ftp service lines. If you

don't have tcp_wrappers installed, or don't want to use them, take out the

/usr/sbin/tcpd part).

inetd will need to be told to reload its config file:

kill -SIGHUP [c]pidof inetd[/c]

Offline

#3 2026-02-17 23:16:00

ribeirego
Member
Registered: 2012-11-07
Posts: 19

Re: vsftpd (ftp server)

thanks givor for your reply... but dont work

i was running vsftpd in standlone mode

change for inetd to try your edit line...

i need read more about init and daemons... i will try in next weeks...

Offline

#4 2026-02-18 09:51:30

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: vsftpd (ftp server)

I will briefly summarize the processes:

1) inetd launches ondemand on instructions from services.conf, the daemon on demand from the network.

2) If it works standalone, you can start it by entering the startup line in /etc/init.d/local.sh.

3) If you want a daemon running permanently in the background, create the launcher in /etc/init.d and add the entry in /etc/rcS.conf to the run daemons line.

3bis) To create a launcher, you can copy/edit any script in /etc/init.d and change the name and executable accordingly.

An example:

#!/bin/sh

# /etc/init.d/vsftpd: Start, stop vsftpd deamon on SliTaz, at boot

# time or with the command line.

#

# To start daemon at boot time, just put the right name in the $RUN_DAEMONS

# variable of /etc/rcS.conf and configure options with /etc/daemons.conf.

#

. /etc/init.d/rc.functions

. /etc/daemons.conf

NAME=vfstpd

DESC="vsftpd deamon"

DAEMON=/usr/local/sbin/vsftpd

OPTIONS=$VSFTPD_OPTIONS

PIDFILE=/var/run/vsftpd.sock

case "$1" in

    stop)

        echo -n "Stopping $DESC: $NAME... "

        killall -q vsftpd

        rm -f $PIDFILE

        status

        ;;

    start)

        if [ ! -e $PIDFILE ]; then

            echo -n "Starting $DESC: $NAME... "

            $DAEMON $OPTIONS

            status

        else

            echo -n "Not starting $DESC: $DESC is already running"

            false

            status

        fi

        ;;

    *)

        echo ""

        echo -e "33[1mUsage:33[0m /etc/init.d/[c]basename $0[/c] [start|stop]"

        echo ""

        exit 1

        ;;

esac

exit 0

Offline

Registered users online in this topic: 0, guests: 1
[Bot] CCBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.019 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]