Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ doschmod(1) — HP-UX 8.05

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

chmod(1)

dos2ux(1)

doscp(1)

dosdf(1)

dosls(1)

dosmkdir(1)

dosrm(1)

chmod(2)

dosif(4)

doschmod(1)

NAME

doschmod − change attributes of a DOS file

SYNOPSIS

doschmod [−u] mode device :file...

DESCRIPTION

doschmod is the DOS counterpart of chmod(1).

There is one option:

−u Disable argument case conversion.  In the absence of this option, all DOS file names are converted to uppercase. 

A DOS file name is recognized by the presence of an embedded colon (:) delimiter; see dosif(4) for DOS file naming conventions. 

The attributes of each named file are changed according to mode, which is an octal number in the range 000 to 0377. mode is constructed from the logical OR of the following modes:

200 Reserved.  Do not use. 

100 Reserved.  Do not use. 

040 Archive.  Set whenever the file has been written to and closed. 

020 Directory.  Do not modify. 

010 Volume Label.  Do not modify. 

004 System file.  Marks files that are part of the DOS operating system. 

002 Hidden file.  Marks files that do not appear in a DOS directory listing using the DOS DIR command. 

001 Read-Only file.  Marks files as read-only. 

WARNING

Specifying inappropriate mode values can make files and/or directories inaccessible, and in certain cases can damage the file system.  To prevent such problems, do not change the mode of directories and volume labels. 

Normal users should have no need to use mode bits other than 001, 002, and 040. 

EXAMPLES

The following marks file /dev/rfd9122:memo.txt as a hidden file:

doschmod 002 /dev/rfd9122:memo.txt

The following marks file driveC:autoexec.bat read-only:

doschmod 001 driveC:autoexec.bat

SEE ALSO

chmod(1), dos2ux(1), doscp(1), dosdf(1), dosls(1), dosmkdir(1), dosrm(1), chmod(2), dosif(4). 

Hewlett-Packard Company  —  HP-UX Release 8.05: June 1991

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