passwd & group question

2007-12-25 9:58:00

Hello admins...

This is funny...as soon as I got home I figured the answer by myself.. :)

The question was..

Why do I have to re-specify a user's group (vice-versa) in /etc/group?

It's already specified in /etc/passwd..

Thanks to the MANY MANY people who replied..

The answer is simple...

YOU DON'T HAVE TO..

/etc/groups is used to specify SECONDARY groups for users, the PRIMARY

group is specified in /etc/passwd, so re-specifying is redundant.

For security matters and corruption of /etc/passwd is may be recommendable

to re-specify the PRIMARY group of a user in /etc/group so

/etc/passwd can be reconstructed easy.

Thanks again..

PD: sorry for the stupid question... :)


--
Marcelo Maraboli R. | |----| |-[]-| |----| C: uCapacitor
| | C I C | I: Electronic
Undergraduate Student | | | Island
Electronic Engineering | |--------()--------| V: Voltage
Federico Santa Maria University | V + -
Chile | "Quantum Electronics"
| The Beginning of the New Electronic Age
System Operator of disca.utfsm.cl |
email:maraboli@llico.disca.utfsm.cl| "Quantum Electronics, That's COOL!"
WWW : http://llico.disca.utfsm.cl | "Shut up, Beavis!"
--------------------------------------------------------------------------/

Comments

Got something to say?

You must be logged in to post a comment.