Sams Teach Yourself Samba in 24 Hours

ContentsIndex

Hour 7: File Sharing

Previous HourNext Hour

Sections in this Chapter:

 

Other Parameters

maxopenfiles

ole locking compatibility

nis homedir and homedir map

strip dot

The following parameters are all related to file sharing in some way, but don't fit neatly into any of the preceding sections.

maxopenfiles

This global parameter controls the maximum number of open files that one smbd file-serving process may have open for a client. As of Samba 2.0.0, the default value for this parameter is 10,000 files, although smbd sets it to a more sensible value if the OS does not support that many open files. So, under Linux, maxopenfiles gets set by default to about 246.

Prior to the aforementioned version of Samba, maxopenfiles was a compile-time parameter.

nis homedir and homedir map

These global parameters tell Samba to hand out the location of home directories using NIS. They are used in situations where the user's home directory is located on a remote server and would be accessed via NFS by the Samba server.

As long as the actual home directory servers are running Samba as well, a logon server can return the home share as being on a different server. It does this by consulting the NIS map specified in homedir map. This works only when there is a working NIS server and Samba is running as a logon server.

The default values for nis homedir and homedir map are false and auto.home respectively.

ole locking compatibility

This global parameter allows you to turn off OLE compatibility byte range lock manipulation that Samba provides. Some UNIX lock managers can crash or have other problems when Samba does ole locking compatibility, which is why you might want to switch it off.

The default value for this parameter is yes.

strip dot

This global parameter controls whether Samba strips trailing periods (dots) from UNIX filenames. Some CD-ROMs have filenames ending with a single dot.

The default value for this parameter is no.

Sams Teach Yourself Samba in 24 Hours

ContentsIndex

Hour 7: File Sharing

Previous HourNext Hour

Sections in this Chapter: