Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Installation - Getting started with Red Hat Linux
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
Seawolf-list digest, Vol 1 #1670 - 1 msg

Seawolf-list digest, Vol 1 #1670 - 1 msg

2003-03-17       - By Dhadda, Baldev

 Back


-- --Original Message-- --
From: seawolf-list-request@(protected)
[mailto:seawolf-list-request@(protected)]
Sent: 15 March 2003 17:02
To: seawolf-list@(protected)
Subject: Seawolf-list digest, Vol 1 #1670 - 1 msg


Send Seawolf-list mailing list submissions to
  seawolf-list@(protected)

To subscribe or unsubscribe via the World Wide Web, visit
  https://listman.redhat.com/mailman/listinfo/seawolf-list
or, via email, send a message with subject or body 'help' to
  seawolf-list-request@(protected)

You can reach the person managing the list at
  seawolf-list-admin@(protected)

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Seawolf-list digest..."


Today's Topics:

  1. Re:Groupd and User's Group Changing (Cameron Simpson)

--__--__--

Message: 1
Date: Sat, 15 Mar 2003 21:38:00 +1100
From: Cameron Simpson <cs@(protected)>
To: seawolf-list@(protected)
Subject: Re: Groupd and User's Group Changing
Reply-To: seawolf-list@(protected)

On 11:26 14 Mar 2003, Nestor Waldyd <nwaldyd@(protected)> wrote:
| I really don't have a good definition of what a group is in Linux... Would
you please give me one? What i know
| is that a group is a set of users, but how can i change an user's group?

A group is a set of users, but the sets need not be disjoint.  A user may
be a member of several groups for access to various things.

The mapping is mostly in the file /etc/group, whihc is a list of group
names, group ids (the internal numeric values used to represent each
group) and the users in each.

At any given time a process has
  - a user id (uid)
  - a primary group id
  - a list of secondary groups ids

The uid and primary gid come from the /etc/passwd file.
The secondary gids come from the /etc/group file.

There's nothing special about the primary versus secondary gids; the
primary gid dates from an early revision of UNIX where there was only the
primary gid and no secondaries; the eatra groups were a BSD innovation,
now universal.

When accessing a file exactly _one_ of the three permission groups on the
file are considered:

  - if the user id of the file matches the user id of file
   then the first (user) set of permissions are used

  - otherwise, if the gid of the file matches one of the gids of the
   process, the second set is used

  - otherwise, the third ("other") set is used

Cheers,
--
Cameron Simpson, DoD#743        cs@(protected)    http://www.zip.com.au/~cs/

Success in software development depends on making a carefully planned
series of small mistakes in order to avoid making unplanned large
mistakes.   - Steve McConnell, _Software Project Survival Guide_





--__--__--

__ ____ ____ ____ ____ ____ ____ ____ ____ ____
Seawolf-list mailing list
Seawolf-list@(protected)
https://listman.redhat.com/mailman/listinfo/seawolf-list


End of Seawolf-list Digest

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: Seawolf-list digest, Vol 1 #1670 - 1 msg</TITLE>
</HEAD>
<BODY>
<BR>
<BR>

<P><FONT SIZE=2>-- --Original Message-- --</FONT>
<BR><FONT SIZE=2>From: seawolf-list-request@(protected)</FONT>
<BR><FONT SIZE=2>[<A HREF="mailto:seawolf-list-request@(protected)">mailto
:seawolf-list-request@(protected)</A>]</FONT>
<BR><FONT SIZE=2>Sent: 15 March 2003 17:02</FONT>
<BR><FONT SIZE=2>To: seawolf-list@(protected)</FONT>
<BR><FONT SIZE=2>Subject: Seawolf-list digest, Vol 1 #1670 - 1 msg</FONT>
</P>
<BR>

<P><FONT SIZE=2>Send Seawolf-list mailing list submissions to</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>seawolf-list@(protected)
.com</FONT>
</P>

<P><FONT SIZE=2>To subscribe or unsubscribe via the World Wide Web, visit</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2><A HREF="https:/
/listman.redhat.com/mailman/listinfo/seawolf-list" TARGET="_blank">https:/
/listman.redhat.com/mailman/listinfo/seawolf-list</A></FONT>
<BR><FONT SIZE=2>or, via email, send a message with subject or body 'help' to<
/FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>seawolf-list
-request@(protected)</FONT>
</P>

<P><FONT SIZE=2>You can reach the person managing the list at</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>seawolf-list-admin
@(protected)</FONT>
</P>

<P><FONT SIZE=2>When replying, please edit your Subject line so it is more
specific</FONT>
<BR><FONT SIZE=2>than &quot;Re: Contents of Seawolf-list digest...&quot;</FONT>
</P>
<BR>

