Professional Documents
Culture Documents
CIS-116
SUNY Ulster
Karl Wick
Handout
Unix Commands for Managing Files and Directories
Command Description Example
(admin chapter 8)
Managing Accounts
• Types of Accounts
• root - The administrator / Superuser
• Regular Users
• Non-Regular Users - used by programs
• Account Groups
• Each user belongs to a primary group
• A user can belong to a secondary group
• Groups can be assigned permissions
• Type more /etc/passwd to see all users including
usernames created by programs.
• Root will be first, regular users will be last.
etc/passwd
• root:x:0:0:root:/root:/bin/bash
-M Does not create a home directory useradd –M kwick (even if default is set)
• Edit the file and save it or create the file with cat >
/etc/motd if it does not exist.