RSS Subscription
Linux Howtos & Tutorials

Enter your email:

Delivered by


NOTE:New tutorials are from LinuxCareer.com

Poll

Do you own or wish to have iPhone?
 


Linux eBooks FREE Download
A guide to programming Linux kernel modules
Introduction to Linux - A Hands on Guide
A Newbie's Getting Started Guide to Linux

Linux from Scratch - Create Your Own Linux System - Free eBook

Linux: The Hacking Solution (v.3.0)

SQLite 3 with PHP Essential Training – Free Video Training Tutorials

This guide will introduce you to the world of GNU/Linux

The GNU/Linux Advanced Administration

A Complete Beginner's Manual for Ubuntu 10.04 (Lucid Lynx)

Advanced Bash-Scripting Guide

Set up, maintain, and secure a small office email server

Partner Linux Sites:
How-To.LinuxCareer.com
Jobs.LinuxCareer.com
TuxMachines
Monsterb
LinuxBloggers
AdamsInfo
LinuxScrew
All For Linux

Linux Add User To Group

/etc/group file contains all groups available on the Linux systems. You can read all groups available with cat /etc/group command. To find out into which linux group you belong to you can use a following command:

groups

another way to access your personal group information is with id command:

id

id command will return group names you belong to as well as group numbers. to add a user to a group on your linux systems type ( only as a root ):

# usermod -G group-name user-name

Previous command will add user-name user to a group group-name. If the group does not exists you will get a following error:

usermod: unknown group group-name

In this case you can create a new group with ( only as a root ):

# groupadd group-name

There is also another way to add user to a group manually by editing /etc/group file, but this is not recommended.

Share this linux post:

Submit Linux Add User To Group in Delicious Submit Linux Add User To Group in Digg Submit Linux Add User To Group in FaceBook Submit Linux Add User To Group in Google Bookmarks Submit Linux Add User To Group in Stumbleupon Submit Linux Add User To Group in Technorati Submit Linux Add User To Group in Twitter
 
Comments for this page are closed !!!
Please visit our new Linux Forum for additional help or discussion.


Linux eBooks FREE Download