aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/smbfs/examples/dot.nsmbrc
blob: b630fa8bda407149ed76f6d1f34c52fa26782d1a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# $Id: dot.nsmbrc,v 1.6 2000/07/16 01:52:06 bp Exp $
#
# Example for .nsmbrc file
#
# smbfs lookups configuration files in next order:
#	1. ~/.nsmbrc
#	2. /usr/local/etc/nsmb.conf - if this file found it will
#	   override values with same keys from user files.
#
#
# This file consist from a set of sections. Each section started by section name
# surrounded with square brackets:
# [section_name]
#
# End of the section marked either by new section or by the end of file.
# Each section can contain zero or more parameters:
# [section_name]
# key=value
#
# where 'key' represents parameter name and 'value' a value assigned
# to this parameter.
#
# SMB library uses next forms of section names:
# A) [default]
# B) [SERVER]
# C) [SERVER:USER]
# D) [SERVER:USER:SHARE]
#
# Here is the map of possible keywords:
#
# keyword/section	A  B  C  D	Comment
#
# addr			-  +  -  -	IP or IPX address of SMB server
# charsets		-  +  +  +	local:remote charset pair
# nbns			+  +  -	 -	address of NetBIOS name server (WINS)
# nbscope		+  +  -	 -	NetBIOS scope
# nbtimeout		+  +  -	 -	timeout for NetBIOS name servers
# password		-  -  +	 +	a plain text password used to access to the given share
# retry_count		+  +  -	 -	number of retries before connection marked as broken
# timeout		+  +  -	 -	SMB request timeout
# workgroup		+  +  +  +	name of workgroup
#

# A simple configuration example:

# First, define a workgroup.
[default]
workgroup=SALES

# The 'FSERVER' is an NT server.
[FSERVER]
charsets=koi8-r:cp866
addr=fserv.coolcorp.com

[FSERVER:JOE]
# use persistent password cache for user 'joe'
password=$$1767877DF