Enable ftp service:
bash-3.2# vi /etc/ftpd/ftpusers
Comment required user to connect through ftp...
Eg:
#
# List of users denied access to the FTP server, see ftpusers(4).
#
#sol
root
root
daemon
bin
sys
adm
lp
uucp
nuucp
smmsp
#
/etc/ftpd/ftpusers - User ID’s that you are trying to use to login must not be there in this file.
/etc/ftpd/ftphosts - this is used to specifically dis allow ftp access to a login ID from a particular host.
By using following commands verify weather ftp service is running.
# inetadm |grep -i ftp
enabled online svc:/network/ftp:default
# svcs |grep -i ftp
online Feb_08 svc:/network/ftp:default
# cat /etc/services |grep -i ftp
ftp-data 20/tcp
ftp 21/tcp
tftp 69/udp
# netstat -an |grep -i *.21
*.21 *.* 0 0 49152 0 LISTEN
*.21 *.* 0 0 49152 0 LISTEN
#
If ftp service is offline use following command to enable ftp server
Tidak ada komentar:
Posting Komentar