Previous Topic: authorize- Command—Remove Accessors' Authority to Access Windows ResourcesNext Topic: chgrp Command—Modify Windows Groups


chfile Command—Modify Windows File Settings

Valid in the native Windows environment

The chfile and editfile commands are identical. They modify one or more Windows files.

Note: This command also exists in the AC environment but operates differently.

This command has the following format for NTFS file systems:

{{chfile|cf}|{editfile|ef}} fileName \
[attrib(attributeValue)] \
[attrib(‑attributeValue)] \
[defaccess(accessValue)] \
[owner(userName|groupName)]

This command has the following format for FAT file systems:

{{chfile|cf}|{editfile|ef}} fileName \
[attrib([-]attributeValue)]
attrib([-]attributeValue)

Specifies a set of attributes that determine the character of the file. When a minus sign (-) precedes the argument value, this parameter removes the attribute.

defaccess(accessValue)

Specifies the access authority for the Native security built-in group Everyone. All the system users are members of the Everyone group. Providing access to the Everyone group covers all the potential anonymous users in addition to all authenticated users.

Note: Defaccess for an object defined in the CA ControlMinder environment has a different meaning; the default access authority is the authority granted to any accessor who is not in the resource's CA ControlMinder list who requests access to the resource. The default access also applies to users not defined in CA ControlMinder.

The defaccess parameter applies only to NTFS file systems.

owner(userName|groupName)

Assigns a user or group as the owner of the file record. The owner of the file record has unrestricted access to the file. The owner of the file may always update or delete the file record.

More information:

showfile Command—Display Native File Properties

Windows File Attributes