Saturday, 16 July 2011

User Management In Linux

As we all know that linux operating system has different flavour of versions these are mainly available in deb(debain) and rpm(Redhat pacakage manager) pakages.

Here I show you User Management in linux and also will show how to install various RPM pacakages(Which we call as software in Windows Environment).







Follow the Steps for CLI(Command Line Interface):

::ADD A NEW USER::

1) Go to Start menu,from system tools,go to terminal.
2) type "useradd <usrname>" (without quotes,in lower case).

::ADD A PASSWORD FOR USER::

1) type "passwd <usrname>"
2) Enter password and confirm it.(Remember the password will not be shown in terminal window)
3) Also keep in mind that password should not be so simple,such as dictionary word or too short
 word.It should be a little complex.

::GROUP a particular user in a particular group::

1) type "usermod -g users <usrname>"
2) "users" is one of the group previously created. -g/-G stands for a group.




Follow the Steps for GUI(Graphical User Interface)
* Just go to start menu --> system utilities or admin utilities --> User management.

The gui is very self explanatory, just like windows environment. Here we can set the password

policies and other stuff etc.






Installing Pacakage In Linux (We call software in Windows environment)

1) First download the appropriate rpm/deb pacakage from respective linux website.

2) Store in an appropriate media,usb drive and not in cd (will explain you later why???)

3) Open the terminal, move to the directory where your usb drive is there(Its in /dev/  directory).

4) copy the pacakage into appropriate folder file, for example
   type"cp /dev/<usb drive>/<some pacakage>.rpm /user/local"
   this will copy rpm pacakage to local directory located in user directory file.

5) Move to respective directory, for example
   type"cd /user/local"
   and then type "ls",you will see your rpm pacakage in that directory(as you just copied it).

6) type "rpm -i <pacakage name>.rpm" , this will show you a warning, just press enter if it
   comes.

7) Your pacakage is now successfully installed in that directory, you can shuffle in your GUI to
   that directory and can see it.

8) Again open the terminal go to that directory where the new pacakage is installed and type   
     "<pacakage name>".

9) It will run. (Watch out for switches that can be applied)






REMOVING THE PACAKAGE (We call Software in windows environment)
1) go to that respective directory where the pacakage is installed and
   type "rpm -e <pacakage name>"

2) type "ls" and see that pacakage is gone...






MOUNTING CD FROM CD-ROM


1) go to terminal and move to etc directory.

2) and type "mount -t iso9660 /dev/cdrom /mnt/cdrom"
   mount msg will come, this will simply mount the contents of the CD-ROM to cdrom directory
   located in mnt directory.(iso 9660 is a standard, this is how it goes "convention").






UNMOUNTING


1) go to terminal and type "umount /dev/cdrom"
   this will unmount the contents of the CD-ROM.




Please rate the article if you liked it.
Thankyou.

No comments: