Group - define a new one

Group - define a new one

Post by Mitch Appleb » Tue, 14 Sep 1999 04:00:00



This has to be simple, but I can't seem to find a reference to creating a
group.  I just need to define a group and put users in it.  Can someone
point me to what command I should be using?

Using Linux Red Hat 5.2 and 6.0 with Samba 2.0.  We just what to replace an
NT server for file serving only.

Mitch Appleby
IS Admin
Dubuque Stamping

 
 
 

Group - define a new one

Post by Roland Exle » Wed, 15 Sep 1999 04:00:00



> This has to be simple, but I can't seem to find a reference to creating a
> group.  I just need to define a group and put users in it.  Can someone
> point me to what command I should be using?

just edit /etc/group with any editor you prefer, add a new group ID and add
the users to this group either by changing their primary group id in
/etc/passwd to this id or adding the users to this group. If you set the users
primary group id, all files created by the users will have this id ad default.
If just adding the users to the group, they get the right to access the files
from this group.

If you have a GUI like KDE running, there is also a User Manager in it, which
lets you edit the files with a simple to use GUI.

Hope this helps,
  Roland

--

Institute of Measurement Technology    http://Sensor200.emt.uni-linz.ac.at
Altenbergerstr. 69                     Tel. (+43) 732 / 2468 - 9774
A - 4040 Linz, Austria                 Fax. (+43) 732 / 2468 - 9233

 
 
 

1. cannot set up UMASK or groups so that users from one group cannot access other groups

Hi

First let me describe what I would like to set up to clarify things:

Scenario:

I would like to set up 3 groups, lets call them A, B, C. Users from A should
have access files created by users in B or C. Users in B or C cannot access
files created by users in A. Also users in B or C should not have access to
each others files.

How would I set up Umask to handle this? I've tried to create a primary
group for all and secondary groups to reflect the permissions I'm after, but
to no avail.

Any ideas?

Many thanks in advance.

Jon

2. CD ROM ON RS6000

3. change to new gid or new group name all files of given group name or gid

4. multiple boot mac

5. gcc #define #define #define

6. Help, need ROM Image for AS200-4/233

7. New to this group: Is there a FAQ file for this group available somewhere?

8. Get rid of warnings in pd.c and pcd.c

9. Figuring out basic groups and group ids for a new linux system

10. GURUS: user has two groups - new files inherit group from current dir - HOW?

11. How can I define float timing group in squid?

12. user-defined groups

13. how to define NFS group?