ALTER DIRECTORY v13
Name
ALTER DIRECTORY
-- change the owner of a directory created using CREATE DIRECTORY command.
Synopsis
Description
The ALTER DIRECTORY ...OWNER TO
command changes the owner of a directory. You must have the superuser privilege to execute this command; the new owner of the directory must also have the superuser privilege.
Parameters
name
The name of the directory to be altered.
rolename
The name of an owner that will own the directory.
Examples
The following example demonstrates changing ownership; bob
and carol
are superusers. bob
is a current owner of directory EMPDIR
:
To alter the ownership of directory EMPDIR
to carol
:
The ownership of a directory is altered and granted to carol
.
See Also