Configuration FTP and Telnet Server For root Login


Summary:

This article describe the details for letting root login ftp and telnet server.

Details:

1.  let root login on vsftp server under linux

usually, the super user 'root' is not allowed to login remotely, it is for the security issue,but you can
 
change this condition by modifying some files.

a. comment the root item in the file '/etc/vsftpd/ftpusers'

b. comment the root item in the file '/etc/vsftpd/user_list'

2. modify the default directory for the ftp

first of all , we should delete the user 'ftp'
userdel -r ftp
and then, we add the new user 'ftp', we assume that the home directory of the user is at
 
'/mnt/qiutian/ftp'
 
mkdir /root/ftp

adduser 
-/root/ftp -g ftp -/sbin/nologin ftp
there needs some more thing to do for letting anonymous user login, and so we should change
 
the right of the directory '/mnt/qiutian/ftp'.
chmod 755 /root/ftp

chown 
-R root.root /root/ftp
 
3. let super user root login the telnetd server

since it is not a safe application, telnet doesn't let root login the linux host. If you want to change
 
the situation, pls do like this:

(1)
vi /etc/pam.d/login
#auth required pam_securetty.so #comment 
this line!
or
mv /etc/securetty /etc/securetty.bak
(2) edit the file '/etc/securetty', add some lines below:
pts/0
pts
/1
pts
/2
pts
/3

引用于"随点BBS" "2beanet":www.2beanet.com/bbs http://www.2beanet.com/
posted @ 2008-12-23 18:04  clara  阅读(345)  评论(0编辑  收藏  举报