Skip to Content
LPI Linux Certification in a Nutshell, 2nd Edition
book

LPI Linux Certification in a Nutshell, 2nd Edition

by Steven Pritchard, Bruno Gomes Pessanha, Nicolai Langfeldt, James Stanger, Jeff Dean
July 2006
Intermediate to advanced
992 pages
30h 57m
English
O'Reilly Media, Inc.
Content preview from LPI Linux Certification in a Nutshell, 2nd Edition

Administrative Tasks (Topic 1.111)

Objective 1: Manage Users and Group Accounts and Related System Files

passwd and group

  • User account information is stored in /etc/passwd.

  • Each line in /etc/passwd contains a username, password, UID, GID, user's name, home directory, and default shell.

  • Group information is stored in /etc/group.

  • Each line in /etc/group contains a group name, group password, GID, and group member list.

  • passwd and group are world-readable.

Shadow files

  • To prevent users from obtaining encrypted passwords from passwd and group, shadow files are implemented.

  • Encrypted passwords are moved to a new file, which is readable only by root.

  • The shadow file for /etc/passwd is /etc/shadow.

  • The shadow file for /etc/group is /etc/gshadow.

User and group management commands

The following commands are commonly used for manual user and group management :

useradd user

Create the account user.

usermod user

Modify the user account.

userdel user

Delete the user account.

groupadd group

Add group.

groupmod group

Modify the parameters of group.

groupdel group

Delete group.

passwd username

Interactively set the password for username.

gpasswd groupname

Interactively set the password for groupname.

pwconv

Convert a standard password file to a shadow configuration.

pwunconv

Revert from a shadow password configuration.

grpconv

Convert a standard group file to a shadow configuration.

grpunconv

Revert from a shadow group configuration.

chage user

Modify password aging and expiration settings for user.

Objective ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Linux Server Hacks

Linux Server Hacks

Rob Flickenger
CompTIA Linux+ XK0-004 Cert Guide

CompTIA Linux+ XK0-004 Cert Guide

William “Bo” Rothwell, Ross Brunson

Publisher Resources

ISBN: 0596005288