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 @@
<para>
Managing database users and their privileges is in concept similar
to
that of Unix operating systems, but then again not identical
enough to not warrant explanation
.
to
managing users of a Unix operating system, but the details are not
identical
.
</para>
<sect1 id="database-users">
<title>Database Users</title>
<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
maintain a correspondence, but this is not required. Database user
names are global across a database cluster installation (and not
...
...
@@ -28,7 +28,7 @@ CREATE USER <replaceable>name</replaceable>
<para>
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.
</para>
...
...
@@ -39,8 +39,8 @@ CREATE USER <replaceable>name</replaceable>
<command>initdb</command>) it will have the same name as the
operating system user that initialized the area (and is presumably
being used as the user that runs the server). Customarily, this user
will be
call
ed <systemitem>postgres</systemitem>. In order to create more
users you
have to first
connect as this initial user.
will be
nam
ed <systemitem>postgres</systemitem>. In order to create more
users you
first have to
connect as this initial user.
</para>
<para>
...
...
@@ -53,7 +53,7 @@ CREATE USER <replaceable>name</replaceable>
determined by the client authentication setup, as explained in
<xref linkend="client-authentication">. (Thus, a client is not
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.)
</para>
...
...
@@ -94,15 +94,17 @@ CREATE USER <replaceable>name</replaceable>
<listitem>
<para>
A password is only significant if password authentication is
used for client authentication. Database passwords a separate
from
any
operating system passwords. Specify a password upon
user creati
ng as in <literal>CREATE USER name WITH
PASSWORD
used for client authentication. Database passwords a
re
separate
from operating system passwords. Specify a password upon
user creati
on with <literal>CREATE USER name
PASSWORD
'string'</literal>.
</para>
</listitem>
</varlistentry>
</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
<command>ALTER USER</command> for details.
</para>
...
...
@@ -113,12 +115,13 @@ CREATE USER <replaceable>name</replaceable>
<title>Groups</title>
<para>
As in Unix, groups are a way of logically grouping users. To create
a group, use
As in Unix, groups are a way of logically grouping users to ease
management of permissions: permissions can be granted to, or revoked
from, a group as a whole. To create a group, use
<synopsis>
CREATE GROUP <replaceable>name</replaceable>
</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>
ALTER GROUP <replaceable>name</replaceable> ADD 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;
</programlisting>
The special <quote>user</quote> name <literal>PUBLIC</literal> can
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.
</para>
...
...
@@ -168,8 +171,8 @@ GRANT SELECT ON accounts TO GROUP staff;
<programlisting>
REVOKE ALL ON accounts FROM PUBLIC;
</programlisting>
The s
et of privileges held by the table owner is
always implicit
and cannot be revoked.
The s
pecial privileges of the table owner are
always implicit
and cannot be
granted or
revoked.
</para>
</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