Monthly Archives: July 2010

How to create file of fixed size in linux?

You can use the following command to create an empty file of  1 MB. dd if=/dev/zero of=testfile bs=1k count=1024 It will create a file named testfile,  with1024 blocks of 1Kb, that means 1Mb. To create an empty file of 5Mb, … Continue reading

Posted in Linux- HOWTOs and FAQs | Leave a comment

cPanel account creation error, public_html: Cannot mkdir: Permission denied

If you get the following error while creating accounts in a cpanel vps. ————————- Not copying any file from skel directory into it. tar: ./public_ftp: Cannot mkdir: Permission denied tar: ./public_html: Cannot mkdir: Permission denied tar: .: Cannot utime: Operation … Continue reading

Posted in cPanel | Leave a comment

How to disable cpanel POP up login window

To disable cpanel pop up login window, check the following option from WHM >> Tweak Settings. Disable Http Authentication for cPanel/WebMail/WHM Logins (forces cookie authentication.) This will help prevent certain types of XSRF attacks that rely on cached Http Auth … Continue reading

Posted in cPanel | Leave a comment

Restrict SSH access from particular IP using /etc/hosts.deny

To allow SSH access from particular IP, please add the following line in /etc/hosts.deny. sshd: ALL And add the following line in /etc/hosts.allow sshd: x.x.x.x Replace x.x.x.x with the IP from which you want to access SSH. If SSH is … Continue reading

Posted in Linux- HOWTOs and FAQs | Leave a comment

How to download files & subfolders inside a folder via ftp

You can use the following command to download  files & subfolders from the command prompt. wget -r ftp://username:password@domain.com/ If home directory of the user is /home/username, it will download the entire directory ‘/home/username’ to the current folder from which you’re … Continue reading

Posted in Linux- HOWTOs and FAQs | Leave a comment