Saturday, April 7, 2012

Creating 'root' in Ubuntu


First time, when I used the Ubuntu operating system I found that the setup does not ask for the ‘root’ or its password! It accepts any user name that we want and then we may give any password to it. After installation it shows all accounts that we have created at the startup screen. I was wondered about the ‘root’ and its password also. It was my mistake that I have not searched the process to create the root on internet. I thought the main admin will be our root. But, I know that there is no any Linux distro without ‘root’.

Last month, when I was writing the RPC (Remote Procedure Call) programs on my Ubuntu system, it was not working and refusing the connections again and again. The same program I got executed on Redhat enterprise linux in my college! I tried lot of things and searched on the internet also but I did not find any solution to run the RPC on Ubuntu system. Finally, I mailed this to Prof. Chitrakant Banchhor in SCOE, Pune. He has given me the solution to create the root on Ubuntu. Then, my RPC worked under Ubuntu! We need to have admin (root) rights to run any RPC program under any Ubuntu or Debian distributions!

Here is the process to create it:

1.   Open the terminal in any administrator.
2.   Type:                sudo passwd root
3.   It will ask for your current admin password. After typing it, it will ask to type new root password twice!
4.   After typing it, your root will get established!
5.   We may switch to root temporarily by
su
<typing password>     
6.  In order to login to root, we need to choose the option ‘other’ at user login screen. Type ‘root’ at login name and then password.

No comments:

Post a Comment