195267Ssheldonh# $Id: dot.nsmbrc,v 1.7 2002/04/10 04:21:11 bp Exp $ 2132289Sbp# $FreeBSD$ 387866Ssheldonh# 487866Ssheldonh# Example for .nsmbrc file 587866Ssheldonh# 687866Ssheldonh# smbfs lookups configuration files in next order: 787866Ssheldonh# 1. ~/.nsmbrc 8132289Sbp# 2. /etc/nsmb.conf - if this file found it will 987866Ssheldonh# override values with same keys from user files. 1087866Ssheldonh# 1187866Ssheldonh# 1287866Ssheldonh# This file consist from a set of sections. Each section started by section name 1387866Ssheldonh# surrounded with square brackets: 1487866Ssheldonh# [section_name] 1587866Ssheldonh# 1687866Ssheldonh# End of the section marked either by new section or by the end of file. 1787866Ssheldonh# Each section can contain zero or more parameters: 1887866Ssheldonh# [section_name] 1987866Ssheldonh# key=value 2087866Ssheldonh# 2187866Ssheldonh# where 'key' represents parameter name and 'value' a value assigned 2287866Ssheldonh# to this parameter. 2387866Ssheldonh# 2495267Ssheldonh# SMB library uses next forms of section names (please note that the section 2595267Ssheldonh# name should be in upper case when it refers to server, user or share): 2687866Ssheldonh# A) [default] 2787866Ssheldonh# B) [SERVER] 2887866Ssheldonh# C) [SERVER:USER] 2987866Ssheldonh# D) [SERVER:USER:SHARE] 3087866Ssheldonh# 3187866Ssheldonh# Here is the map of possible keywords: 3287866Ssheldonh# 3387866Ssheldonh# keyword/section A B C D Comment 3487866Ssheldonh# 3587866Ssheldonh# addr - + - - IP or IPX address of SMB server 3695267Ssheldonh# charsets + + + + local:remote charset pair 3787866Ssheldonh# nbns + + - - address of NetBIOS name server (WINS) 3887866Ssheldonh# nbscope + + - - NetBIOS scope 3987866Ssheldonh# nbtimeout + + - - timeout for NetBIOS name servers 4087866Ssheldonh# password - - + + a plain text password used to access to the given share 4187866Ssheldonh# retry_count + + - - number of retries before connection marked as broken 4287866Ssheldonh# timeout + + - - SMB request timeout 4387866Ssheldonh# workgroup + + + + name of workgroup 4487866Ssheldonh# 4587866Ssheldonh 4687866Ssheldonh# A simple configuration example: 4787866Ssheldonh 4887866Ssheldonh# First, define a workgroup. 4987866Ssheldonh[default] 5087866Ssheldonhworkgroup=SALES 5187866Ssheldonh 5287866Ssheldonh# The 'FSERVER' is an NT server. 5387866Ssheldonh[FSERVER] 5487866Ssheldonhcharsets=koi8-r:cp866 5587866Ssheldonhaddr=fserv.coolcorp.com 5687866Ssheldonh 5787866Ssheldonh[FSERVER:JOE] 5887866Ssheldonh# use persistent password cache for user 'joe' 5987866Ssheldonhpassword=$$1767877DF 60