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 ftp 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 a file.

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 -d /root/ftp -g ftp -s /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
Views: 24 Comments: 3 Favorited: 0

Comments

Sign Up and login in order to leave a comment.
adoneo
Comment by adoneo Dec. 05,2008
...A HIT, by HIT, by HIT...
A COMMENT, by COMMENT, by COMMENT...

A BUNCH of hits and comments
ALWAYS make happy friends!


-adoneo
http://adoneo.flixya.com
http://www.poetry.com/Publications/search.asp?First=zdravko&Last=adamon&submit.x=0&submit.y=

0
medokatkot
Comment by medokatkot Dec. 03,2008
hit++1++$$
hood
Comment by hood Nov. 20,2008
nice one + hit
Added November 20, 2008
qiutian


to qiutian

Recent Posts
Syndication Tools
  • Subscribe to Flixya Blog Feed
  • Ping your RSS Feed
  • Add to Technorati Favorites!