Specifications
120 Chapter 8 Managing User and Group Accounts
Example
The following command sets the autohide key in the com.apple.dock domain to a
value of TRUE with always for management.
$ dscl -mcxset /LDAPv3/127.0.0.1/Users/sam com.apple.dock autohide always
-bool 1
The following command removes preference management for the autohide key in the
com.apple.dock domain for the current record:
$ dscl
> cd /LDAPv3/127.0.0.1/Users/sam
/LDAPv3/127.0.0.1/Users/sam > mcxset . com.apple.dock autohide none
The following command displays, in plist format, all keys for all application domains for
the current record:
$ dscl
> cd /LDAPv3/127.0.0.1/Users/sam
/LDAPv3/127.0.0.1/Users/sam > mcxread . -format plist = =
The following command changes the autohide key to TRUE, preserving the current
management setting:
$ dscl
> cd /LDAPv3/127.0.0.1/Users/sam
/LDAPv3/127.0.0.1/Users/sam > mcxedit . com.apple.dock autohide -boot 1
keyValue
(Optional) The new value to be used for a key. You can specify this parameter using
the same syntax as that of the
defaults command. For more information, see the
man page of the
defaults command.
When specifying plist or xml values, enclose the parameter in single quotes (for
example,
'(authenticate, eject)' and '<real>64.0</real>').
UPK
(Optional) The value for the Union Policy Key (UPK). If present, the UPK must be
specified as a dictionary. The valid keys for the dictionary include:
Â
mcx_input_key_names or input (single string or array of strings)
Â
mcx_output_key_names or output (single string)
Â
mcx_remove_duplicates (boolean)
Â
mcx_union_as_dictionary (boolean)
Â
mcx_replace (boolean)
If
mcx_input_key_names or mcx_output_key_name is omitted, the value of
keyName
is used instead.
keyPath
(Optional) The path to a sub-plist in an existing key value. For example, 'mount-
controls:dvd:1'
means the second element the array with the key 'dvd' the
key
'mount-controls.'
filePath
(Optional) The location of the output or input file.
-d The keys found in the import file from the record that should be deleted. This is
equivalent to calling
-mcxdelete for every key in the import file. The value of the
key in the import file is ignored.
Parameter Description