web analytics

Enable root login in vsftp

Want to enable root access in vsftp? Do the following.

[~]# cp -pv /etc/vsftpd/ftpusers  /etc/vsftpd/ftpusers.bak.$(date +%F)

[~]# vi  /etc/vsftpd/ftpusers

Now remove root if present from the file. Save and quit the file.

We need to do the same from one more file also.

[~]#cp -pv   /etc/vsftpd/user_list  /etc/vsftpd/user_list.bak.$(date +%F)

[~]# vi /etc/vsftpd/user_list

Remove root from the users listed in this file. Save and quit.

Now restart vsftp.

[~]#/etc/rc.d/init.d/vsftpd restart

Now try connecting with root user in FTP.

 

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>