Computer Hardware Support

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Tuesday, 10 January 2012

System administrations User managements

Posted on 23:48 by Unknown

Linux files responsible for User managements


/etc/shadow store all the Linux password in MD5 encryptions format
/etc/passwd store all user related information's
/etc/group store all group related information's

back-up files responsible for User managements

In this assignment we will modify these files. So it's better to take back-up before doing this assignment because your little mistake can crash Linux systems.

#mkdir /backup
#cp /etc/passwd /backup
#cp /etc/group /backup
#cp /etc/shadow /backup
linux User managements

Create a simple user

useradd is used to create user. Several options are used with useradd command but you will learn about then in our next assignments. In this assignment your task is to learn what exactly happens in these files when a new user is added. First observe the last line for these files.

#cat /etc/passwd |more
#cat /etc/shadow |more
#cat /etc/group |more
Now add a simple user.

#useradd vinita
#passwd vinita
linux User managements
Now read these files again with cat command alternate you can use |grep switch to filter the output

#cat /etc/passwd |grep vinita
#cat /etc/shadow |grep vinita
#cat /etc/group |grep vinita
# cd /home
#ls –ld vinita
linux User managements

User's entry in passwd

All these files are changed when a user is created In passwd files entries are in following formats separated by :

vinita users login name
x password required to login
503 unique user id
504 unique group id
/home/vinita users home directory
/bin/bash user shell
In shadow files entry is straight forwards. Whatever showing beside the user name is the password of user vinita in MD5 encrypt format.

User's entry in group

Whenever you create a normal user, users primary group form same name is automatically created. As you can verify by looking in /etc/group. 504 is the unique group id.

User's home directory

Same as group, users home directory is also created in /home partition and user get the ownership of this directory.

How to create a user without password.

linux User managements
To create a user without password use –d switch .

#useradd nikki
#passwd -d nikki

How to create a group.

To create group use groupadd commands. Group created by this command is called secondary group.

#groupadd test
#cat /etc/group |grep test

How to add user in groups

To add user in this group use usermod commands

#usermod –G test vinita
This command will make vinita user to member of test group.

How to delete secondary group

You can delete a group by groupdel commands

#groupdel test
#cat /etc/group |grep test
You cannot delete users primary group until user exist for example

#groupdel nikki

How to delete User

userdel command is used to delete user. When a users is deleted user’s primary group will automatically be deleted.

#userdel nikki
#groupdel nikki
groupdel: group nikki does not exist.
linux User managements
Whenever you delete user with userdel command. entry of user will be removed from these files. But users home folder and mail folder will not be deleted. As you can see in image. If you want completely remove user including his home folder and mail folder use –r switch with userdel commands
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Structure of IP (Internet Protocol) addresses (IPv4, IPv6).
    Systems that have interfaces to more than one network require a unique IP address for each  network interface . The first part of an  Intern...
  • How To Verify the Installation of ADS and How to Remove ADS
    In our last article we  configured  ADS. In this tutorial I will guide you how to check ads installation. ADS installation can be verify fro...
  • (no title)
  • How to add clients in domain advance method used in Company Environments Server side Configurations
    In our last article we saw how a client can join domain. We used  default   administrator account  for this process.Administrator account ca...
  • Define the function of TCP / UDP (Transmission Control Protocol / User Datagram Protocol) ports.
    On the other hand, a UDP transmission does not make a proper connection and merely broadcasts its data to the specified network address with...
  • XP Tips and Tricks
    From our series of XP tips n tricks in this article we will show  you that  how can you Customize visual effect on XP Optimize Hard disk whe...
  • How to create hardware profile in xp step by
    A hardware profile is  a collection of   configuration  information about the hardware that is  installed on  your computer. Within a profil...
  • Identify factors which affect the range and speed of wireless service
    Infrared Infrared (IR) radiation is electromagnetic radiation of a wavelength longer than that of visible light, but shorter than that of  m...
  • how to configure DNS domain name system in Server 2003
    ADS relies entirely on  Domain Name System  (DNS) to locate resources on a network. Without a reliable DNS infrastructure, domain controller...
  • How to add clients in domain advance method used in company environments client side configurations
    In our pervious article we have completed  server side   configuration  to make clients form  user accounts . In this tutorial I will show y...

