# chsec -f /etc/security/lastlog -a “unsuccessful_login_count=0″ -s username
# chuser “account_locked=false” username
# passwd username
Done
Archive for February, 2008
Reset user ID locked in AIX
Posted in AIX on February 26, 2008 | Leave a Comment »
Copy Directories Between File systems (cpio)
Posted in Linux Comm on February 25, 2008 | Leave a Comment »
# find . -print -depth | cpio -pdm filesystem2
or
#find . -depth -print0 | cpio –null –sparse -pvd /media/filesystem2/
. Starts in the current working directory.
-print Prints the file names.
-depth Descends the directory hierarchy and prints file names from the bottom up.
-p Creates a list of files.
-d Creates directories as needed.
-m Sets the correct modification times on [...]
Restore a Bad Superblock (Solaris 8,9 and 10)
Posted in Open Solaris, Solaris, Solaris Comm on February 25, 2008 | Leave a Comment »
Become superuser or assume an equivalent role.
Determine whether the bad superblock is in the root (/), /usr, or /var file system and select one ofthe following:
If the bad superblock is in either the root (/), /usr, or /var file system,
then boot from the network or a locally connected CD.
From a locally-connected CD, use the [...]
Stop all processes Accessing a file system
Posted in GNU/Linux, Linux Comm, Open Solaris, Solaris, Solaris Comm on February 25, 2008 | Leave a Comment »
Follow the steps:
Become superuser or assume an equivalent role.
List all the processes that are accessing the file system so that you know which processes you aregoing to stop.
# fuser -c [ -u ] /mount-point-c Reports on files that are mount points for file systems
and any files within those mounted file systems.-u Displays the user [...]
sudo rm -rf /
Posted in GNU/Linux on February 24, 2008 | Leave a Comment »
Found nice video over Youtube


