LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-27-2018, 02:09 PM   #1
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,927
Blog Entries: 45

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Arrow How to Add User to Group in Linux


Hi,

A good tutorial for new users; How to Add User to Group in Linux
Quote:
This tutorial will show you how to add user to a group in Linux systems.Linux groups are organization units which are used to organize and administer user accounts in Linux. The main purpose of groups is to define a set of privileges such as reading, writing, or executing permission for a given resource that can be shared among the users within the group.In Linux, to add a user to a group you can use the usermod command. You will need to be logged in as root or as a user with sudo access to be able to execute the command.
Hope this helps.
Have fun & enjoy!
 
Old 10-19-2018, 05:20 AM   #2
seddik
Member
 
Registered: Mar 2018
Location: france
Distribution: CENTOS,,DEBIAN,,UBUNTU,,ARCHLINUX,,RHEL
Posts: 33

Rep: Reputation: Disabled
Hi

You can simply run command:
#usermod -a -G <group> <user-name>


Regards
sai

Last edited by seddik; 10-21-2018 at 01:39 PM.
 
Old 10-19-2018, 05:20 PM   #3
average_user
Member
 
Registered: Dec 2010
Location: Warsaw, Poland
Distribution: Slackware
Posts: 560

Rep: Reputation: 220Reputation: 220Reputation: 220
You have a typo, it should be 'usermod'. And notice that usermod without -a overwrites current group information https://wiki.archlinux.org/index.php...ser_management
 
  


Reply

Tags
group, useradd, usermod



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to Add User to Group in Linux LXer Syndicated Linux News 0 08-25-2018 01:41 PM
[SOLVED] How to add a user to a group with a command without removing from another group? erik2282 Linux - Newbie 2 07-12-2017 09:49 AM
LXer: How to: linux add user to group LXer Syndicated Linux News 0 03-14-2017 01:21 PM
How to list user in Linux box, add an user to a group! steady_lfcfan Linux - Newbie 12 01-27-2013 01:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration