33
44 <para>
55 Managing database users and their privileges is in concept similar
6- tothat of Unix operatingsystems , butthen again not identical
7- enough to not warrant explanation .
6+ tomanaging users ofa Unix operatingsystem , butthe details are not
7+ identical .
88 </para>
99
1010 <sect1 id="database-users">
1111 <title>Database Users</title>
1212
1313 <para>
14- Database users are conceptually completely separate from any
14+ Database users are conceptually completely separate from
1515 operating system users. In practice it might be convenient to
1616 maintain a correspondence, but this is not required. Database user
1717 names are global across a database cluster installation (and not
@@ -28,7 +28,7 @@ CREATE USER <replaceable>name</replaceable>
2828
2929 <para>
3030 For convenience, the shell scripts <filename>createuser</filename>
31- and <filename>dropuser</filename> are wrappers around these SQL
31+ and <filename>dropuser</filename> areprovided as wrappers around these SQL
3232 commands.
3333 </para>
3434
@@ -39,8 +39,8 @@ CREATE USER <replaceable>name</replaceable>
3939 <command>initdb</command>) it will have the same name as the
4040 operating system user that initialized the area (and is presumably
4141 being used as the user that runs the server). Customarily, this user
42- will becalled <systemitem>postgres</systemitem>. In order to create more
43- users you have to first connect as this initial user.
42+ will benamed <systemitem>postgres</systemitem>. In order to create more
43+ users youfirst have to connect as this initial user.
4444 </para>
4545
4646 <para>
@@ -53,7 +53,7 @@ CREATE USER <replaceable>name</replaceable>
5353 determined by the client authentication setup, as explained in
5454 <xref linkend="client-authentication">. (Thus, a client is not
5555 necessarily limited to connect as the user with the same name as
56- its operating system user in the same way a person is not
56+ its operating system user, in the same way a person is not
5757 constrained in its login name by her real name.)
5858 </para>
5959
@@ -94,15 +94,17 @@ CREATE USER <replaceable>name</replaceable>
9494 <listitem>
9595 <para>
9696 A password is only significant if password authentication is
97- used for client authentication. Database passwordsa separate
98- fromany operating system passwords. Specify a password upon
99- usercreating as in <literal>CREATE USER name WITH PASSWORD
97+ used for client authentication. Database passwordsare separate
98+ from operating system passwords. Specify a password upon
99+ usercreation with <literal>CREATE USER name PASSWORD
100100 'string'</literal>.
101101 </para>
102102 </listitem>
103103 </varlistentry>
104104 </variablelist>
105105
106+ A user's attributes can be modified after creation with
107+ <command>ALTER USER</command>.
106108 See the reference pages for <command>CREATE USER</command> and
107109 <command>ALTER USER</command> for details.
108110 </para>
@@ -113,12 +115,13 @@ CREATE USER <replaceable>name</replaceable>
113115 <title>Groups</title>
114116
115117 <para>
116- As in Unix, groups are a way of logically grouping users. To create
117- a group, use
118+ As in Unix, groups are a way of logically grouping users to ease
119+ management of permissions: permissions can be granted to, or revoked
120+ from, a group as a whole. To create a group, use
118121<synopsis>
119122CREATE GROUP <replaceable>name</replaceable>
120123</synopsis>
121- To add users to or remove users from a group,respectively, user
124+ To add users to or remove users from a group,use
122125<synopsis>
123126ALTER GROUP <replaceable>name</replaceable> ADD USER <replaceable>uname1</replaceable>, ...
124127ALTER GROUP <replaceable>name</replaceable> DROP USER <replaceable>uname1</replaceable>, ...
@@ -158,7 +161,7 @@ GRANT SELECT ON accounts TO GROUP staff;
158161</programlisting>
159162 The special <quote>user</quote> name <literal>PUBLIC</literal> can
160163 be used to grant a privilege to every user on the system. Using
161- <literal>ALL</literal> in place of a privilege specifies that all
164+ <literal>ALL</literal> in place of aspecific privilege specifies that all
162165 privileges will be granted.
163166 </para>
164167
@@ -168,8 +171,8 @@ GRANT SELECT ON accounts TO GROUP staff;
168171<programlisting>
169172REVOKE ALL ON accounts FROM PUBLIC;
170173</programlisting>
171- Theset of privilegesheld by the table owneris always implicit
172- and cannot be revoked.
174+ Thespecial privilegesof the table ownerare always implicit
175+ and cannot begranted or revoked.
173176 </para>
174177 </sect1>
175178