Archive for August, 2010

Q. How do I configure static IPv6 networking under RHEL 5.x / Fedora / CentOS Linux?
A. Red Hat / CentOS / Fedora RHEL support IPv6 out of box. All you have to do is update two files and turn on networking.
Read the rest of this entry

Our policy and network configuration does not requires IPv6 support in RHEL / CentOS / Fedora Linux. How do I prevent the kernel module from loading at boot time and disable IPv6 networking?
You can easily prevent the kernel module from loading by updating the following two files:

  1. /etc/modprobe.conf – Kernel driver configuration file.
  2. /etc/sysconfig/network – RHEL / CentOS networking configuration file.

Read the rest of this entry

Method 1: passwd

Conventionally the command use to change password on Linux based system is passwd
, the option related to this command is –stdin ,an this is all done throughout a pipe.
echo -e "new_password\nnew_password" | (passwd --stdin $USER)

Method 2: chpasswd

Another alternative is to use the chpasswd, explain as below:
echo "password:name" | chpasswd
Note that the first method can be use to change psssword on Samba based system:
echo -e "new_password\nnew_password" | (smbpasswd -a -s $USER)

#!/bin/bash
MAXSIZE=62
array1=(
q w e r t y u i o p a s d f g h j k l z x c v b n m Q W E R T Y U I O P A S D
F G H J K L Z X C V B N M 1 2 3 4 5 6 7 8 9 0 \! \@ \# \$ \% \^ \& \* \( \)
\! \@ \# \$ \% \^ \& \* \( \) \! \@ \# \$ \% \^ \& \* \( \) \! \@ \# \$ \%
)
MODNUM=${#array1[*]}
pwd_len=0
while [ $pwd_len -lt $MAXSIZE ]
do
index=$(($RANDOM%$MODNUM))
echo -n “${array1[$index]}”
((pwd_len++))
done
echo
exit 0

The option to format internal and external hard drives to the FAT 32 filesystem is not available to you from within the Graphical User Interface in Windows Vista/Windows 7 64 Bit Editions. If you wish to make data available to operating systems or applications that cannot properly read or write to NTFS partitions, this can pose something of a problem for you. Thankfully there is a relatively easy command prompt solution you can use to solve this little problem.

To perform this format successfully, you need to launch Command Prompt with Administrator permissions before executing the command.
Read the rest of this entry