<P><FONT SIZE=2>Today's Topics:</FONT>
</P>

<P><FONT SIZE=2>&nbsp;&nbsp; 1. Re:Groupd and User's Group Changing (Cameron
Simpson)</FONT>
</P>

<P><FONT SIZE=2>--__--__--</FONT>
</P>

<P><FONT SIZE=2>Message: 1</FONT>
<BR><FONT SIZE=2>Date: Sat, 15 Mar 2003 21:38:00 +1100</FONT>
<BR><FONT SIZE=2>From: Cameron Simpson &lt;cs@(protected)&gt;</FONT>
<BR><FONT SIZE=2>To: seawolf-list@(protected)</FONT>
<BR><FONT SIZE=2>Subject: Re: Groupd and User's Group Changing</FONT>
<BR><FONT SIZE=2>Reply-To: seawolf-list@(protected)</FONT>
</P>

<P><FONT SIZE=2>On 11:26 14 Mar 2003, Nestor Waldyd &lt;nwaldyd@(protected)
.co&gt; wrote:</FONT>
<BR><FONT SIZE=2>| I really don't have a good definition of what a group is in
Linux... Would you please give me one? What i know </FONT>
<BR><FONT SIZE=2>| is that a group is a set of users, but how can i change an
user's group?</FONT>
</P>

<P><FONT SIZE=2>A group is a set of users, but the sets need not be disjoint.
&nbsp; A user may</FONT>
<BR><FONT SIZE=2>be a member of several groups for access to various things.<
/FONT>
</P>

<P><FONT SIZE=2>The mapping is mostly in the file /etc/group, whihc is a list
of group</FONT>
<BR><FONT SIZE=2>names, group ids (the internal numeric values used to
represent each</FONT>
<BR><FONT SIZE=2>group) and the users in each.</FONT>
</P>

<P><FONT SIZE=2>At any given time a process has</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>- a user id (uid)<
/FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>- a primary group
id</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>- a list of
secondary groups ids</FONT>
</P>

<P><FONT SIZE=2>The uid and primary gid come from the /etc/passwd file.</FONT>
<BR><FONT SIZE=2>The secondary gids come from the /etc/group file.</FONT>
</P>

<P><FONT SIZE=2>There's nothing special about the primary versus secondary gids
; the</FONT>
<BR><FONT SIZE=2>primary gid dates from an early revision of UNIX where there
was only the</FONT>
<BR><FONT SIZE=2>primary gid and no secondaries; the eatra groups were a BSD
innovation,</FONT>
<BR><FONT SIZE=2>now universal.</FONT>
</P>

<P><FONT SIZE=2>When accessing a file exactly _one_ of the three permission
groups on the</FONT>
<BR><FONT SIZE=2>file are considered:</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>- if the user id of
the file matches the user id of file</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>&nbsp; then the
first (user) set of permissions are used</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>- otherwise, if the
gid of the file matches one of the gids of the</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>&nbsp; process, the
second set is used</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>- otherwise, the
third (&quot;other&quot;) set is used</FONT>
</P>

<P><FONT SIZE=2>Cheers,</FONT>
<BR><FONT SIZE=2>-- </FONT>
<BR><FONT SIZE=2>Cameron Simpson, DoD#743&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp; cs@(protected)&nbsp;&nbsp;&nbsp; <A HREF="http://www.zip.com.au/~cs/"
TARGET="_blank">http://www.zip.com.au/~cs/</A></FONT>
</P>

<P><FONT SIZE=2>Success in software development depends on making a carefully
planned</FONT>
<BR><FONT SIZE=2>series of small mistakes in order to avoid making unplanned
large</FONT>
<BR><FONT SIZE=2>mistakes.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - Steve
McConnell, _Software Project Survival Guide_</FONT>
</P>
<BR>
<BR>
<BR>
<BR>

<P><FONT SIZE=2>--__--__--</FONT>
</P>

<P><FONT SIZE=2>__ ____ ____ ____ ____ ____ ____ ____ ____ ____</FONT>
<BR><FONT SIZE=2>Seawolf-list mailing list</FONT>
<BR><FONT SIZE=2>Seawolf-list@(protected)</FONT>
<BR><FONT SIZE=2><A HREF="https://listman.redhat.com/mailman/listinfo/seawolf
-list" TARGET="_blank">https://listman.redhat.com/mailman/listinfo/seawolf-list<
/A></FONT>
</P>
<BR>

<P><FONT SIZE=2>End of Seawolf-list Digest</FONT>
</P>

</BODY>
</HTML>