LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-21-2005, 10:38 PM   #1
Logarithim
LQ Newbie
 
Registered: Apr 2005
Posts: 16

Rep: Reputation: 0
Vsftpd


Im having trouble setting up vsftpd. I have no idea if its running or njot and I have no idea how to add a user who can post things to download.

I know that im a total nub but any information on how to start would help.
Ive tried the installation guide on the vsftpd site, but it just messed me up even more.

Thanks,
Logarithim
 
Old 05-21-2005, 11:21 PM   #2
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
Code:
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=077
anon_upload_enable=NO
anon_mkdir_write_enable=NO
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_file=/var/log/vsftpd.log
xferlog_std_format=YES
idle_session_timeout=600
data_connection_timeout=120
nopriv_user=ftp
async_abor_enable=YES
ftpd_banner=Slackbox FTP
pasv_max_port=2002
Here is my vsftpd.conf file -- this allows only people with an account on the FTP server to login.

Code:
ps -aux | grep vsftp
will tell you if vsftpd is running.
 
Old 05-22-2005, 09:20 PM   #3
Logarithim
LQ Newbie
 
Registered: Apr 2005
Posts: 16

Original Poster
Rep: Reputation: 0
Okay, vsftpd isnt running. and whenever i go to /usr/local/sbin and do vsftpd &
it says it needs to be configured from inetd to run.
How do i start it up so people can connect.
And then how do i set up a user so that i can grab files from it.
HELP!

TYhank you.
Logarithim
 
Old 05-22-2005, 09:22 PM   #4
Logarithim
LQ Newbie
 
Registered: Apr 2005
Posts: 16

Original Poster
Rep: Reputation: 0
Here is another error i get

root@Logarithim:/usr/local/sbin# vsftpd &
[1] 6362
500 OOPS: could not bind listening IPv4 socket
 
Old 05-22-2005, 09:24 PM   #5
Logarithim
LQ Newbie
 
Registered: Apr 2005
Posts: 16

Original Poster
Rep: Reputation: 0
The other error:
root@Logarithim:/usr/local/sbin# vsftpd &
[2] 6376
500 OOPS: vsftpd: not configured for standalone, must be started from inetd
 
Old 05-22-2005, 09:39 PM   #6
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
Edit the file /etc/inetd.conf and add vsftpd there as service.
 
Old 05-22-2005, 09:53 PM   #7
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
Here is my entry in /etc/inetd.conf
Code:
ftp     stream  tcp     nowait          root    /usr/sbin/tcpd         /usr/local/sbin/vsftpd
 
Old 05-23-2005, 10:49 AM   #8
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
mdarby, have you a tip to chroot an user in a specific directory,
but not in his /home ?
 
Old 05-23-2005, 11:59 AM   #9
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
From:http://www.howtoforge.com/forums/showthread.php?t=60

If you want to chroot a user to another directory than his home directory, simply put a dot (.) in the path to his home directory in /etc/passwd:

admin:x:1000:1000:admin:/home/./admin:/bin/bash

would chroot the user admin to /home instead of /home/admin.
 
Old 05-23-2005, 01:14 PM   #10
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Well, in fact I have a local user and for web testing I needed to chroot
him in the /var/www/site directory when he login with ftp, when login
in system, he should not be chrooted and go in his home dir.

Anyway thanks for this tip
 
Old 05-23-2005, 01:39 PM   #11
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
Could you chroot him in his home directory with a shortcut to /var/www/site?
 
Old 05-23-2005, 02:01 PM   #12
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Well I wanted to do a sort of mirror for a remote web account

This is not important, this was only for testing, thanks for the shortcut though

Last edited by keefaz; 05-23-2005 at 02:02 PM.
 
Old 05-23-2005, 04:35 PM   #13
username17
Member
 
Registered: Aug 2004
Location: Norfolk VA
Distribution: Slackware 11
Posts: 230

Rep: Reputation: 30
Hello,
I ran into the same problem with CHROOTing with vsftp.
I just changed the users home directory to the directory that I wanted the user to be jailed in.
I also set the users shell to false, so the account can't login to gain shell access either.

You might want to look into trying that, if you still want to login as that user, the /bin/false might not be a good idea.
-Jason
 
Old 05-24-2005, 05:32 PM   #14
Logarithim
LQ Newbie
 
Registered: Apr 2005
Posts: 16

Original Poster
Rep: Reputation: 0
I have vsftpd as a service, but it still isnt working.

Logarithim
 
Old 05-24-2005, 05:46 PM   #15
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
By service do you mean it's started via inetd? Or by running the actual program (./vsfptd).

Does /var/log/vsftpd.log have anything to say?
 
  


Reply



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 settingd and VSFTPD DEAD BUT SUBSYS LOCKED pc_copat Linux - Newbie 15 11-05-2009 10:31 PM
VSFTPD:How to have vsftpd ask for anon user to "send email for password"? dmurray8888 Linux - Networking 1 08-31-2008 06:04 PM
vsftpd.conf/chroot/vsftpd.chroot_list issue Jerman Linux - Security 2 06-01-2007 07:24 PM
vsftpd, web uploads, vsftpd virtual users, apache virtual hosts, home directories jerryasher Linux - Software 7 02-18-2007 06:29 AM
VSFTPD with 500 oops :vsftpd: missing argv[0] mole_13 Linux - Newbie 0 05-04-2005 01:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:20 PM.

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
Open Source Consulting | Domain Registration