ALTER DIRECTORY v14
ALTER DIRECTORY — Change the owner of a directory created using the CREATE DIRECTORY command.
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.
The name of the directory to alter.
The name of an owner of the directory.
These examples change ownership.
carol are superusers.
bob is a current owner of the directory
To change the ownership of directory