mcprot — Set database protection code
mcprot
[-u pcode] [-g pcode] [-o pcode] dbname...
mcprot sets the protection code of an existing MemCom database, returning the value 0 if the operation succeeds or 1 if not.[5]By default and if no otherwise specified while creating a database, MemCom creates a database with read and write protection for the user (owner) and read protection for the group. The directory protection codes of the directories above the existing MemCom database are not modified!
-u
pcode
User, i.e file owner protection code.
is a
concatenated string of characters: pcode
r
means
read access. w
means write access.
rw
means read and write access.
n
means no access. n
suppresses r
and w
.
Default protection code is
, i.e the user
(owner) has read and write rights.rw
-g
pcode
Group protection code. Concatenated string of
characters: r
means read access.
w
means write access. n
means no access. n
suppresses
r
and w
. Default
protection code is
, i.e the group
has read rights.r
-o
pcode
Others protection code. Concatenated string of
characters: r
means read access.
w
means write access. n
means no access. n
suppresses
r
and w
. Default
protection code is
, i.e others have
no access rights.n
dbname
Database name(s).