add directory docs
This commit is contained in:
87
docs/Install-Guide/install-guide-2.2.2/node171.html
Normal file
87
docs/Install-Guide/install-guide-2.2.2/node171.html
Normal file
@@ -0,0 +1,87 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3O//DTD W3 HTML 2.0//EN">
|
||||
<!Converted with LaTeX2HTML 95.1 (Fri Jan 20 1995) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds >
|
||||
<HEAD>
|
||||
<TITLE>4.4.5 Groups</TITLE>
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<meta name="description" value="4.4.5 Groups">
|
||||
<meta name="keywords" value="gs">
|
||||
<meta name="resource-type" value="document">
|
||||
<meta name="distribution" value="global">
|
||||
<P>
|
||||
<BR> <HR><A NAME=tex2html3947 HREF="node172.html"><IMG ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A> <A NAME=tex2html3945 HREF="node166.html"><IMG ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A> <A NAME=tex2html3941 HREF="node170.html"><IMG ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <A NAME=tex2html3949 HREF="node1.html"><IMG ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <A NAME=tex2html3950 HREF="node250.html"><IMG ALIGN=BOTTOM ALT="index" SRC="index_motif.gif"></A> <BR>
|
||||
<B> Next:</B> <A NAME=tex2html3948 HREF="node172.html">4.5 Archiving and Compressing </A>
|
||||
<B>Up:</B> <A NAME=tex2html3946 HREF="node166.html">4.4 Managing Users</A>
|
||||
<B> Previous:</B> <A NAME=tex2html3942 HREF="node170.html">4.4.4 Setting user attributes</A>
|
||||
<BR> <HR> <P>
|
||||
<H2><A NAME=SECTION00645000000000000000>4.4.5 Groups</A></H2>
|
||||
<A NAME=secmanagegroups> </A>
|
||||
<A NAME=4454> </A>
|
||||
<A NAME=4455> </A>
|
||||
<A NAME=4456> </A>
|
||||
As we have mentioned, each user belongs to one or more groups. The
|
||||
only real importance of group relationships pertains to file permissions,
|
||||
as you'll recall from Section <A HREF="node124.html#secperms">3.9</A>, each file has a ``group
|
||||
ownership'' and a set of group permissions which defines how users in that
|
||||
group may access the file.
|
||||
<P>
|
||||
There are several system-defined groups such as <tt>bin</tt>, <tt>mail</tt>,
|
||||
and <tt>sys</tt>. Users should not belong to any of these groups; they
|
||||
are used for system file permissions. Instead, users should belong to
|
||||
an individual group such as <tt>users</tt>. If you want to be cute, you
|
||||
can maintain several groups of users such as <tt>student</tt>,
|
||||
<tt>staff</tt>, and <tt>faculty</tt>.
|
||||
<P>
|
||||
<A NAME=4516> </A>
|
||||
The file <tt>/etc/group</tt> contains information about groups.
|
||||
The format of each line is
|
||||
<P><TT> group name:password:GID:other members
|
||||
<P></TT>
|
||||
Some example groups might be:
|
||||
<P><TT> root:*:0: <BR>
|
||||
users:*:100:mdw,larry <BR>
|
||||
guest:*:200: <BR>
|
||||
other:*:250:kiwi
|
||||
<P></TT>
|
||||
<A NAME=4471> </A>
|
||||
<A NAME=4517> </A>
|
||||
The first group, <tt>root</tt>, is a special system group reserved for
|
||||
the <tt>root</tt> account. The next group, <tt>users</tt>, is for regular
|
||||
users. It has a GID of 100. The users <tt>mdw</tt> and <tt>larry</tt>
|
||||
are given access to this group. Remember that in <tt>/etc/passwd</tt>
|
||||
each user was given a default GID. However, users may belong to
|
||||
more than one group, by adding their usernames to other group lines
|
||||
in <tt>/etc/group</tt>. The <tt>groups</tt> command lists what groups you
|
||||
are given access to.
|
||||
<P>
|
||||
The third group, <tt>guest</tt>, is for guest users, and <tt>other</tt>
|
||||
is for ``other'' users. The user <tt>kiwi</tt> is given access to this
|
||||
group as well.
|
||||
<P>
|
||||
As you can see, the ``password'' field of <tt>/etc/group</tt>
|
||||
is rarely used. It is sometimes used to set a password on group
|
||||
access. This is seldom necessary. To protect users from changing into
|
||||
priveleged groups (with the <tt>newgroup</tt> command), set the password
|
||||
field to ``<tt>*</tt>''.
|
||||
<P>
|
||||
<A NAME=4518> </A>
|
||||
<A NAME=4519> </A>
|
||||
<A NAME=4489> </A>
|
||||
<A NAME=4490> </A>
|
||||
The commands <tt>addgroup</tt> or <tt>groupadd</tt> may be used to
|
||||
add groups to your system. Usually, it's easier just to add
|
||||
entries in <tt>/etc/group</tt> yourself, as no other configuration
|
||||
needs to be done to add a group. To delete a group, simply delete
|
||||
its entry in <tt>/etc/group</tt>.
|
||||
<P>
|
||||
<BR> <HR><A NAME=tex2html3947 HREF="node172.html"><IMG ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A> <A NAME=tex2html3945 HREF="node166.html"><IMG ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A> <A NAME=tex2html3941 HREF="node170.html"><IMG ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <A NAME=tex2html3949 HREF="node1.html"><IMG ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <A NAME=tex2html3950 HREF="node250.html"><IMG ALIGN=BOTTOM ALT="index" SRC="index_motif.gif"></A> <BR>
|
||||
<B> Next:</B> <A NAME=tex2html3948 HREF="node172.html">4.5 Archiving and Compressing </A>
|
||||
<B>Up:</B> <A NAME=tex2html3946 HREF="node166.html">4.4 Managing Users</A>
|
||||
<B> Previous:</B> <A NAME=tex2html3942 HREF="node170.html">4.4.4 Setting user attributes</A>
|
||||
<BR> <HR> <P>
|
||||
<BR> <HR>
|
||||
<P><ADDRESS>
|
||||
<I>Matt Welsh <BR>
|
||||
mdw@sunsite.unc.edu</I>
|
||||
</ADDRESS>
|
||||
</BODY>
|
||||
Reference in New Issue
Block a user