Daily Archives: July 16, 2009

Windows: Creating an aligned GPT partition by using diskpart

To create a 1GB partition on an empty GPT disk: C:\>diskpart Microsoft DiskPart version 5.1.3565 Copyright (C) 1999-2003 Microsoft Corporation. On computer: NNII0280 DISKPART> Select Disk 1 Disk 1 is now the selected disk. DISKPART> create partition primary size=1024 align=64 … Continue reading

Posted in Uncategorized | Leave a comment

Linux: How to lock/unclock user account

Lock user ID : # passwd -l username Unlock user ID : # passwd -u username Change password: # passwd username Original post blogged on b2evolution.

Posted in Uncategorized | Leave a comment

HP-UX: How to unlock user account

Unlock the locked HP-UX user account: # /usr/lbin/modprpw –l –k username NOTE: modprpw is HP-UX command and it will not work in Solaris, AIX and Linux. Original post blogged on b2evolution. Incoming search terms:how to unlock an account in hp … Continue reading

Posted in Uncategorized | Leave a comment

Solaris: How to lock/unclock user account

Lock user ID : # passwd -l username Unlock user ID : # passwd -d username Unlock user ID and force user to enter new password : # passwd -df username Note: This will unlock the user id, and force … Continue reading

Posted in Uncategorized | Leave a comment

Windows 2003 GPT disk layout

Microsoft Windows 2003 introduced a new type of disk layout called GUID Partition Table (GPT) disks. This layout is designed to overcome some problems and deficiencies associated with the traditional master boot record (MBR) style disks. The advantages of GPT … Continue reading

Posted in Uncategorized | Leave a comment

Automating SFTP using expect

I have to automate transferring of files and the only protocol I have available is SSH. I have accomplished this using expect and SFTP. I think it can help others too, so I am writing this article. You can get … Continue reading

Posted in Uncategorized | Leave a comment

Veritas / AIX : Logical Volume Manager

Tasks AIX Logical Volume Manager Veritas Volume Manager Create a Volume Group mkvg vxdg init Create a Logical Volume mklv vxassist make Add a Physical Disk to a Volume Group extendvg vxdiskadd Add Physical Partitions to Logical Volume extendlv vxassist … Continue reading

Posted in Uncategorized | Leave a comment