LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-22-2005, 08:43 PM   #1
tntcoder
Member
 
Registered: Sep 2003
Distribution: Arch
Posts: 89

Rep: Reputation: 15
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
 
Old 08-22-2005, 08:49 PM   #2
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Honolulu, HI
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
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
 
Old 08-22-2005, 09:06 PM   #3
tntcoder
Member
 
Registered: Sep 2003
Distribution: Arch
Posts: 89

Original Poster
Rep: Reputation: 15
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.
 
Old 08-22-2005, 09:12 PM   #4
dmildh
LQ Newbie
 
Registered: Aug 2005
Location: San Diego
Posts: 5

Rep: Reputation: 0
/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
 
Old 08-22-2005, 09:24 PM   #5
tntcoder
Member
 
Registered: Sep 2003
Distribution: Arch
Posts: 89

Original Poster
Rep: Reputation: 15
Thanks works fine
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftpd Problems jazee Linux - Software 6 10-14-2005 01:41 AM
vsftpd problems vswr31 Linux - Software 6 07-18-2005 02:25 PM
VSFTPD problems cwolf78 Linux - Software 10 05-12-2005 11:28 PM
VSFTPD problems RSKeisuke Linux - Networking 5 07-27-2004 09:28 PM
vsftpd problems liv-n-letliv Linux - Networking 7 06-16-2003 03:36 PM


All times are GMT -5. The time now is 10:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration