Changes

Jump to: navigation, search

Lab 4 Warnings / Debrief

657 bytes added, 08:24, 3 November 2015
no edit summary
The '''/etc/skel''' directory can contain files (as a template) for newly created user accounts to have. This helps to automate the task of continually creating new accounts without having to create the same default files after account creation.
===Managing GroupsThe /etc/group File ===
The /etc/group file is used to store groups which users can belong.
This file consists of several fields:
:*#''' groupname:*#'''Password''': (generally not used):*#'''Group ID (GID)''':* # '''Group List''' It is a list of user names of users who are members of the group (separated by commas)
=== Managing Groups ===
 
Just as with user accounts, a Linux system administrator will be required to manage groups on an on-going basis.
For example, users are added to a default group, but users can also be added (appended) to the newly-added supplemental groups
in the /etc/group file.
 
Various Linux commands for group management includes:
 
 
:* '''groupadd''' - Creates a group in /etc/group file (the option -g assigns a gid for the group)
:* '''groupdel''' - Removes an existing group contained in the /etc/group file
:* '''usermod -a -G [groupname] user''' - Modifies the /etc/group file to add or "append" users to a "supplemental" group name
13,420
edits

Navigation menu