chfile Command Modify Windows File Settings
Valid in the native Windows environment
capamsc141
Valid in the native Windows environment
The chfile and editfile commands are identical. They modify one or more Windows files.
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 argumentvalue, 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.Default access for an object defined in thePAM Server Controlenvironment has a different meaning; the default access authority is the authority granted to any accessor who is not in the resource'sPAM Server Controllist who requests access to the resource. The default access also applies to users not defined inPAM Server Control.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.