[plug] <NEWBIE> - Passwd and Group

Scott, Simon Simon.Scott at SEALCORP.com.au
Thu Apr 20 14:28:01 WST 2000


Nope, /etc/passwd hold their *primary* group... usually (with RH and
Mandrake) every user has their own group created.

To add a user to multiple groups, look at /etc/group... this lists the
groups on the system, and if you look at the end of a line you'll see the
users added to that group (comma seperated)?

I hope this is correct, Im at work and I am working from memory.

> ------------------------------------------------------
>  Simon Scott
>  DBA
>  Sealcorp Holdings Limited
>  Perth, WA
>  e-mail:  simon.scott at sealcorp.com.au
>  phone:  08 9265 5648
> ------------------------------------------------------
4.31 How many times can you re-use CD-RW before they become faulty? 
Good question. 
(Linux CD-Writing HOWTO,
http://www.linuxdoc.org/HOWTO/CD-Writing-HOWTO-4.html#ss4.31)




-----Original Message-----
From: Earnshaw, Mike [mailto:earnshawm at wa.switch.aust.com]
Sent: Thursday, 20 April 2000 2:17
To: PLUG (E-mail)
Subject: [plug] <NEWBIE> - Passwd and Group


List,

Up until now i have not had to worry about groups on my linux box, things
have now changed. Would someone mind correcting me if I have this incorrect?

-rwxrwxrwx

First rwx is ownner, second is group, third is everyone.
In /etc/passwd:   <user>:x-password:userid:groupid: ......

Q1: Can I have more than one group listed in the passwd file? i.e.
<user>:x:123:678:679 where 123 is the userid and 678, 679 are groupid's

Situation:
We now have two admin people, so I created a group (office_admin), assigned
that as the group owner of a directory. But one of the office_admin users
should also be a member of a different group, which does not have access to
the office_admin directory. Am I just running round in circles?

Thanks

----------------------------------------------------------------------------
Mike Earnshaw       |   " Questions are the         | e-mail in header
Computer Systems    |     Beginning of Wisdom "     | Tel: +61 8 9256 1099
  Support           | Lt. Worf, TNG "Rightful Heir" | Fax: +61 8 9256 1199
----------------------------------------------------------------------------
Union Switch & Signal, 24 Bannick Court, Canning Vale, WA 6155, Australia
----------------------------------------------------------------------------



More information about the plug mailing list