VSFTPD is the one of the easiest and secure FTP server out there. However today it bumps back with two errors.
#1: 500 OOPS: cap_set_proc error
After successful user login vsftpd will display an error:
$ ftp ftpserver.xyz.com
Output:
Connected to ftpserver.xyz.com.
220 (vsFTPd 2.0.5)
Name (localhost:vivek): vivek
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
500 OOPS: cap_set_proc
ftp: bind: Address already in usecap_set_proc is POSIX capability manipulation on processes function (related to filesystems but I am not sure). After searching bit I found the solution. You need to load the standard Linux capabilities security module:
# modprobe capability
#2: vsftpd dead but subsys locked error
This is another error - one of my clients was receiving while starting vsftpd. There was already ftp server running and address 21 was bind to this ftp server. So vsftpd dead but subsys locked error was generated. xinetd was configured to run wu-ftpd (quite old ftp software). Solution was simple I had removed the wu-ftpd.
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop












{ 8 comments… read them below or add one }
Great troubleshooting tip, it will come handy some day.
Do you know how to limit user to their home directories? What I want is user should not able to visit /root or /tmp directory or all other directory.
TIA
After edit vsftpd.conf file, I have subsys locked error before.
#2: vsftpd dead but subsys locked error
how to clear these problume
If we are getting this error “vsftpd dead but subsys locked ” then
then follow the followid steps: –
netstat -tupnla |grep “:21″
output like
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 3876/xinetd
kill -9 3876
then restart ftp service
/etc/init.d/vsftpd restart and
service xinetd restart
It will solve your problem.
Please disabled ftp_port=20 in vsftpd.conf file
and get rid of problems
I am facing problem in vsftp server. I’m working on RHEL4 server. the vsftpd service was working fine but now suddenly I found
that it is not working. Whenever I restart or stop the service I’m getting following messages.
1. Service vsftpd status
Vsftpd dead but subsys locked
2. Service vsftpd stop
Shutting Down vsftpd: [Failed]
3. Service vsftpd start
Starting vsftpd for vsftpd: [ok]
4.Service vsftpd status
Vsftpd dead but subsys locked
Kindly suggest….what can be done so that the vsftpd service work properly
Regards,
Mukesh
Hi
I exactly have the issue related above.
PLS help.
Thank you
I am totally facing the same problem as Mukesh Maurya,anybody assist gone through forums nothing…..