0% found this document useful (0 votes)
45 views1 page

User Management in Unix/Linux Systems

Uploaded by

Stephen Efange
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views1 page

User Management in Unix/Linux Systems

Uploaded by

Stephen Efange
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

- /etc/passwd

- /etc/security/.profile
- /etc/security/limits
- /etc/security/passwd
- /etc/security/user
- /usr/lib/security/mkuser.default

- Username -> This is the login/user name associated with the account.
- Password Flag -> This field varies slightly in different flavors of
! is displayed, a password has been set for the user.
* If no password has been set,
- UID -> The User Identifier (UID) is a numeric identifier to a user.
- GID -> The Group Identifier (GID) is similar to the UID but is associated with
groups.
The GIDs are defined in /etc/group.
- GECOS -> The General Electric Comprehensive Operating System (GECOS)
information is stored in the fifth field.
The user’s name, phone numbers, and other generic personal information are stored
here.
- Home -> This is the user’s home directory.
- Shell/Command -> Typically, the seventh and final field contains the shell
that is started at the user’s login.
Administrators can also change this field to execute other commands instead of
shells to limit access (for example, /bin/false).

-EX
mkuser -a id=802 pgrp=staff groups=IT_Guys shell=/usr/bin/ksh test2
useradd -u 4000 -s /usr/bin/ksh -g 4000 -c "IT Guy" -d /home/tareq -m tareq
mkuser tareq -> create a user
userdel -r tareq -> -r everything link to the account

lsuser -f tareq
lsuser -f ALL
lsgroup -a users tareq

chuser target=value userName

mkgroup DB
mkgroup -a -id=300 DBA

You might also like