Creating groups

Hi, I would like to do some basic group and user creation in unix so I can practice.

1. When you create a new group, where is it placed?  /etc ?

2. I want to make a new group called dissolved, and have executables in there (say, an executable called car.exe). So only members of the group can access the executable. I'll make the user "test_user1."    What is the best way to do this?

root# groupadd dissolved
root# useradd test_user1
...then what?

Thanks
dissolvedAsked:
Who is Participating?
 
LuxanaConnect With a Mentor Commented:
1)
/etc/group
2)
once you have created user group you can use this command to modify user accounts:

usermod - Modify a user account

SYNOPSIS
       usermod [-c comment] [-d home_dir [-m]]
               [-e expire_date] [-f inactive_time]
               [-g initial_group] [-G group [,...]]
               [-l login_name] [-p passwd]
               [-s shell] [-u uid [-o]] [-L|-U] login

for example:

usermod -G dissolved username

so here you put your username into group dissolved

what system are you using this can be slightly different for each...

0
 
LuxanaCommented:
here is man page sam as you get with command
 # man usermod

http://www.rt.com/man/usermod.8.html
0
 
dissolvedAuthor Commented:
Ok sweet, didnt know it was that easy. I thought I had to edit a config file of some sort.  When I do
usermod -G group_name user_name , what are the default permissions the user gets?
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
dissolvedAuthor Commented:
im giving you the answer now since you answered very well. When you get a chance, can you answer my second question?

Thanks!
0
 
LuxanaCommented:
first have a look hare:

http://owen.sj.ca.us/rkowen/howto/newuser.html

this is what you looikng for...

0
 
dissolvedAuthor Commented:
thx
0
 
LuxanaCommented:
give me a second I got to do something now...I'll come back .. Read it and if something not clear post here...
0
 
dissolvedAuthor Commented:
0
 
LuxanaCommented:
sorry for delay...so how about your question . Did you find what you need to know in that link what I posted?
0
 
dissolvedAuthor Commented:
yes, thanks a lot. I'm currently try to comprehend the importance of the gpasswd command http://experts-exchange.com/Operating_Systems/Linux/Q_21387694.html
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.