VSFTPD Problems
Hi,
I just installed slackware linux, and also installed vsftpd and setup its config. Problem 1: when i run vsftpd in a terminal it starts the server, but it just hangs in the terminal? kind of dosnt run as a standalone service, if i close the terminal window the ftp server stops. How can i add it to to start as a background service? Problem 2: I can only login to the server as root, i have set up another user and added it to the root group (i know this isnt secure im only testing), and gave it a home directory e.t.c but i cannot login as that user. Can anyone tell me how to let users other than root login? Thanks Jack |
vsftp is a good choice for a ftp server. Over in the arch linux wikki there are some really good instuctions on setting it up. I know ur running slack, but make any changes that might be necessary.
http://wiki.archlinux.org/index.php/VSFTP |
Hi, thanks for that ive fixed the user problem. But im not to sure how to add the inetd service.
The site says to edit: /etc/xinetd.d/vsftpd but i dont have that file or xinetd.d i do have an inetd.d but i cant see what i should add to it :S Sorry im very new to this. |
/etc/init.d/vsftp
You may just want to start it from a startup script in /etc/init.d/vsftp.
Here is a copy of mine from a REL 4 box. #!/bin/bash # # vsftpd This shell script takes care of starting and stopping # standalone vsftpd. # # chkconfig: - 60 50 # description: Vsftpd is a ftp daemon, which is the program \ # that answers incoming ftp service requests. # processname: vsftpd # config: /etc/vsftpd/vsftpd.conf # Source function library. . /etc/rc.d/init.d/functions # Source networking configuration. . /etc/sysconfig/network # Check that networking is up. [ ${NETWORKING} = "no" ] && exit 0 [ -x /usr/sbin/vsftpd ] || exit 0 RETVAL=0 prog="vsftpd" start() { # Start daemons. if [ -d /etc/vsftpd ] ; then for i in `ls /etc/vsftpd/*.conf`; do site=`basename $i .conf` echo -n $"Starting $prog for $site: " /usr/sbin/vsftpd $i & RETVAL=$? [ $RETVAL -eq 0 ] && { touch /var/lock/subsys/$prog success $"$prog $site" } echo done else RETVAL=1 fi return $RETVAL } stop() { # Stop daemons. echo -n $"Shutting down $prog: " killproc $prog RETVAL=$? echo [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog return $RETVAL } # See how we were called. case "$1" in start) start ;; stop) stop ;; restart|reload) stop start RETVAL=$? ;; condrestart) if [ -f /var/lock/subsys/$prog ]; then stop start RETVAL=$? fi ;; status) status $prog RETVAL=$? ;; *) echo $"Usage: $0 {start|stop|restart|condrestart|status}" exit 1 esac exit $RETVAL |
Thanks works fine :)
|
All times are GMT -5. The time now is 12:37 PM. |