LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices



Reply
 
Search this Thread
Old 11-19-2002, 09:21 AM   #1
5amYan
Member
 
Registered: Apr 2002
Location: The District
Distribution: FreeBSD, OBSD maybe Gentoo and Winblech XP
Posts: 291

Rep: Reputation: 30
500 OOpS error w/ vsftpd


I modified inetd.conf to
ftp stream tcp nowait root/usr/local/libexec/vsftpd

killall -HUP <pid>

try ftping to box and it returns error

500 OOPS: vsftpd missing argv[0]

man vsftpd says synopsis
vsftpd [config file]

Does this mean I have to tell it where to locate the defualt config file??

Try anyways.

ftp stream tcp nowait root/usr/local/libexec/vsftpd/etc/vsftpd.conf

killall -HUP <pid>

try ftping to box and it still returns error

500 OOPS: vsftpd missing argv[0]
 
Old 11-20-2002, 04:00 AM   #2
Blackknight
Member
 
Registered: Apr 2002
Location: Rouen, France
Distribution: Slackware, FreeBSD
Posts: 34

Rep: Reputation: 15
I think I'll change your inetd.conf line to
ftp stream tcp nowait root /usr/local/libexec/vsftpd vsftpd /etc/vsftpd.conf
Remember, in C (and C++), argc[0] is the name of the program. So in your case, it's vsftpd and not the config file.
To be short, you forgot to write vsftpd a second time. Well, I think that's your problem ;-)
 
Old 11-20-2002, 09:59 AM   #3
5amYan
Member
 
Registered: Apr 2002
Location: The District
Distribution: FreeBSD, OBSD maybe Gentoo and Winblech XP
Posts: 291

Original Poster
Rep: Reputation: 30
OK that solves the

500 OOPS: vsftpd missing argv[0]

error.

Now when I try to ftp to the box it says.


500 OOPS: cannot locate user specified in 'ftp_username'

the vsftpd.conf has
anonymous_enable=YES
local_enable=YES

and couldn't find

chroot_local_users=YES

so I added it. The same error occurs with or without the chroot line.
 
Old 11-20-2002, 10:20 AM   #4
Blackknight
Member
 
Registered: Apr 2002
Location: Rouen, France
Distribution: Slackware, FreeBSD
Posts: 34

Rep: Reputation: 15
I think that ftp_username must be specified in the vsftpd.conf and represents the user running vsftpd.
But it's beyond my knowledge because it's vsftpd specific.
Sorry
 
Old 11-23-2003, 08:45 PM   #5
hea12
LQ Newbie
 
Registered: Nov 2003
Posts: 1

Rep: Reputation: 0
I solved this problem.
I always lock /etc/passwd after install Linux .
But I forget to install vsftpd this time .
vsftpd package has to modify /etc/passwd /etc/shadow during installation.
But it cannot do it when I lock /etc/passwd.

So, you have to change /etc/passwd /etc/shadow by yourself.
Add ftp.... line to /etc/passwd /etc/shadow

/etc/passwd
:
:
gopher:x:13:30:gopher:/var/gopher:/sbin/nologin
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
nobody:x:99:99:Nobody:/:/sbin/nologin
:
:

/etc/shadow
:
:
gopher:*:12326:0:99999:7:::
ftp:*:12326:0:99999:7:::
nobody:*:12326:0:99999:7:::
:
:

Then the vsftpd response correctly.

 
Old 11-08-2006, 06:59 PM   #6
kics
LQ Newbie
 
Registered: Nov 2006
Posts: 1

Rep: Reputation: 0
help

hi, i'm having the same prob... but i dont know where to add the lines, here's my config

[root@localhost etc]# cat passwd
root:x:0:0:root:/root:/bin/bash
daemon:x:2:2:daemon:/sbin:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin
mysql:x:27:27:mysql:/var/lib/mysql:/bin/bash
mailnull:x:47:47::/var/spool/mailqueue:/sbin/nologin
apache:x:48:48:Apache:/var/www:/sbin/nologin
smmsp:x:51:51::/var/spool/mqueue:/sbin/nologin
emerge:x:70:70:Conary emerge build user:/var/conary/emerge:/sbin/nologin
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
raa-web:x:91:91:rPath Appliance Agent:/var/lib/raa/:/sbin/nologin
nobody:x:99:99:Nobody:/:/sbin/nologin
anonymous:x:500:500::/srv/mediawiki/images:/bin/bash
[root@localhost etc]#

AND

[root@localhost etc]# cat shadow
root:$1$/6R9HmQg$WRP2LWBVap/G/yboKvfPc/:13447:0:99999:7:::
daemon:*:13437:0:99999:7:::
lp:*:13437:0:99999:7:::
mail:*:13437:0:99999:7:::
uucp:*:13437:0:99999:7:::
mysql:*:13437:0:99999:7:::
mailnull:*:13437:0:99999:7:::
apache:*:13437:0:99999:7:::
smmsp:*:13437:0:99999:7:::
emerge:*:13437:0:99999:7:::
sshd:*:13437:0:99999:7:::
raa-web:*:13437:0:99999:7:::
nobody:!!:13445:0:99999:7:::
anonymous:!!:13453:0:99999:7:::
[root@localhost etc]#

so where do i add the lines ?

Last edited by kics; 11-08-2006 at 07:00 PM.
 
  


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
500 OOPS: vsftpd: must be started as root userbr Linux - Networking 3 06-27-2011 01:44 AM
500 OOPS: unrecognised variable in config file c0c0deuz Linux - Networking 10 04-05-2007 06:09 PM
VSFTP: 500 OOPS: unrecognised variable in config file snapper64 Linux - Software 4 07-01-2005 05:16 PM
VSFTPD with 500 oops :vsftpd: missing argv[0] mole_13 Linux - Newbie 0 05-04-2005 02:05 AM
500 OOPS: child died pandora Linux - Networking 1 02-10-2003 12:21 PM


All times are GMT -5. The time now is 01:02 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration