Apple Xserve Up Mac OS X Server Specifications Page 122

  • Download
  • Add to my manuals
  • Print
  • Page
    / 329
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 121
122 Chapter 8 Managing User and Group Accounts
Examples
The following example displays the managed preferences for Sam and stores the
results in XML format in the samPrefs.out file:
$ mcxquery -o samPrefs.out -user sam
The following example displays the managed preferences for Jane, who is logged in
using the science workgroup from a computer that is a member of the lab1_12
computer group:
$ mcxquery -user jane -group science -computer lab1_12
The following example displays the managed preferences for Jane, who is logged in
using the science workgroup from the computer whose Ethernet MAC address is
11:22:33:44:55:66:
$ mcxquery -user jane -group science -computer 11:22:33:44:55:66
Importing Users and Groups
To import user and group accounts into a folder, use dsimport. The dsimport tool
permits logging at three levels with the -l switch. You can use the dsimport tool to
import records from a flexible text–delimited file.
For more information, see the dsimport man page. For a list of record types and
attributes, see Open Directory Administration. This guide also describes how to edit
permitted attributes for each record type for use in an LDAP folder.
The dsimport tool is located in /usr/bin/.
For information about the formats of the files you can import, see “Creating a
Character-Delimited User Import File” on page 123.
$ dsimport (-g|-s|-p)
filepath
DSNodePath
(O|M|I|A|N) -u
user
-p
password
[
options
]
groupName
(Optional) The short name of a workgroup. A value of = indicates the workgroup (if
any) chosen for the current login session.
computerName
(Optional) The short name of the computer group or the MAC address of a
computer. If you do not provide a value for this option or use the equal sign (
=), this
command uses the MAC address of the current computer.
Parameter Description
Parameter Description
-g|-s|-p Specify one of these to indicate the type of file you’re importing:
-g for a character-delimited file
-s for an XML file exported from Users & Groups in Mac OS X Server v10.1.x
-p for an XML file exported from AppleShare IP v6.x
filepath
The path of the file to import.
Page view 121
1 2 ... 117 118 119 120 121 122 123 124 125 126 127 ... 328 329

Comments to this Manuals

No comments