?
Solved

Creating groups

Posted on 2005-04-11
10
Medium Priority
?
427 Views
Last Modified: 2010-04-21
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
0
Comment
Question by:dissolved
  • 5
  • 5
10 Comments
 
LVL 10

Accepted Solution

by:
Luxana earned 2000 total points
ID: 13758931
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
 
LVL 10

Expert Comment

by:Luxana
ID: 13758946
here is man page sam as you get with command
 # man usermod

http://www.rt.com/man/usermod.8.html
0
 

Author Comment

by:dissolved
ID: 13758958
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:dissolved
ID: 13758960
im giving you the answer now since you answered very well. When you get a chance, can you answer my second question?

Thanks!
0
 
LVL 10

Expert Comment

by:Luxana
ID: 13758969
first have a look hare:

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

this is what you looikng for...

0
 

Author Comment

by:dissolved
ID: 13759001
thx
0
 
LVL 10

Expert Comment

by:Luxana
ID: 13759008
give me a second I got to do something now...I'll come back .. Read it and if something not clear post here...
0
 

Author Comment

by:dissolved
ID: 13762111
0
 
LVL 10

Expert Comment

by:Luxana
ID: 13778316
sorry for delay...so how about your question . Did you find what you need to know in that link what I posted?
0
 

Author Comment

by:dissolved
ID: 13778322
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

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
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…
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…
Suggested Courses

850 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