*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->HP-UX 11i man pages -> doschmod (1)              
Title
Content
Arch
Section
 

Contents


 doschmod(1)                                                     doschmod(1)
                               TO BE OBSOLETED



 NAME    [Toc]    [Back]
      doschmod - change attributes of a DOS file

 SYNOPSIS    [Toc]    [Back]
      doschmod [-mu] mode device:file ...

 DESCRIPTION    [Toc]    [Back]
      The doschmod command is targeted for removal from HP-UX; see the
      WARNINGS below.

      doschmod is the DOS counterpart of chmod (see chmod(1)).

    Options    [Toc]    [Back]
      doschmod recognizes one option:

           -m     If an ordinary file with the same name as volume label
                  exists, operation will be performed on the file instead of
                  volume label.

           -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.

      Metacharacters *, ?, and [ ... ] can be used when specifying DOS file
      names.  These must be quoted when specifying a DOS file name, because
      file name expansion must be performed by the DOS utilities, not by the
      shell.  DOS utilities expand file names as described in regexp(5)
      under PATTERN MATCHING NOTATION.

      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.

 WARNINGS    [Toc]    [Back]
      Use of doschmod is discouraged because it is targeted for removal from
      HP-UX.




 Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003






 doschmod(1)                                                     doschmod(1)
                               TO BE OBSOLETED



      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    [Toc]    [Back]
      Mark file /dev/rfd9122:memo.txt as a hidden file:

           doschmod 002 /dev/rfd9122:memo.txt

      Mark file driveC:autoexec.bat read-only:

           doschmod 001 driveC:autoexec.bat

 SEE ALSO    [Toc]    [Back]
      chmod(1), dos2ux(1), doscp(1), dosdf(1), dosls(1), dosmkdir(1),
      dosrm(1), chmod(2), dosif(4).


 Hewlett-Packard Company            - 2 -   HP-UX 11i Version 2: August 2003
[ Back ]
      
      
 Similar pages
Name OS Title
rcs FreeBSD change RCS file attributes
rcs OpenBSD change RCS file attributes
rcs HP-UX change RCS file attributes
rcs IRIX change RCS file attributes
rcs Tru64 change RCS file attributes
chattr Linux change file attributes on a Linux second extended file system
chatr HP-UX change program's internal attributes
passwd HP-UX change login password and associated attributes
chatr_pa HP-UX change program's internal attributes
configwind IRIX change window configuration or attributes
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service