Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ bifchmod(1) — HP-UX 6.20

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

bif(4)

chmod(1)

chmod(2)

BIFCHMOD(1)  —  HP-UX

Series 300 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 may 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 ]

The who part is a combination of the letters u (for user’s permissions), g (group) and o (other).  The letter a stands for ugo, which is the default if who is omitted. 

Op can be + to add permission to the file’s mode, − to take away permission, or = to assign permission absolutely (all other bits will be 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); u, g or o indicate that permission is to be taken from the current mode.  Omitting permission is only useful with = to take away all permissions. 

Multiple symbolic modes separated by commas may be given.  Operations are performed in the order specified.  The letter s is only useful with u or g; t only works with u. 

EXAMPLES

The first example denies write permission to others, and the second makes a file executable (using symbolic mode):

bifchmod o−w file

bifchmod +x file

The next example below assigns read and execute permission to everybody, and sets the set-user-id bit.  The second assigns read and write permission to the file owner, and read permission to everybody else (using absolute mode):

bifchmod 4555 file

bifchmod 644 file

The following two examples perform the same function, namely to 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

bifchmod 755 /dev/rdsk/1s0:/etc/script

AUTHOR

Bifchmod was developed by HP. 

SEE ALSO

bif(4), chmod(1), chmod(2). 

Hewlett-Packard Company  —  May 11, 2021

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026