Posts Tagged ‘Linux security’

How to set password for GRUB

Login as root user Enter grub mode: # grub Use md5crypt to encrypt password: grub> md5crypt Password: ****** Encrypted: $1$jxcdN0$hVHViq1aiPf8FziuGJGZp0 Copy encrypted password Exit grub mode: grub> quit Modify file /boot/grub/grub.conf: vi /boot/grub/grub.conf Insert this line after splashimage  “password –md5 $1$jxcdN0$hVHViq1aiPf8FziuGJGZp0″ splashimage=(hd0,0)/boot/grub/splash.xpm.gz password –md5 $1$jxcdN0$hVHViq1aiPf8FziuGJGZp0 then save& exit /boot/grub/grub.conf

Monitoring external access to your system

login as root and execute the following command #watch lsof -i To list all open Internet files, use: #lsof -i -U You can also get very specific about ports. Do this as root for low ports. #lsof -i TCP:3306 Or, look at UDP ports as follows: #lsof -i UDP:1812 Also try fuser. Suppose you have a mounted file-system, and you need to umount it. To list the users on the file-system /work #fuser -u /work To kill all processes accessing [...]

Related Posts Plugin for WordPress, Blogger...