FTP / VSFTPD INTERVIEW QUESTIONS AND ANSWERS
PAGE - 2
11..How to restrict anonymous user to vsftpd ?
Edit
the following
vi /etc/vsftpd/vsftpd.conf
anonymous_enable=NO
12..How to make ftp banner?
vi /etc/vsftpd/vsftpd.conf and change the following
ftpd_banner= “Enter New Banner Here”
13..Write the various port numbers and its services?
Protocol
|
Port Numbers
|
FTP (Default data)
|
20
|
FTP (Connection dialog, control)
|
21
|
Telnet
|
23
|
SMTP
|
25
|
DNS
|
53
|
DHCP BOOTP Server
|
62
|
DHCP BOOTP Client
|
68
|
TFTP
|
69
|
Gopher
|
70
|
HTTP
|
80
|
POP3
|
110
|
NNTP
|
119
|
NetBIOS Session Service
|
139
|
14..How to configure the FTP services?
# yum
install vsftpd*
# vi
/etc/vsftpd/vsftpd.conf
# service
vsftpd restart
# chkconfig
vsftpd on
# iptables
-A INPUT -s ! 172.24.0.0/255.255.0.0 -p tcp - -dport 21 -j REJECT
# iptables
-A INPUT -s ! 172.25.0.0/255.255.0.0 -p udp - -dport 21 -j REJECT
# service
iptables save
# chkconfig iptables on
15..How to restrict the
ftp access to the all domains, permission only
for the Particular domain?
Install vsftpd package
# vi
/etc/host.deny
end of the file the following
vsftpd:ALL EXCEPT ….domain.com
:wq!
# service vsftpd restart
# chkconfig vsftpd on
16..How Can I Get Linux Without FTP Access?
The easiest
thing is probably to find a friend with FTP access. If there is a Linux user's
group near you, they may be able to help.
17..How to deny the user1 and user2 to access
file via ftp, and configure to deny to access via ftp?
# vi
/etc/vsftpd/ftpusers
user1
user2
# service vsftpd restarat
No comments:
Post a Comment