TCP/IP and Data Communications Administration Guide

SNC Script

The software distributes access to applications and other network services when a machine starts up or when a new user logs on. This interprets the directives in the store\login.snc file. %SNDRIVE% expands to /opt/SUNWpcnet/1.5/site/pcnfspro, the site SNC script directory for the Windows client. This script is not accessible to users because it is protected by UNIX permissions.

The directory /opt/SUNWpcnet/1.5/site/pcnfspro contains the default client scripts (SNC scripts) used at boot, login and logout time to control resources on the machines. The directories are mounted temporarily and then dismounted after the scripts are run. On the Windows client, SNC commands are responsible for establishing users' unique relationships to the network.

The Windows client's Configuration program processes the boot script (by default named boot.snc) in the SNC script directory /opt/SUNWpcnet/1.5/site/pcnfspro. The names of the script and the SNC script directory can be different for each network.

The Windows client's Configuration program is a comprehensive graphical tool used to view and change a wide variety of configuration parameters. The program enables you to change and customize any Windows client's default configuration, and to save the customized configuration. Among the parameters that you control by way of the Configuration program are TCP/IP, the Local Area Network (LAN) user name, NFS, the printer client, NetBIOS, and SNMP. You can also standardize and control the level of configuration that the Windows client's Configuration program makes available to users at your site. See the Configuration program's on-line help for details about using the program.

The site SNC script directory is expanded when you add an INCLUDE directive for a new group login.snc script. It is also expanded when you add an INCLUDE directive in the store\logout.snc file.

The script directory is used to create a directory with the UNIX login name for each user who has an individualized view of applications on the network. Then it is used to create and copy the user-specific login.snc and logout.snc scripts into each directory. The commands are:

cd/opt/SUNWpcnet/1.5/site/pcnfspro

mkdir user1user2 user3 user4 user5user6user7

In this example, all users except user8, user9, user10, and user11 use applications that they either do not share with other users or that they share with some, but not all users.

Three default SNC scripts are provided for each type of client in the SNC script directory /opt/SUNWpcnet/1.5/site/pcnfspro. They are:

The default site logout.snc script cleans up after the site login.snc script. You can copy the site logout.snc script, rename it, and modify it to correspond to your login scripts. You should name all logout scripts logout.snc to parallel the login scripts. Place the logout scripts in user and group-specific directories you create under the SNC script directory /opt/SUNWpcnet/1.5/site/pcnfspro.