Skip to Content
Mac OS X in a Nutshell
book

Mac OS X in a Nutshell

by Jason McIntosh, Chuck Toporek, Chris Stone
January 2003
Intermediate to advanced
832 pages
32h 40m
English
O'Reilly Media, Inc.
Content preview from Mac OS X in a Nutshell

Name

nicl

Synopsis

nicl [options] datasource [command]

Modifies entries in the NetInfo database. You can manipulate directories and properties with nicl. The datasource may be the path to a NetInfo directory (such as /_ ) or the filesystem path of a NetInfo database (you must use the -raw option for this). Use -raw to work directly with the NetInfo database, such as /var/db/netinfo/local.nidb. This is useful in cases when the NetInfo daemon is down (such as when you boot into single-user mode).

Options

-c

Create a new data source.

-p

Prompt for a password. You can use this instead of prefixing the command with sudo.

-P password

Use the specified password.

-q

Be quiet.

-raw

Indicates that the datasource is a filesystem path to a NetInfo database.

-ro

Open datasource as read-only.

-t

Treats the domain as a tagged domain, which includes a machine name and a tagged NetInfo database.

-u user

Use the specified user’s identity when running the command. You’ll be prompted for a password.

-v

Be verbose.

-x500

Use X.500 names (see the nicl manpage for more details).

Commands

-append path key val ...

Appends a value to an existing property. The property is created if it does not already exist.

-copy path newparent

Copies the specified path to a new parent path.

-create path [ key [ val ... ] ]

Creates a NetInfo directory specified by path.

-delete path [ key [ val ... ] ]

Destroys the specified path and all its contents. If you specify a key and/or value, only the specified key is ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mac OS X Internals: A Systems Approach

Mac OS X Internals: A Systems Approach

Amit Singh
C++ In a Nutshell

C++ In a Nutshell

Ray Lischner
Linux Shell Scripting Cookbook - Third Edition

Linux Shell Scripting Cookbook - Third Edition

Clif Flynt, Sarath Lakshman, Shantanu Tushar
Optimized C++

Optimized C++

Kurt Guntheroth

Publisher Resources

ISBN: 0596003706Supplemental ContentCatalog PageErrata