The daily ramblings …

Linux HOWTO : How to recover lost password

Posted in Linux / Unix by akamal on March 2, 2007

Why am writing things like this again? Well, I encountered another problem here at work, seems that I forgot my root password. After 5 minutes search of solution, found it, and posting it here.

You can’t recover the password you have forgotten, but you’re able to reset to a new password. Here are the steps you should do:

CyGwin Installation FAQ

Posted in Linux / Unix by akamal on March 1, 2007

To anyone wondering why this faq is so short, I am just lazy to type the whole installation thing. You can instead read the install manual accompanying the cygwin setup program.

I wrote this simply because I was stuck trying to reinstall cygwin as previously the program corrupted.


Linux HOWTO : Thumbdrive in Linux

Posted in Linux / Unix by akamal on January 30, 2007

If your machine’s preinstalled with the latest LINUX OS, then you probably won’t encounter problems with reading USB thumbdrive. On the contrary, you’re right on the spot if thumbdrive’s the issue you need to solve. This articles describes more.


Linux HOWTO : Configuring RSH (Remote Shell)

Posted in Linux / Unix by akamal on January 30, 2007

The following tutorial requires editing of files in linux, and in this case I use vim program as an example. Refer to this blog here on how to edit a file, using vim. (vi is a program to edit file, so vi file means that I am editing the file using vim program)


First, edit /etc/hosts to add the list of hosts and their IP address.

>vi /etc/hosts/


[ip address] [domain] [machine name]

10.x.x.x machine001


To enable hosts the use of INETD
services, edit /etc/hosts/allow

> vi/etc/hosts/allow

add to file >>



Edit /root/.rhosts to add lists
of hosts that can access without password. This is extensively used by rlogin.

> vi/root/.rhosts

add to file (the machine ip or name) >>




Edit the following files listed below:

> vi/etc/xinetd.d/rsh

> vi/etc/xinetd.d/rlogin

> vi/etc/xinetd.d/rexec

find the disable value and set to no.


If you want to disable login (usually for quick access), edit the following files below:

> vi/etc/pam.d/rsh

> vi/etc/pam.d/rlogin

add to the end of line, values below (for both files above):


Now restart xinetd to enable changes, by typing:

>/etc/init.d/xinetd.d/xinetd restart

Linux HOWTO : Command line based FTP

Posted in Linux / Unix by akamal on January 30, 2007

The general guide below caters for the case of Windows machine accessing a remote linux machine. Initial assumption is that you must have an account accessible to the linux machine.