Working with NIS
In networks where NIS and NFS are in use, it is common for
users’ home directories to be mounted over the
network by NFS. If a Samba server being used to authenticate user
logons is running on a system with NFS-mounted home directories
shared with a [homes] share, the additional
overhead can result in poor performance—about 30% of normal
Samba speed.
Samba has the ability to work with NIS and NIS+ to find the
server on which the home directories actually reside so that they can
be shared directly from that server. For this to work, the server
that holds the home directories must also have Samba running, with a
[homes] share of its own.
NIS Configuration Options
Table 8-8 introduces the NIS configuration options specifically for setting up users.
Table 8-8. NIS options
|
Option |
Parameters |
Function |
Default |
Scope |
|---|---|---|---|---|
|
|
Boolean |
If |
|
Global |
|
|
string (NIS map name) |
Sets the NIS map to use to look up a user’s home directory. |
None |
Global |
nis homedir, homedir map
The nis
homedir and
homedir
map options
are for Samba servers on network sites where Unix home directories
are provided using NFS, the automounter, and NIS.
The nis
homedir option
indicates that the home-directory server for the user needs to be
looked up in NIS. The homedir
map option tells Samba in which NIS map to look for the server that has the user’s home directory. The server needs to be a ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access