Solved

creating a group and adding users

Posted on 2002-05-29
3
151 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

Question has a verified solution.

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

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

623 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