Name
niload
Synopsis
niload [-v] [-Ttimeout] [(-d|-m)] [(-p|-Ppassword)] [-uuser] {-rdirectory|format} [-t]domain
Reads the Unix flat file format from standard input and loads it into the NetInfo database.
Options
-
-v Select verbose mode.
-
-Ttimeout Specify a timeout in seconds.
-
-d Specify that if a duplicate entry already exists, NetInfo deletes that entry before adding the new one. This can cause you to lose data if NetInfo is tracking information that isn’t represented in the flat file. For example, if you dump the
/usersdirectory to a flatpasswdfile format and load it back in withniload-d, you will lose thepicture,hint, andsharedDirproperties for every user on your system because thepasswdfile doesn’t have a field for those properties. Most of the time, the-moption is what you want.-
-m Specify that if a duplicate entry already exists,
niloadwill merge the changes. So, if you dump the/usersdirectory to a flatpasswdfile format, change a user’s shell, and load that file back in withniload, NetInfo will keep the old shell. If you use the-moption, NetInfo will accept the new shell without the destructive side effects of the-doption.-
-p Prompt for a password. You can use this instead of prefixing the command with
sudo.-
-Ppassword Use the specified password.
Tip
If your shell history file is enabled, the -P option presents a security risk, since the password will be stored, along with the history of other shell commands. It is best to avoid using this option. ...
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.
Read now
Unlock full access