Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
NFS Services Administrator's Guide: HP-UX 11i version 3 > Chapter 2 Configuring and Administering NFS Services

Prerequisites

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

Before you configure your system as an NFS server or as an NFS client, perform the following prerequisite checks:

  • Verify network connectivity

  • Verify user IDs and group IDs setup

  • Verify group restrictions

Verifying Network Connectivity

Before you configure NFS, you must have already installed and configured the network hardware and software on all the systems that use NFS. For information on installing and configuring the network hardware and software, see the following documents:

  • HP-UX LAN Administrator’s Guide (B2355-90796)

  • Ethernet Configuration and Verification (5991-5954)

To check the network connections between the server and clients, use the /usr/sbin/ping command to verify network connectivity between your proposed NFS client and server systems.

Verifying User IDs and Group IDs Setup

When users request NFS access to remote files, their user IDs and group IDs are used to check file ownership and permissions.

NOTE: NFSv4 uses string identifiers that map to user IDs and group IDs in the standard integer format. For more information on string identifiers supported on NFSv4, see “New Features in NFS”.

Consider the following points when you set user IDs and group IDs:

  • Each user must have the same user ID on all systems where that user has an account.

  • Each group has the same group ID on all systems where that group exists.

  • No two users on the network have the same user ID.

  • No two groups on the network have the same group ID.

You can set user and group IDs in the following methods:

  • Using the HP-UX System Files (/etc/passwd and /etc/group)

  • Using NIS

  • Using LDAP

Using the HP-UX System Files

If you are using the HP-UX system files, add the users and groups to the /etc/passwd and /etc/group files, respectively. Copy these files to all the systems on the network.

For more information on the /etc/passwd and /etc/group files, see passwd(4) and group(4).

Using NIS

If you are using NIS, all systems on the network request user and group information from the NIS maps on the NIS server. For more information on configuring NIS, see NIS Administrator's Guide (5991-7656).

Using LDAP

If you are using LDAP, all systems on the network request user and group information from the LDAP directory server. For more information on configuring LDAP, see the LDAP-UX Client Services B.04.00 Administrator’s Guide(J4269-90064).

Verifying Group Restrictions

HP-UX supports 20 group entries per user, but the maximum number of group entries supported by RPC is 16. If a user is a member of more than 16 groups, NFS truncates the number of entries to 16 when the user attempts access to files or directories. Use the groups command to find the group membership of a user. For more information on groups, see groups(1). To ensure that a user is not a member of more than 16 groups, use the following procedures depending on the user and group configuration method you use:

  • Using the HP-UX System Files

  • Using NIS

  • Using LDAP

Using the HP-UX System Files

If you are using HP-UX system files to manage your group database, follow these steps:

  1. To identify the number of groups that the user belongs to, enter the following command for each user on the system:

    /usr/bin/grep -x -c username /etc/group

    This command returns the number of occurrences of username in the /etc/group file.

  2. To remove a user from one or more groups, delete the user from the group entries in the /etc/group file.

Using NIS

If you are using NIS to manage your group database, follow these steps:

  1. To identify the number of groups that the user belongs to, enter the following command :

    /usr/bin/ypcat -k group | /usr/bin/grep -c username

    This command returns the number of occurrences of username in the NIS group map.

  2. To remove the user from one or more groups in the NIS map, follow the instructions described in the NIS Administrator’s Guide (5991-7656).

Using LDAP

For more information on managing user profiles using LDAP, see the LDAP-UX Client Services B.04.00 Administrator’s Guide (J4269-90064).

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2007 Hewlett-Packard Development Company, L.P.