1)Enable vsftp on RedHat..
Just to start you can use
# /sbin/service vsftpd start
Following makes ftp service to start automatically on reboot
/sbin/chkconfig vsftpd on
disable vsftp
/sbin/service vsftpd stop
/sbin/chkconfig vsftpd off
2)installing ftpd BSD version
[root@singam15]# rpm -i ftpd-0.3.3-118.i586.rpm
warning: ftpd-0.3.3-118.i586.rpm: V3 DSA signature: NOKEY, key ID 9c800aca
error: Failed dependencies:
inet-daemon is needed by ftpd-0.3.3-118
netcfg is needed by ftpd-0.3.3-118
[root@singam15]# rpm -i --nodeps ftpd-0.3.3-118.i586.rpm
warning: ftpd-0.3.3-118.i586.rpm: V3 DSA signature: NOKEY, key ID 9c800aca
edit the file /etc/xinetd.d/ftpd to disable = no for enabling ftp
service ftp
{
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/in.ftpd
disable = no
}
[root@singam15]# pwd
/lib/security
[root@singam15]# ln -s /lib/security/pam_unix.so pam_unix2.so
/sbin/service xinetd restart --> This restarts xinetd
3) To start your own script on a reboot add it to /etc/rc.local.
This script will be executed *after* all the other init scripts.
example: /opt/yourapp/bin/script &
4) TO find version name in SUSE use cat /etc/issue
Welcome to SuSE Linux 8.2 (i586) - Kernel \r (\l).
uname -r gives uname -r
2.4.20-4GB
5) disable ping respons on linux box
Many malicious attacks begin with a ping scan. Disabling ICMP echo requests prevents your system's discovery with a ping.
As superuser, add the following lines to /etc/sysctl.conf
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.icmp_echo_ignore_all = 1
Then run the following command to cause the change to take effect immediately:
sysctl -p
This is singam's blog. For more articles visit at http://singam15.blogspot.com
Friday, April 18, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment