nsmb.conf revision 89001
187874Ssheldonh# $FreeBSD: head/etc/nsmb.conf 89001 2002-01-07 08:41:55Z sheldonh $ 287874Ssheldonh# 387874Ssheldonh# smbfs lookups configuration files in next order: 487874Ssheldonh# 1. ~/.nsmbrc 588287Ssheldonh# 2. /etc/nsmb.conf - if this file found it will 687874Ssheldonh# override values with same keys from user files. 787874Ssheldonh# 887874Ssheldonh# 987874Ssheldonh# This file consist from a set of sections. Each section started by section name 1087874Ssheldonh# surrounded with square brackets: 1187874Ssheldonh# [section_name] 1287874Ssheldonh# 1387874Ssheldonh# End of the section marked either by new section or by the end of file. 1487874Ssheldonh# Each section can contain zero or more parameters: 1587874Ssheldonh# [section_name] 1687874Ssheldonh# key=value 1787874Ssheldonh# 1887874Ssheldonh# where 'key' represents parameter name and 'value' a value assigned 1987874Ssheldonh# to this parameter. 2087874Ssheldonh# 2187874Ssheldonh# SMB library uses next forms of section names: 2287874Ssheldonh# A) [default] 2387874Ssheldonh# B) [SERVER] 2487874Ssheldonh# C) [SERVER:USER] 2587874Ssheldonh# D) [SERVER:USER:SHARE] 2687874Ssheldonh# 2787874Ssheldonh# Here is the map of possible keywords: 2887874Ssheldonh# 2987874Ssheldonh# keyword/section A B C D Comment 3087874Ssheldonh# 3187874Ssheldonh# addr - + - - IP or IPX address of SMB server 3287874Ssheldonh# charsets - + + + local:remote charset pair 3387874Ssheldonh# nbns + + - - address of NetBIOS name server (WINS) 3487874Ssheldonh# nbscope + + - - NetBIOS scope 3587874Ssheldonh# nbtimeout + + - - timeout for NetBIOS name servers 3687874Ssheldonh# password - - + + a plain text password used to access to the given share 3787874Ssheldonh# retry_count + + - - number of retries before connection marked as broken 3887874Ssheldonh# timeout + + - - SMB request timeout 3987874Ssheldonh# workgroup + + + + name of workgroup 4087874Ssheldonh# 4187874Ssheldonh 4287874Ssheldonh# A simple configuration example: 4387874Ssheldonh 4487874Ssheldonh# First, define a workgroup. 4587874Ssheldonh#[default] 4687874Ssheldonh#workgroup=SALES 4787874Ssheldonh 4887874Ssheldonh# The 'FSERVER' is an NT server. 4987874Ssheldonh#[FSERVER] 5087874Ssheldonh#charsets=koi8-r:cp866 5187874Ssheldonh#addr=fserv.coolcorp.com 5287874Ssheldonh 5389001Ssheldonh#[FSERVER:JOE] 5487874Ssheldonh# use persistent password cache for user 'joe' 5587874Ssheldonh#password=$$1767877DF 56