bifchmod(1) — Series 300/400 Only
NAME
bifchmod − change mode of a BIF file
SYNOPSIS
bifchmod mode device:file ...
DESCRIPTION
bifchmod is intended to mimic chmod(1).
A BIF file name is recognized by the embedded colon (:) delimiter (see bif(4) for BIF file naming conventions).
The permissions of each named file are changed according to mode, which can be absolute or symbolic. An absolute mode is an octal number constructed from the OR of the following modes:
4000 set user ID on execution
2000 set group ID on execution
1000 sticky bit, see chmod(2)
0400 read by owner
0200 write by owner
0100 execute (search in directory) by owner
0070 read, write, execute (search) by group
0007 read, write, execute (search) by others.
A symbolic mode has the form:
[who] op permission [op permission]
who is a combination of the letters u (for user’s permissions), g (group), and o (other). Specifying a is equivalent to ugo, which is the default if who is omitted.
op can be + to add permission to the file’s mode, − to delete permission, or = to assign permission absolutely (all other bits are reset).
permission is any combination of the letters r (read), w (write), x (execute), s (set owner or group ID) and t (save text − sticky bit); u, g, or o indicate that permission is to be taken from the current mode. Omitting permission is only useful with = to delete all permissions.
Multiple symbolic modes separated by commas can be given. Operations are performed in the order specified. The letter s is useful only with u or g; t works only with u.
EXAMPLES
Deny write permission to others:
bifchmod o−w file
Make a file executable (using symbolic mode):
bifchmod +x file
Assign read and execute permission to everybody, and set the set-user-id bit:
bifchmod 4555 file
Assign read and write permission to the file owner, and read permission to everybody else (using absolute mode):
bifchmod 644 file
Give read, write, and execute permission to the owner and read and execute permissions to everybody else for the BIF file /etc/script on /dev/rdsk/1s0:
bifchmod a=rx,u+w /dev/rdsk/1s0:/etc/script
or
bifchmod 755 /dev/rdsk/1s0:/etc/script
AUTHOR
bifchmod was developed by HP.
SEE ALSO
Hewlett-Packard Company — HP-UX Release 8.05: June 1991