OSCHMOD(1) — OBJECTSTORE COMMANDS
NAME
oschmod − change the permissions mode of an ObjectStore database
SYNOPSIS
oschmod [ -R][ -f] mode pathname ...
DESCRIPTION
oschmod changes the permissions (mode) of the of the directories or databases given in pathname as arguments to mode.
You must be the owner of the file or the super-user in order to change its mode. Execute permissions are only relevant to directories. The mode of each named file is changed according to mode, which may be absolute or symbolic, as follows.
Absolute Modes
An absolute mode is an octal number constructed from the OR of the following modes:
400 Read by owner.
200 Write by owner.
100 Execute (search in directory) by owner.
040 Read by group.
020 Write by group.
010 Execute (search) by group.
004 Read by others.
002 Write by others.
001 Execute (search) by others.
Symbolic Modes
A symbolic mode has the form:
[ who ] op permission [ op permission ] ...
who is a combination of:
u User’s permissions.
g Group permissions.
o Others.
a All, or ugo.
If who is omitted, the default is a, but the setting of the file creation mask (see umask in sh(1) or csh(1) for more information) is taken into account. When who is omitted, chmod will not override the restrictions of your user mask.
op is one of:
+ To add the permission.
− To remove the permission.
= To assign the permission explicitly (all other bits for that category, owner, group, or others, will be reset).
permission is any combination of:
r Read.
w Write.
x Execute.
X Give execute permission if the file is a directory or if there is execute permission for one of the other user classes.
s Set owner or group ID. This is only useful with u or g. Also, the set group ID bit of a directory may only be modified with ‘+’ or ‘−’.
The letters
u, g, or o indicate that permission is to be taken from the current mode for the user-class.
Omitting permission is only useful with ‘=’, to take away all permissions.
oschgrp can perform wild card processing similar to shell wild cards (∗, ?, {}, and []). You must quote the wild card with quotation marks ("") or a backslash (\) to keep the shell from misinterpreting the asterisk as a shell wild card.
oschmod supports all the arguments of the shell command chmod. -f and -R are identical to the shell chmod command’s force and recursive options, respectively. It accepts a combination of Directory Manager pathnames and file pathnames.
FILES
/etc/group
$OS_ROOTDIR/bin/oschmod
SEE ALSO
oschown(1), group(5), passwd(5)
ObjectStore 2.0 — Last change: October 1992