Running scripts using the command-line-based script host (Cscript.exe)

You can run scripts with the command-line-based script host by typing the following at the command prompt: cscript [script name] [host options] [script arguments] Where: • script name is the name of the script file, including the file name extension and any necessary path information. • host options are the command-line switches that enable or […]

Analyzing Amazon S3 Logs with AWStats

The Amazon Simple Storage Service (Amazon S3) provides virtually limitless storage accessible over the Internet. Along with this functionality, however, comes the need to understand how the data stored on Amazon S3 is being used. Amazon S3 supports logging each request made to a given Amazon S3 bucket to a text file. Out of the […]

Understanding Linux /etc/passwd File Format

/etc/passwd file stores essential information, which is required during login i.e. user account information./etc/passwd is a text file, that contains a list of the system’s accounts, giving for each account some useful information like user ID, group ID, home directory, shell, etc. It should have general read permission as many utilities, like ls use it […]

FTP – File Transfer Protocol

FTP File Transfer Protocol Syntax FTP [-options] [-s:filename] [-w:buffer] [host]key -s:filename Run a text file containing FTP commands. host Host name or IP address of the remote host. -g Disable filename wildcards. -n No auto-login. -i No interactive prompts during ftp. -v Hide remote server responses. -w:buffer Set buffer size to buffer (default=4096) -d Debug […]

Mount an ISO image in Windows 7 or Vista (also works on 2003 and 2008)

The freeware utility from Microsoft to mount ISO Images in XP and 2003 doesn’t work in Windows 7 or Vista. Thankfully there’s another FREE utility that does, Virtual Clone Drive. With it you can mount .ISO, .CCD, .DVD, .IMG, .UDF and .BIN files. FYI as of the latest version, it should work on Windows 7 or Vista […]

Linux Security Practices

Protect the root accountThe root, or superuser, account on a Linux system allows access to anything and everything. For this reason, it’s well worth taking extra steps to protect it. Start by setting a hard-to-guess password for this account with the passwd command and change it on a regular basis. Next, restrict the terminals that […]

Set Time Zone From Command Line in Windows 2003, XP and 2000

Quick and easy way to set timezone from command line in Windows 2003, XP and 2000. CONTROL.EXE TIMEDATE.CPL,,/Z Eastern Standard TimeCONTROL.EXE TIMEDATE.CPL,,/Z Central Standard TimeCONTROL.EXE TIMEDATE.CPL,,/Z Mountain Standard TimeCONTROL.EXE TIMEDATE.CPL,,/Z Pacific Standard Time These are a little longer but they do the same thing. RunDLL32.exe shell32.dll,Control_RunDLL timedate.cpl,,/Z Eastern Standard TimeRunDLL32.exe shell32.dll,Control_RunDLL timedate.cpl,,/Z Central Standard TimeRunDLL32.exe […]