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 Selects verbose mode.
-
-Ttimeout Specifies a timeout in seconds.
-
-d Specifies 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 does not have a field for those properties. Most of the time, the-moption is what you want.-
-m Specifies 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 Prompts for a password. You can use this instead of prefixing the command with
sudo.-
-Ppassword Uses the specified password.
Warning
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 ...