How To Enable Root Login in FTP Server

By default root login in ftp server is disabled. We can enable it for testing purpose only. This is not recommended for the system administrator to enable, because of the security issue. Anybody can hack the root password; this (ftp) is not secure login.
login as a root,
[root@SRV01 dhcpd]  ftp ftp.kosecurity.in
Connected to ftp.kosecurity.in
220 (vsFTPd 2.0.5)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (ftp.kosecurity.in:root): root
530 Permission denied.
Login failed.
Now directly giving error when login as root. If you would like to make root to login do the following two things.
Uncomment the root name in following file.
[root@SRV01 dhcpd]  vi /etc/vsftpd/ftpusers
  Users that are not allowed to login via ftp
 root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
Uncomment here also.
[root@SRV01 dhcpd]  vi /etc/vsftpd/user_list
vsftpd userlist
If userlist_deny=NO, only allow users in this file
If userlist_deny=YES (default), never allow users in this file, and
do not even prompt for a password.
Note that the default vsftpd pam config also checks /etc/vsftpd/ftpusers
for users that are denied.
root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
Restart the Server.
[root@SRV01 dhcpd]  /etc/init.d/vsftpd restart
Shutting down vsftpd:                                      [  OK  ]
Starting vsftpd for vsftpd:                                [  OK  ]
Login as root.
[root@SRV01 dhcpd]  ftp ftp.kosecurity.in
Connected to www.kosecurity.in.
220 (vsFTPd 2.0.5)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (ftp.kosecurity.in:root): root
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> dir
227 Entering Passive Mode (10,65,4,55,250,36)
150 Here comes the directory listing.
drwxr-xr-x    2 0        0            4096 Mar 08 23:31 Desktop
-rw——-    1 0        0            1609 Mar 08 21:25 anaconda-ks.cfg
-rw-r–r–    1 0        0           36018 Mar 08 21:24 install.log
-rw-r–r–    1 0        0            6659 Mar 08 21:22 install.log.syslog
226 Directory send OK.
That’s all!
Posted By Nijakat Ali
 

1 Comment

Leave a Reply

Your email address will not be published.


*