to delete user : /usr/bin/htpasswd -D /path to htpasswd file/file $USER
to add new user : /usr/bin/htpasswd -mb /path to htpasswd file/file $USER $PASS
Read More !
a blog on linux tips and tricks
Stop the mysqld daemon process:
/etc/init.d/mysql stop
Start the mysqld daemon process with the --skip-grant-tables option:
/usr/bin/mysqld_safe --skip-grant-tables
Start the mysql client with the -u root option:
mysql --user=root mysql
Execute the query:
update user set Password=PASSWORD('new-password-here') WHERE User='root';
Execute the FLUSH PRIVILEGES; command:
flush privileges;
Exit the mysqld daemon process:
exit
Start the mysqld daemon process:
/etc/init.d/mysql start
How to creating Symbolic Links in linux
ln -s source destination
example: ln -s httpdocs httpsdocs
This creates a symlink for httpsdocs -> httpdocs
To change permission of symlinks
chown -h owner:group directory