Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
System Administration Commandsfncheck(1M)


NAME

 fncheck - check for consistency between FNS data and NIS+ data

SYNOPSIS

 fncheck [-r] [-s] [-u] [-t type] [domain_name]

DESCRIPTION

 

fncheck is used for checking for inconsistencies between FNS username or hostname contexts and the contents of the corresponding NIS+ passwd.org_dir or hosts.org_dir tables, respectively, in the NIS+ domain domain_name. If domain_name is omitted, the domain name of the current machine is used. By default (in the absense of the -r and -s options), the following inconsistencies are displayed:

  • items that appear only in the FNS context but do not appear in the NIS+ table,
  • items that appear only in the NIS+ table but do not appear in the FNS context.

OPTIONS

 
-r
Display only items that appear in the FNS context but do not appear in the corresponding NIS+ table.
-s
Display items that appear in the NIS+ table but do not appear in the corresponding FNS context.
-u
Update the FNS context based on information in the corresponding NIS+ table. If the -r option is used, items that appear only in the FNS context are removed from the FNS context. If the -s option is used, items that appear only in the NIS+ table are added to the FNS context. If neither -r or -s are specified, items are added and removed from the FNS context to make it consistent with the corresponding NIS+ table.
-t type
Specify the type of context to check. type can be either hostname or username. If this option is omitted, both hostname and username contexts are checked. If type is hostname, the FNS hostname context is checked against the NIS+ hosts.org_dir table. If type is username, the FNS username context is checked against the NIS+ passwd.org_dir table.

USAGE

 

Although fncheck can be used to add users and hosts to the username and hostname contexts as new users and hosts are added to NIS+, that is not its intended purpose. fncheck is an expensive operation because it makes complete comparisons of the NIS+ table and the corresponding FNS context. When a user or host is added or removed from NIS+ using admintool (see admintool(1M)), it automatically updates the appropriate FNS contexts.

ATTRIBUTES

 

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
AvailabilitySUNWfns

SEE ALSO

 

admintool(1M), fncreate(1M), fndestroy(1M), nis(1), attributes(5), fns( 5), fns_policies(5)


SunOS 5.9Go To TopLast Changed 4 Nov 1994

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.