
20
User Administration
Add a user useradd
Modify a user usermod
Delete a user userdel
Change password
passwd username (if logged on as root, can change anyone’s password – if
logged on as user, can only change own password, no need to type your
username as the switch)
Group administration
command
groupadd
groupmod
groupdel
gpasswd
Who is logged on
users
What group(s) do I belong
to?
groups
User login activity
last
lastb
who
ac
List last logged in users
Last – shows the following information:
• Type of Login
• Process ID of login process
• Device name of tty
• Init ID or abbreviated ttyname
• User Name
• Hostname for remote login
• Exit Status of a process
• Time entry was made
• IP address of remote host
Manage user accounts • chage (1) - change user password expiry information
• groups (1) - print the groups a user is in
• newusers (8) - update and create new users in batch
• passwd (1) - update a user's authentication tokens(s)
• nologin (5) - prevent non-root users from log into the system
• su (1) - run a shell with substitute user and group IDs
• useradd (8) - Create a new user or update default new user
information
• userdel (8) - Delete a user account and related files
• usermod (8) - Modify a user account
• chgrp (1) - change the group ownership of files
• chown (1) - change the user and group ownership of files
• gpasswd (1) - administer the /etc/group file
• groupadd (8) - Create a new group
Kommentare zu diesen Handbüchern