Group Information

Where group information is stored Group information is stored in /etc/group. This file should be changed with the usermod, groupadd and groupmod commands. The format of each line is: Group name Group password (hardly ever used) Group ID User names (separated by commas) Each field is separated by a colon.

User Information

Where user information is stored User names and primary groups are stored in /etc/passwd. This file can be directly edited using the ‘vi’ editor, although this is not recommended. The format of each line is: User name (normally all lower case) Password (encrypted – only contains the letter ‘x’) User ID (UID) (a unique number …

Disable & Enable Users

To disable a user, think of locking the account: passwd <username> -l  So, to re-enable the account you unlock it: passwd <username> -u  See this highly useful page:

Add a User

Now we’re going to create a new user. Type these commands: useradd studenth passwd studenth You’ve just created a new user named studenth and a directory in /home/ called studenth.   useradd – Adding a new user Options: -d home directory -s starting program (shell) -p password -g (primary group assigned to the users) -G …


Boot your computer if it’s not running. When it arrives at the login prompt, log in as studenth. Use the password I supply. UNM Trainees: Boot, login, Remote Desktop as necessary, and start Secure Telnet/Secure Shell (SSH). Log in with your UNM user name and password. Check Your Shell Command: echo $SHELL Your answer may …

What is Linux?

Linux is a Unix-type operating system Before Unix, there was Multics Dennis Ritchie’s “Unics” PDP7 Ritchie and Brian Kernighan invented C, and with Ken Thompson largely originated Unix The effort outgrew U Cal Berkeley and was taken over by AT&T Which gave rise to commercial Unices (Unixes or *nix) Richard Stallman made the technical, political …

Linux Fundamentals

UNM Continuing Education Course Instructor: Glenn Norman Text: Objectives A basic understanding of working in Linux Familiarity with construction, maintenance and troubleshooting of Linux systems Beginning preparation to pass the CompTIA Linux+ Certification Exam