interview question and answer

May 25, 2012

Fedora Core Telnet, Rlogin and Ftp Server Configuration.


Setup and configure Remote Server on fedora core Linux, the step by step configuration focus on configure the Telnet, Rlogin and Ftp server.

Configure Telnet server


The step by step process of telnet server installation and configuration.

1. Insert and mount the Fedora installation cd rom or dvd.

[root@fedora ~]# mount /dev/cdrom

2. Go to the RPM directory.

[root@fedora ~]# cd /mnt/cdrom/RedHat/RPMS

3. Find the telnet installation package, and execute command below to start the installation process.

[root@fedora ~]# rpm –Uhv telnet-server-0.17-20.i386.rpm

4. Umount and the cd rom.

[root@fedora ~]# cd /
[root@fedora ~]# umount /dev/cdrom

Auto start telnet server.


Execute the command below to make sure that the telnet server is automatically start upon the boot up of your Fedora server.

[root@fedora ~]# /sbin/chkconfig --level 35 telnet on

Confirmation of automatic start

[root@fedora ~]# /sbin/chkconfig --list telnet

Test the connection to telnet server


Execute command below to connect to your telnet server, please change the ip address to your telnet server address.

[root@fedora ~]# telnet 193.0.0.13

Red Hat Linux release 7.2 (Enigma)
Kernel 2.4.7-10 on an i686
login: kimura

Password:
Last login: Fri May 17 15:07:38 on :0
[kimura@RedHatA kimura]$

Other setting


[root@fedora ~]# vi /etc/securetty

pts/0
pts/1

[root@fedora ~]# less /etc/issue.net
Red Hat Linux release 7.2 (Enigma)
Kernel \r on an \m

Rlogin


Rlogin Installation


[root@fedora ~]# mount /dev/cdrom
[root@fedora ~]# cd /mnt/cdrom/RedHat/RPMS
[root@fedora ~]# rpm –Uhv rsh-server-0.17-5.i386.rpm
[root@fedora ~]# cd /
[root@fedora ~]# umount /dev/cdrom

Setting of automatic start


[root@fedora ~]# /sbin/chkconfig rlogin on
[root@fedora ~]# /sbin/chkconfig --list rlogin //Confirmation of automatic start

Execution of rlogin


[root@fedora ~]# rlogin 193.0.0.13

FTP Server (File Transfer Protocol)


Installation


[root@fedora ~]# mount /dev/cdrom
[root@fedora ~]# cd /mnt/cdrom/RedHat/RPMS
[root@fedora ~]# rpm –Uhv wu-ftpd-2.6.2-5.i386.rpm
[root@fedora ~]# cd /
[root@fedora ~]# umount /dev/cdrom

Setting of automatic start


[root@fedora ~]# /sbin/chkconfig wu-ftpd on
[root@fedora ~]# /sbin/chkconfig --list wu-ftpd /
[root@fedora ~]# man ftpaccess

Configuration file Ftpaccess


[root@fedora ~]# less /etc/ftpaccess

deny-uid %-99 %65534- //User who prohibits access,/etc/passwd, 099 65534-65535
deny-gid %-99 %65534-  //Group which prohibits access,/etc/group,
allow-uid ftp
allow-gid ftp

guestgroup ftpchroot  //Specification of guest group
// The root directory is changed to the home directory
// Ftpchroot does not exist in initialization
// Example of /etc/group 
// ftpchroot:x:1000:kimura
// Group ID of ftpchroot adds user kimura as 1000
              
class all real,guest,anonymous *     
//Specification of user class
//real (Real user), guest (User who belongs to guest group), anonymous(Anonymous user)
// * (Host's address and domain name)

email root@localhost
loginfails 5     
// Frequency by which log in can be retried
// The server cuts the connection when failing in log in five times

readme README* login  
// readme File name Timing by which content of file is output   
readme README* cwd=*   
// Immediately after login, All directories

message /welcome.msg login
message .message cwd=*

compress yes all   
tar yes all
// Compression by compress,
// The permission of the archive by tar is specified for the class

chmod no guest,anonymous  //Guest group,Anonymous user
delete no anonymous
overwrite no anonymous
rename no anonymous

log transfers anonymous,guest,real inbound,outbound 
// Forwarding, Direction of forwarding, It is both in default

shutdown /etc/shutmsg   
// Specification of file which describes shutdown schedule
// It is possible automatically to make, and to delete with ftpshut and ftprestart

Keywords: configure telnet, configure rlogin, configure ftp, fedora core ftp server, fedora core rlogin server, fedora core ftp server, telnet server, rlogin server, ftp server, setup telnet, setup rlogin, setup ftp, Linux Remote Server.



No comments: