1753395 Members
7227 Online
108792 Solutions
New Discussion юеВ

groupe

 
Dedieu_1
New Member

groupe

how can i put a user in two groupes (create /ident, grant ident and so on...)?
2 REPLIES 2
Michael Schulte zur Sur
Honored Contributor

Re: groupe

Hi,

I assume, that you mean unix group?
The first group of each user is in /etc/passwd. A user is added to a new group by adding him in /etc/group in the sprecific group. New groups are added with addgroup. The primary group of a user can be changed by newgroup

hth,

Michael
Mobeen_1
Esteemed Contributor

Re: groupe

Dedieu,
Looks like you are talking about the VMS commands :-)

Any ways, yes its absolutely possible for a user in Unix environment to belong to more than one groups. How ever at any given point of time, the user can be active in only one group.

As our friend in the prior post has mentioned, I am just listing the same from his post for your ref below, which is


----start of cut-paste from previous post---
The first group of each user is in /etc/passwd.

A user is added to a new group by adding him in /etc/group in the sprecific group.

New groups are added with addgroup. The primary group of a user can be changed by newgroup

------end of cut-paste from previous post---
Let us know if you have any specific questions

rgds
Mobeen