The following Figure shows a profile in the AliasDB and NETUsers
files. Both the client and server are HP-UX systems.
Note that the NETUtil commands have varying user restrictions. Refer
to the chapter "NETUtil Reference" for complete information.
Figure 2-1 Sample Profiles in AliasDB and NETUsers Files
To create the sample AliasDB file on the client and add the
information shown, you would do the following:
Invoke NETUtil on the client.
Type ADD ALIAS at the NETUtil prompt. Then reply
to the prompts.
Alias Name: InventoryDB
Database Server Type: ALLBASE/SQL
DBEnvironment Name on Server: /mnt/mfg/inventorydb
Server Node Name: serversystem
Machine Type: hp9000 s800
Datacomm Type: arpa
Profile added.
netutil=>
|
The ADD ALIAS command creates the AliasDB file and adds your alias profile
to it.
Type SHOW ALIAS to check the alias profile in
the AliasDB file:
Alias Name: InventoryDB
Alias Name: InventoryDB
Database Server Type: ALLBASE/SQL
DBEnvironment Name on Server: /mnt/mfg/inventorydb
Server Node Name: serversystem
Machine Type: HP9000 S800
Datacomm Type: ARPA
|
Similarly, to create the above NETUsers file on the server and
add the information shown in Figure 2-1 “Sample Profiles in AliasDB and NETUsers Files”
, you would do the following:
Invoke NETUtil on the server.
Type ADD USER at the NETUtil prompt. Then reply to the prompts with the necessary data for your user profile:
Client Node Name: clientsystem
Client Login Name: glen
Server Login Name: glen
Profile added.
netutil=>
|
The ADD USER command creates the NETUsers file (if necessary) and adds a user profile to it.
Type SHOW USER to check the user profile in the NETUsers file:
Client Node Name: clientsystem
Client Login Name: glen
Client Node Name: clientsystem
Client Login Name: glen
Server Login Name: glen
netutil=>
|
Add the server login name to the /etc/passwd file on the server:
$ vi /etc/passwd
root:SuIeof1mj31A4:0:1:Root at horse:/:/bin/sh
bicca:25Fnph4JsBXng:5:1:Leigh Bicca 49u,77033:/mnt/admin/bicca:/bin/csh
.
.
.
glen:*:100:10:/mnt/mfg:/bin/csh
.
.
|
Remember to put an asterisk (*) in the password field so that another user named glen cannot use the remote login (rlogin) to access files on the server.