Blog Archive

  • ▼  2012 (76)
    • ►  February (4)
    • ▼  January (72)
      • how to diffrenciate between window xp, 2000 profes...
      • Windows Run Line Commands
      • Number of Microsoft Certified Professionals Worldwide
      • A+ Core Hardware
      • Saurabh’s Hardware Notes
      • Best Gaming CPUs For The Money: November 2011
      • Opinion: 10 Technologies That Need to Deliver in 2012
      • Networking interview questions
      • Share Dial Up Internet Connection
      • System administrations User managements
      • System administrations User managements
      • Hide drive from my computer Show icon on my compute
      • windows xp bootable cd Step by Step
      • Remove XP VISTA Window7 Server 2003 Server 2008 Pa...
      • Step by step guide of partitions recovery
      • Install xp from pen drive usb drive
      • Troubleshooting Peer to Peer Workgroup Network
      • How to configure Gmail With Microsoft outlook Expr...
      • Sending a remote assistance request
      • Wireless Network
      • Step by Step guides For wireless configuration
      • Wireless networking Access Modes
      • Wireless Networking Basic Security
      • wireless networking basic Transmission Factors Res...
      • XP Tips and Tricks
      • Sample technical support engineer Desktop support ...
      • Sample hardware Engineer resume Desktop support en...
      • Sample Resume Objectives Resume skills Resume care...
      • Resume skills Hardware Network Resumes skills Samp...
      • Full Form of hardware and networking devices and T...
      • Basic Computer Hardware review
      • Complete interview question with answer
      • How to create hardware profile in xp step by
      • How to configure roaming profile, mandatory profil...
      • How to configure roaming profile, mandatory profil...
      • How to add clients in domain advance method used i...
      • How to add clients in domain advance method used i...
      • No title
      • How to add or remove clients from domain network o...
      • how to configure DNS domain name system in Server ...
      • How To Verify the Installation of ADS and How to R...
      • How to configure ads active directory service step...
      • Replication Between Domain Controllers
      • What is Active Directory Services?
      • Editions of Windows Server 2003
      • Upgrade path MCSE on server 2003 to Server 2008
      • Main features of 802.2 Logical Link Control 802.3 ...
      • Network utility (FOR MY IIJT STUDENTS)
      • Networking Devices
      • 10BaseT 10BaseF 10Base2 5-4-3 rule 10Base5 100Base...
      • TCP IP model tcp ip stack MAC OSI IPX/SPX IPX SPX ...
      • Structure of IP (Internet Protocol) addresses (IPv...
      • Logical or Physical Network Topologies
      • Rj-45 J Rj-11 USB MT-RJ Coaxial BNC LC Local Conne...
      • cable media stp utp SMF MMF Coaxial cable ThickNet...
      • Identify factors which affect the range and speed ...
      • Define the function of TCP / UDP (Transmission Con...
      • Network Security protocols purpose and function
      • Turn Off Window Animation
      • Disable Password Caching
      • Changing Windows' Icons
      • Backup / Restore the Registry
      • Registry Tricks and Tips
      • Delete Autorun.inf Virus Manually using just Winrar
      • Hacking Youtube to find good quality videos
      • Install Windows xp in less than 15 minutes
      • Shutdown Computer With Command Prompt or shortcut ...
      • Recover Windows XP Administrator Password
      • NOKIA SECRET CODES
      • 10 TRICKS TO SPEED UP SYSTEM
      • Trick to Show Your name after time in taskbar...
      • TIP & TRICKS
Powered by Blogger.