Managing ObjectStore

oschown: Changing Database Owners

The oschown utility changes the ownership of specified databases and directories.

Syntax

oschown [-R][-f] owner[.group] pathname ... 
owner 
Specifies the user name of the new owner of the specified databases and directories.

.group 
Specifies the group name of the specified databases and directories. Be sure to precede it with a period. Optional.

pathname 
Specifies the databases and directories whose owner you want to change. You can specify both file and rawfs pathnames.

Options
-R 
Indicates that ObjectStore should change the owner recursively for all specified directories.

-f 
Forces execution. Errors are not reported.

Description

This utility operates on rawfs databases and directories and on file databases and directories.

When you specify a file database, you cannot specify a remote file-server host in the pathname of the file database. The oschown utility passes the operation to a local native utility. If you specify a remote file-server host name, ObjectStore informs you that you specified an illegal pathname.

oschown can perform wildcard processing. See "Wildcards".

UNIX

You must be the superuser to run this utility. The owner must be a user name in the password file /etc/passwd. Only the superuser can change the owner of a directory or database. The group is a group name found in the GID file /etc/group.

When operating on a rawfs database, you must enclose the wildcard with quotation marks ("") or precede it with a back slash (\) to keep the shell from interpreting wildcards. The -f and -R options are identical to the shell chown command's force and recursive options, respectively. The oschown utility accepts a combination of rawfs pathnames and file pathnames.

API

Class: os_dbutil
Method: chown



[previous] [next]

Copyright © 1999 Object Design, Inc. All rights reserved.

Updated: 03/11/99 11:19:07