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 2 > Chapter 2 Configuring and Administering NFS Services

Configuring NFS Services

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

Before you configure your machine as an NFS server or client, you must perform the following tasks:

The rest of this section explains the procedures for performing these tasks.

Checking the Network Connections

  • Issue the /usr/sbin/ping(1M) command for each system with which your system will communicate using NFS.

    If the ping(1M) command fails, see the manuals listed below for troubleshooting procedures.

Before you configure NFS, you must have already installed and configured the network hardware and software on all the machines that will use NFS. For information on installing and configuring the network hardware and software, refer to the following manuals:

Installing and Administering LAN/9000 Software

Installing and Administering Token Ring/9000 Software

Installing and Administering FDDI/9000 Software

Setting User IDs and Group IDs (if neither NIS nor NIS+ is used)

  • Create one /etc/passwd file and one /etc/group file that contain all the users and groups on the network, and then copy these files to all the machines on the network.

    or

  • Edit the /etc/passwd and /etc/group files on each machine to ensure that the following conditions are true:

    • Each user has the same user ID on all machines where that user has an account.

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

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

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

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

If a user has one user ID on an NFS client and a different user ID on an NFS server, the server will not grant the user access to his or her files on the server, because it thinks the files belong to someone else.

If a user on one machine has the same user ID as a user on another machine, one user may gain access to the other user’s files.

For information on the /etc/passwd and /etc/group files, type man 4 passwd or man 4 group at the HP-UX prompt.

If you are using NIS or NIS+, the /etc/passwd and /etc/group files are managed by a master server, and all other machines on the network request user and group information from the servers. With NIS or NIS+, it is unnecessary to set user IDs and group IDs on each machine. For instructions on configuring NIS, see “Configuring and Administering an NIS Client”. For instructions on configuring NIS+, see Chapter 5 “Configuring and Administering NIS+”.

Ensuring that A User is Not a Member of Too Many Groups

  1. If you are not running NIS or NIS+, issue the following command for each user on your system:

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

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

    If you are using NIS to manage your group database, issue the following command for each user in your domain:

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

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

    If you are using NIS+ to manage your group database, issue the following command for each user in your domain:

    niscat -M group.org_dir | /usr/bin/grep -c username
  2. If any user is a member of more than 16 groups, remove the user from some of the groups. See “Modify an NIS Map” for instructions on modifying an NIS map. See “Modify an Entry in an NIS+ Table” for instructions on modifying an NIS+ table.

If a user is a member of too many groups, NFS returns an RPC authentication error when the user attempts access to files or directories using NFS.

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