HP-UX Reference (11i v1 05/09) - 1M System Administration Commands A-M (vol 3)

m
mkfs_hfs(1M) mkfs_hfs(1M)
b Block special file
c Character special file
d Directory
l Symbolic link
L Hard link
The second character of a mode token is either
u or - to specify set-user-ID mode or not. The third charac-
ter of a mode token is either
g or - to specify the set-group-ID mode or not. The rest of a mode token is a
three-digit octal number giving the owner, group, and other read, write, and execute permissions (see
chmod(1)).
The user-ID and group-ID tokens define the owner of the file. These values can be specified numerically or
with symbolic names that appear in the current password and group databases.
Regular file. The initial contents field is the path name of an existing file in the current file system whose
contents and size are copied to the new file.
Block or character special file. The initial contents field is two numeric tokens that specify the major
and minor device numbers.
Directory file. The initial contents field is a list of file specifications for the entries in the directory. The
list is terminated with a
$ token. Directories can be nested. For each directory, the
mkfs command
automatically makes the
. and
.. entries.
Symbolic link. The initial contents field is a path name that is used as the path to which the symbolic link
should point.
Hard link. The initial contents field is a path name that is used as the name of a file within the new file
system to which the entry should be linked. The mode, user-ID and group-ID tokens of this entry are
ignored; they are taken from the target of the link. The target of the link must be listed before the entry
specifying the link. Hard links to directories are not permitted.
With the exception of the permissions field of the mode token (which is always an octal number), all
numeric fields can be specified in hexadecimal (using a leading
0x), octal (using a leading
0), or decimal.
Here is a sample prototype specification. The indentation clarifies the directory recursion.
/etc/BOOT
12288
d--555 bin bin
sbin d--755 bin bin
init ---555 bin bin /sbin/init
savecore ---555 bin bin /sbin/savecore
$
dev d--555 bin bin
b0 b--640 root sys 0 0x0e0000
c0 c--640 root sys 4 0x0e0000
$
etc d--755 bin bin
init l--777 bin bin /sbin/init
passwd ---444 bin bin /etc/passwd
group ---444 bin bin /etc/group
$
usr d--755 bin bin
bin d--755 bin bin
sh ---555 bin bin /usr/bin/sh
rsh L--555 bin bin /usr/bin/sh
su -u-555 root bin /usr/bin/su
mailq l--777 bin bin /usr/sbin/sendmail
$
sbin d--755 bin bin
sendmail -ug555 root mail /usr/sbin/sendmail
$
$
$
HP-UX 11i Version 1: September 2005 3 Hewlett-Packard Company Section 1M485