1*86d7f5d3SJohn Marino# $Id: dot.nsmbrc,v 1.7 2002/04/10 04:21:11 bp Exp $ 2*86d7f5d3SJohn Marino# 3*86d7f5d3SJohn Marino# Example for .nsmbrc file 4*86d7f5d3SJohn Marino# 5*86d7f5d3SJohn Marino# smbfs lookups configuration files in next order: 6*86d7f5d3SJohn Marino# 1. ~/.nsmbrc 7*86d7f5d3SJohn Marino# 2. /usr/local/etc/nsmb.conf - if this file found it will 8*86d7f5d3SJohn Marino# override values with same keys from user files. 9*86d7f5d3SJohn Marino# 10*86d7f5d3SJohn Marino# 11*86d7f5d3SJohn Marino# This file consist from a set of sections. Each section started by section name 12*86d7f5d3SJohn Marino# surrounded with square brackets: 13*86d7f5d3SJohn Marino# [section_name] 14*86d7f5d3SJohn Marino# 15*86d7f5d3SJohn Marino# End of the section marked either by new section or by the end of file. 16*86d7f5d3SJohn Marino# Each section can contain zero or more parameters: 17*86d7f5d3SJohn Marino# [section_name] 18*86d7f5d3SJohn Marino# key=value 19*86d7f5d3SJohn Marino# 20*86d7f5d3SJohn Marino# where 'key' represents parameter name and 'value' a value assigned 21*86d7f5d3SJohn Marino# to this parameter. 22*86d7f5d3SJohn Marino# 23*86d7f5d3SJohn Marino# SMB library uses next forms of section names (please note that the section 24*86d7f5d3SJohn Marino# name should be in upper case when it refers to server, user or share): 25*86d7f5d3SJohn Marino# A) [default] 26*86d7f5d3SJohn Marino# B) [SERVER] 27*86d7f5d3SJohn Marino# C) [SERVER:USER] 28*86d7f5d3SJohn Marino# D) [SERVER:USER:SHARE] 29*86d7f5d3SJohn Marino# 30*86d7f5d3SJohn Marino# Here is the map of possible keywords: 31*86d7f5d3SJohn Marino# 32*86d7f5d3SJohn Marino# keyword/section A B C D Comment 33*86d7f5d3SJohn Marino# 34*86d7f5d3SJohn Marino# addr - + - - IP or IPX address of SMB server 35*86d7f5d3SJohn Marino# charsets + + + + local:remote charset pair 36*86d7f5d3SJohn Marino# nbns + + - - address of NetBIOS name server (WINS) 37*86d7f5d3SJohn Marino# nbscope + + - - NetBIOS scope 38*86d7f5d3SJohn Marino# nbtimeout + + - - timeout for NetBIOS name servers 39*86d7f5d3SJohn Marino# password - - + + a plain text password used to access to the given share 40*86d7f5d3SJohn Marino# retry_count + + - - number of retries before connection marked as broken 41*86d7f5d3SJohn Marino# timeout + + - - SMB request timeout 42*86d7f5d3SJohn Marino# workgroup + + + + name of workgroup 43*86d7f5d3SJohn Marino# 44*86d7f5d3SJohn Marino 45*86d7f5d3SJohn Marino# A simple configuration example: 46*86d7f5d3SJohn Marino 47*86d7f5d3SJohn Marino# First, define a workgroup. 48*86d7f5d3SJohn Marino[default] 49*86d7f5d3SJohn Marinoworkgroup=SALES 50*86d7f5d3SJohn Marino 51*86d7f5d3SJohn Marino# The 'FSERVER' is an NT server. 52*86d7f5d3SJohn Marino[FSERVER] 53*86d7f5d3SJohn Marinocharsets=koi8-r:cp866 54*86d7f5d3SJohn Marinoaddr=fserv.coolcorp.com 55*86d7f5d3SJohn Marino 56*86d7f5d3SJohn Marino[FSERVER:JOE] 57*86d7f5d3SJohn Marino# use persistent password cache for user 'joe' 58*86d7f5d3SJohn Marinopassword=$$1767877DF 59