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'
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: