Valid in the native UNIX environment
The chfile and editfile commands change the settings of one or more UNIX files.
Note: This command also exists in the AC environment but operates differently.
This command has the following format:
{{chfile|cf}|{editfile|ef}} fileName \
[owner(userName)] \ [group(groupName)] \ [mode( \
[fowner(string)] \ [fgroup(string)] \ [fother(string)] \
)]
Specifies the name of the file whose settings are to be changed. Enter at least one UNIX file name. When changing more than one file, enclose the list of file names in parentheses and separate the file names with a space or a comma.
Changes the group to which the file belongs. Specify a valid group name.
Updates the access modes of the file.
Specifies the access modes for the owner of the file. Use the letters r, w, and x in string to assign read, write, and execute permissions, respectively. Use the letter s to make a file setuid.
Specify a plus sign (+) at the beginning of string to add permissions to the existing permissions. Specify a minus sign (‑) at the beginning of string to remove the permissions. If you do not specify a prefix, the previous permissions are reset to string.
Specifies the access modes for the file's group. Use the letters r, w, and x in string to assign read, write, and execute permissions, respectively. Use the letter s to make a file setgid.
Specify a plus sign (+) at the beginning of string to add permissions to the existing permissions. Specify a minus sign (‑) at the beginning of string to remove the permissions. If you do not specify a prefix, the previous permissions are reset to string.
Specifies the access modes that apply to other accessors. Use the letters r, w, and x in string to assign read, write, and execute permissions, respectively. Specify a plus sign (+) at the beginning of string to add permissions to the existing permissions. Specify a minus sign (‑) at the beginning of string to remove the permissions. If no prefix is specified, the previous permissions are reset to string.
Changes the owner of the file. Specify the user name of a valid UNIX user.
Copyright © 2013 CA Technologies.
All rights reserved.
|
|