Solved

creating a group and adding users

Posted on 2002-05-29
3
142 Views
Last Modified: 2013-12-16
I'm trying to follow a CVS tutorial on my
Linux(red hat 7.2) machine
which is connected to a network. I created a group in /usr/local directory and want to add my self to the group I just created. I tried to do this as root via:
adduser sean -g cvs-user
and it gives me a message user already exists. I've verified the group cvs-user has been created, but I can't add myself to it. I don't know if this is some kind of conflict with the network file system or what?
when I type "group" as me it just gives one group which is
the group all users of the network are in.

0
Comment
Question by:mitchguy
3 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7042491
simply edit /etc/group and add the user to the group you like.

To check in which groups you are, use
  groups
or
  id -a
0
 
LVL 4

Accepted Solution

by:
MFCRich earned 50 total points
ID: 7044285
>> usermod -G cvs-user sean

If sean should be included in other supplemental groups those groups should appear in a comma seperated list with cvs-user
0
 
LVL 2

Expert Comment

by:pheur
ID: 7045231
Alternatively, add yourself to the corresponding group in /etc/groups:
cvs-users::gid:sean
And remember to logou out and log in again, since changes in group membership does not take any effect in currentlly open sessions.

--
Radu-Adrian Feurdean
Brainbench Linux MVP
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question