LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 07-14-2004, 05:24 AM   #1
pc_copat
LQ Newbie
 
Registered: Jul 2004
Location: turkey
Distribution: redhat 9.0
Posts: 6

Rep: Reputation: 0
Question vsftpd settingd and VSFTPD DEAD BUT SUBSYS LOCKED


hi i'm using redhat ent. 3.0 and w2k i want to use redhat for ftp server
i have problem with vsftp
i installed and configured using manuals
OK, it was running
i could make new folders,download,upload (with local user also) but couldn't delete anything,
so i changed write_enable to YES i couldn't delete again
then i changed file permissions.
Also looked at all files respect to vsftp

-vsftpd.conf
-vsftpd.ftpusers
-vsftpd.user_list
-/etc/xinetd.d/vsftpd
/etc/init.d/vsftpd

all the settings are true or i think so (according to the manuals)

and now it isn't running and it gives 530 this ftp server is anonymous only error
and when i want to restart or look status of /etc/init.d/vsftpd
it gives stop fail and i try /etc/init.d/vsftpd stop then it says

"vsftpd dead but subsys locked"

all the time i tried different things i deleted /var/lock/subsys/vsftpd
then i try again and again....
but i couldn't find where am i wrong..

i can send all vsftpd related files if anyone wants to help me and look up them


is there anyone? Please HELP ME!!!
 
Old 07-14-2004, 06:10 AM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 47
make sure vsftpd is not running as a daemon and as a service under xinetd.
 
Old 07-14-2004, 06:36 AM   #3
pc_copat
LQ Newbie
 
Registered: Jul 2004
Location: turkey
Distribution: redhat 9.0
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by ppuru
make sure vsftpd is not running as a daemon and as a service under xinetd.
i looked /etc/xinetd.d/vsftp
here what there is


service ftp
{
disable = no
socket_type = stream
wait = no
user =root
server =/usr/sbin/vsftpd
nice = 10
}


is it wrong?
 
Old 07-14-2004, 07:21 AM   #4
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 47
pls check whether you have LISTEN=yes in vsftpd.conf
 
Old 07-14-2004, 07:53 AM   #5
pc_copat
LQ Newbie
 
Registered: Jul 2004
Location: turkey
Distribution: redhat 9.0
Posts: 6

Original Poster
Rep: Reputation: 0
i tried both ways

LİSTEN=NO
and LİSTEN=YES

but nothing has changed

why it fails when i want to stop or restart vsftpd service,but when i want to start it says OK

thanks
 
Old 07-14-2004, 07:59 AM   #6
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 47
Quote:
why it fails when i want to stop or restart vsftpd service,but when i want to start it says OK
You mean to say that vsftpd is able to respond to ftp clients and you get this error only when you try to shutdown or restart. But vsftpd starts up without problems?

can you run
Code:
ps -ef|grep vsftp
to ensure vsftp is alive.

Last edited by ppuru; 07-14-2004 at 08:01 AM.
 
Old 07-14-2004, 08:59 AM   #7
pc_copat
LQ Newbie
 
Registered: Jul 2004
Location: turkey
Distribution: redhat 9.0
Posts: 6

Original Poster
Rep: Reputation: 0
i can see folders
-pub
-username

i can browse pub but can't browse username
if i want to login as username it says 530 ftp is anonymous only

then i control vsftpd files and want to restart vsftpd
first xinetd
/etc/init.d/xinetd status
/etc/init.d/xinetd restart its ok.

then
/etc/init.d/vsftpd status =====> it says vsftpsd dead but subsys locked
/etc/init.d/vsftpd start =====> OK
/etc/init.d/vsftpd stop =====> FAİLED
 
Old 07-14-2004, 11:12 PM   #8
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 47
Quote:
/etc/init.d/vsftpd status =====> it says vsftpsd dead but subsys locked
/etc/init.d/vsftpd start =====> OK
/etc/init.d/vsftpd stop =====> FAİLED
As you have decided to use vsftpd as a subservice of xinetd, use xinetd to control vsftpd.
The vsftpd startup script fails because the LISTEN=no parameter in /etc/vsftpd/vsftpd.conf tells it not to start the vsftpd as a standalone daemon.

Last edited by ppuru; 07-14-2004 at 11:14 PM.
 
Old 11-14-2006, 06:48 AM   #9
vishesh4383
LQ Newbie
 
Registered: Nov 2006
Posts: 4

Rep: Reputation: 0
subsys locked

hi
Please follow this procedure....
i had the same problem ...i got it working in the following way

just remove the vsftpd lock from /var/lock/subsys/

then in /etc/rc.d/init.d/ directory stop the xinetd daemon.
./xinetd stop

now restart the vsftpd service

service vsftpd restart

and now start the xinetd daemon again...
./xinetd start

Hope this works

Best Regards,
Vishesh Sood
 
Old 03-14-2007, 10:40 AM   #10
vijoyap
LQ Newbie
 
Registered: Mar 2007
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by pc_copat
hi i'm using redhat ent. 3.0 and w2k i want to use redhat for ftp server
i have problem with vsftp
i installed and configured using manuals
OK, it was running
i could make new folders,download,upload (with local user also) but couldn't delete anything,
so i changed write_enable to YES i couldn't delete again
then i changed file permissions.
Also looked at all files respect to vsftp

-vsftpd.conf
-vsftpd.ftpusers
-vsftpd.user_list
-/etc/xinetd.d/vsftpd
/etc/init.d/vsftpd

all the settings are true or i think so (according to the manuals)

and now it isn't running and it gives 530 this ftp server is anonymous only error
and when i want to restart or look status of /etc/init.d/vsftpd
it gives stop fail and i try /etc/init.d/vsftpd stop then it says

"vsftpd dead but subsys locked"

all the time i tried different things i deleted /var/lock/subsys/vsftpd
then i try again and again....
but i couldn't find where am i wrong..

i can send all vsftpd related files if anyone wants to help me and look up them


is there anyone? Please HELP ME!!!

I had the same problem in Redhat linux AS 4

following commands fixed the problem

service vsftpd stop
rpm --verify vsftpd
service vsftpd start
 
Old 08-18-2007, 04:39 AM   #11
djswarm
LQ Newbie
 
Registered: Aug 2007
Posts: 2

Rep: Reputation: 0
Spot on

Quote:
Originally Posted by vijoyap View Post
I had the same problem in Redhat linux AS 4

following commands fixed the problem

service vsftpd stop
rpm --verify vsftpd
service vsftpd start
RHEL 5.0
Thanks this was exactly the answer.
it gave me the output:

S.5....T c /etc/vsftpd/vsftpd.conf

Suddenly my vsftpd stops exiting on startup. A passing review doesn't show any changes to /etc/vsftpd/vsftpd.conf. Any ideas what's up here?
 
Old 03-18-2008, 06:27 AM   #12
vimal
Red Hat India
 
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Rep: Reputation: 34
Hello,

The error you are facing (vsftpd dead but subsys locked) could also happen if you have another instance of FTP service running on the machine, such as gssftp. Could you please check the same and confirm.

Regards,
 
Old 11-29-2008, 06:34 AM   #13
manavalansuresh
LQ Newbie
 
Registered: Feb 2008
Posts: 1

Rep: Reputation: 0
Vsftpd dead but subsys loked

Hi Everybody,

Am Also facing same problem that is "vsftp dead but subsys locked"
i already installed proftpd and also service is runing.so please check it any ftp server is runing parallel that is problem that is error message
i hope is working !!!!!!!!!
 
Old 03-21-2009, 08:08 PM   #14
cmontr
Member
 
Registered: Sep 2007
Posts: 175

Rep: Reputation: 15
I have got similar problem on Fedora 10...check all above but still got the same error:

vsftpd dead but subsys locked

any ideas?
 
Old 03-21-2009, 08:11 PM   #15
cmontr
Member
 
Registered: Sep 2007
Posts: 175

Rep: Reputation: 15
Exclamation

Quote:
Originally Posted by cmontr View Post
I have got similar problem on Fedora 10...check all above but still got the same error:

vsftpd dead but subsys locked

any ideas?
also " ps -ef | grep vsftpd | grep -v grep " does not bring any processes...

thnx
 
  


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
proftpd dead but subsys locked Mikessu Linux - Networking 2 08-25-2011 02:24 AM
vsftpd dead but subsys locked? ciberrust Linux - Software 6 11-29-2004 08:11 AM
vsftpd dead but subsys locked ??? markstevens Linux - Software 43 03-18-2004 11:14 AM
vsftpd dead but subsys locked jon_k Linux - Software 2 07-16-2003 05:19 PM
anacron dead but subsys locked adenardo Linux - General 11 06-13-2003 02:37 AM


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