Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
c9a85cb2
Commit
c9a85cb2
authored
Nov 17, 2001
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Copy-editing.
parent
2043340b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
16 deletions
+19
-16
doc/src/sgml/user-manag.sgml
doc/src/sgml/user-manag.sgml
+19
-16
No files found.
doc/src/sgml/user-manag.sgml
View file @
c9a85cb2
...
@@ -3,15 +3,15 @@
...
@@ -3,15 +3,15 @@
<para>
<para>
Managing database users and their privileges is in concept similar
Managing database users and their privileges is in concept similar
to
that of Unix operating systems, but then again not identical
to
managing users of a Unix operating system, but the details are not
enough to not warrant explanation
.
identical
.
</para>
</para>
<sect1 id="database-users">
<sect1 id="database-users">
<title>Database Users</title>
<title>Database Users</title>
<para>
<para>
Database users are conceptually completely separate from
any
Database users are conceptually completely separate from
operating system users. In practice it might be convenient to
operating system users. In practice it might be convenient to
maintain a correspondence, but this is not required. Database user
maintain a correspondence, but this is not required. Database user
names are global across a database cluster installation (and not
names are global across a database cluster installation (and not
...
@@ -28,7 +28,7 @@ CREATE USER <replaceable>name</replaceable>
...
@@ -28,7 +28,7 @@ CREATE USER <replaceable>name</replaceable>
<para>
<para>
For convenience, the shell scripts <filename>createuser</filename>
For convenience, the shell scripts <filename>createuser</filename>
and <filename>dropuser</filename> are wrappers around these SQL
and <filename>dropuser</filename> are
provided as
wrappers around these SQL
commands.
commands.
</para>
</para>
...
@@ -39,8 +39,8 @@ CREATE USER <replaceable>name</replaceable>
...
@@ -39,8 +39,8 @@ CREATE USER <replaceable>name</replaceable>
<command>initdb</command>) it will have the same name as the
<command>initdb</command>) it will have the same name as the
operating system user that initialized the area (and is presumably
operating system user that initialized the area (and is presumably
being used as the user that runs the server). Customarily, this user
being used as the user that runs the server). Customarily, this user
will be
call
ed <systemitem>postgres</systemitem>. In order to create more
will be
nam
ed <systemitem>postgres</systemitem>. In order to create more
users you
have to first
connect as this initial user.
users you
first have to
connect as this initial user.
</para>
</para>
<para>
<para>
...
@@ -53,7 +53,7 @@ CREATE USER <replaceable>name</replaceable>
...
@@ -53,7 +53,7 @@ CREATE USER <replaceable>name</replaceable>
determined by the client authentication setup, as explained in
determined by the client authentication setup, as explained in
<xref linkend="client-authentication">. (Thus, a client is not
<xref linkend="client-authentication">. (Thus, a client is not
necessarily limited to connect as the user with the same name as
necessarily limited to connect as the user with the same name as
its operating system user in the same way a person is not
its operating system user
,
in the same way a person is not
constrained in its login name by her real name.)
constrained in its login name by her real name.)
</para>
</para>
...
@@ -94,15 +94,17 @@ CREATE USER <replaceable>name</replaceable>
...
@@ -94,15 +94,17 @@ CREATE USER <replaceable>name</replaceable>
<listitem>
<listitem>
<para>
<para>
A password is only significant if password authentication is
A password is only significant if password authentication is
used for client authentication. Database passwords a separate
used for client authentication. Database passwords a
re
separate
from
any
operating system passwords. Specify a password upon
from operating system passwords. Specify a password upon
user creati
ng as in <literal>CREATE USER name WITH
PASSWORD
user creati
on with <literal>CREATE USER name
PASSWORD
'string'</literal>.
'string'</literal>.
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</varlistentry>
</variablelist>
</variablelist>
A user's attributes can be modified after creation with
<command>ALTER USER</command>.
See the reference pages for <command>CREATE USER</command> and
See the reference pages for <command>CREATE USER</command> and
<command>ALTER USER</command> for details.
<command>ALTER USER</command> for details.
</para>
</para>
...
@@ -113,12 +115,13 @@ CREATE USER <replaceable>name</replaceable>
...
@@ -113,12 +115,13 @@ CREATE USER <replaceable>name</replaceable>
<title>Groups</title>
<title>Groups</title>
<para>
<para>
As in Unix, groups are a way of logically grouping users. To create
As in Unix, groups are a way of logically grouping users to ease
a group, use
management of permissions: permissions can be granted to, or revoked
from, a group as a whole. To create a group, use
<synopsis>
<synopsis>
CREATE GROUP <replaceable>name</replaceable>
CREATE GROUP <replaceable>name</replaceable>
</synopsis>
</synopsis>
To add users to or remove users from a group,
respectively, user
To add users to or remove users from a group,
use
<synopsis>
<synopsis>
ALTER GROUP <replaceable>name</replaceable> ADD USER <replaceable>uname1</replaceable>, ...
ALTER GROUP <replaceable>name</replaceable> ADD USER <replaceable>uname1</replaceable>, ...
ALTER GROUP <replaceable>name</replaceable> DROP USER <replaceable>uname1</replaceable>, ...
ALTER GROUP <replaceable>name</replaceable> DROP USER <replaceable>uname1</replaceable>, ...
...
@@ -158,7 +161,7 @@ GRANT SELECT ON accounts TO GROUP staff;
...
@@ -158,7 +161,7 @@ GRANT SELECT ON accounts TO GROUP staff;
</programlisting>
</programlisting>
The special <quote>user</quote> name <literal>PUBLIC</literal> can
The special <quote>user</quote> name <literal>PUBLIC</literal> can
be used to grant a privilege to every user on the system. Using
be used to grant a privilege to every user on the system. Using
<literal>ALL</literal> in place of a privilege specifies that all
<literal>ALL</literal> in place of a
specific
privilege specifies that all
privileges will be granted.
privileges will be granted.
</para>
</para>
...
@@ -168,8 +171,8 @@ GRANT SELECT ON accounts TO GROUP staff;
...
@@ -168,8 +171,8 @@ GRANT SELECT ON accounts TO GROUP staff;
<programlisting>
<programlisting>
REVOKE ALL ON accounts FROM PUBLIC;
REVOKE ALL ON accounts FROM PUBLIC;
</programlisting>
</programlisting>
The s
et of privileges held by the table owner is
always implicit
The s
pecial privileges of the table owner are
always implicit
and cannot be revoked.
and cannot be
granted or
revoked.
</para>
</para>
</sect1>
</sect1>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment