Linux

Force a user to change password upon first login

This is how you can force a Redhat user to change his password upon first login on a Redhat 5 installation. This might work on other versions and distributions… First lock the account to prevent the user from logging in until the change has been made # usermod -L <username> Change the password expiration date […]

Read More
Web

MySQL search and replace

This is a simple SQL query to perform search and replace in a MySQL table update tablename set fieldname = replace(fieldname,’search_for_this’,’replace_with_this’);

Read More
Network

Network upgrade Ubuntu Server 8.04 to 8.10

This post describes how I upgraded my Ubuntu (Hardy Heron) 8.04 server installation to (Intrepid Ibex) 8.10 from the command line. First you’ll need to make sure you are running the latest packages # sudo aptitude update # sudo aptitude safe-upgrade Then you will need to install the Ubuntu upgrade package # sudo aptitude install […]

Read More