nss2svc, svc2nss - keep /etc/svc.conf in sync with
/usr/sbin/nss2svc [-I] [-N nsswitch.conf] [-S svc.conf]
/usr/sbin/svc2nss [-I] [-N nsswitch.conf] [-S svc.conf]
Do not save the previous copy of the target file as a
file. Override the default path of /etc/nsswitch.conf.
Override the default path of /etc/svc.conf.
The /usr/sbin/nss2svc utility migrates those portions of
the /etc/nsswitch.conf file which are compatible with the
/etc/svc.conf format into the latter file. By default (in
the absence of the -I option), it saves the previous contents
of the updated file in /etc/svc.conf.old.
The /usr/sbin/svc2nss utility converts entries from the
/etc/svc.conf file into entries for the /etc/nsswitch.conf
file, updating the latter file. By default (in the absence
of the -I option), it saves the previous contents of the
updated file in /etc/nsswitch.conf.old.
For either utility, the file paths can be changed by using
the -N and -S options.
Success. An error occurred.
The following error messages (or their localized equivalents)
may be issued to standard error by these utilities.
Shown in response to an invalid command line, to remind
the user of the proper options for the utility. The %s
will be replaced with the utility name. Shown when the
file from which entries are to be converted can not be
found or is not a regular file. The %s will be replaced
with the path name for the file. Shown when the file into
which the converted entries are to be placed exists and is
not a regular file. The %s will be replaced with the path
name for the file. Shown when the target file can not be
updated by the user. The %s will be replaced with the
The following message normally appears on standard output
at the end of successful use of either of these utilities.
Issued at the end of processing when the -I option was not
used, and the target file already exists.
Other error messages may be displayed from the ln or mv
The following example shows the typical usage from within
the nssetup utility. # /usr/sbin/nss2svc -I -N /etc/nsswitch.conf
-S /etc/svc.conf # The following example shows
testing to see what entries will be written by svc2nss. #
/usr/sbin/svc2nss -N test.out Saving previous ./test.out
in ./test.out.old # cat test.out aliases: files nis
auth_prpasswd: files nis ... services: files nis #
ENVIRONMENT VARIABLES [Toc] [Back]
The following environment variables affect the execution
of nss2svc: Provides a default value for the internationalization
variables that are unset or null. If LANG is
unset or null, the corresponding value from the default
locale is used. If any of the internationalization variables
contain an invalid setting, the utility behaves as
if none of the variables had been defined. If set to a
non-empty string value, overrides the values of all the
other internationalization variables. Determines the
locale for the format and contents of diagnostic messages
written to standard error. Determines the location of
message catalogues for the processing of LC_MESSAGES.
Path to the default nsswitch file. Path to the default
Files: nsswitch.conf(4), svc.conf(4)
[ Back ]