This file is indexed.

/usr/share/sadms-2.0.15/conf/_smb.conf is in sadms 2.0.15.repack-0ubuntu2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
# smb.conf
# SAMBA CONFIG FILE
# SADMS
# 2007-06-21

[global]

# netbios name
	netbios name = %SERVER%

# server string is the equivalent of the NT Description field
	server string = Samba Server %SERVER%

# realm = Kerberos realm
	realm = %REALM%

# workgroup = NT-Domain-Name or Workgroup-Name
	workgroup = %DOMAIN%

# Security mode.
	security = ADS

# Use password server option only with security = server
	password server = *

# Password encryption
	encrypt passwords = yes

# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. 
	hosts allow = %HOSTALLOW% 127.
	hosts deny = 0.0.0.0/0.0.0.0

# Uncomment this if you want a guest account, you must add this to /etc/passwd
# otherwise the user "nobody" is used
	guest account = nobody

# this tells Samba to use a separate log file for each machine
# that connects
;	log file = /var/log/samba/%m.log;   
	log file = /var/log/samba/samba.log

# The following are needed to allow password changing from Windows to
# update the Linux system password also.
# noTE: Use these with 'encrypt passwords' and 'smb passwd file' above.
# noTE2: You do noT need these to allow workstations to change only
#        the encrypted SMB passwords. They allow the Unix password
#        to be kept in sync with the SMB password.
;	unix password sync = yes
;	passwd program = /usr/bin/passwd %u
;	passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*

# Unix users can map to different SMB User names
	username map = /etc/samba/user.map

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
;	include = /etc/samba/smb.conf.%m

# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
	socket options = TCP_noDELAY SO_RCVBUF=8192 SO_SNDBUF=8192

# All NetBIOS names must be resolved to IP Addresses
# 'Name Resolve Order' allows the named resolution mechanism to be specified
# the default order is "host lmhosts wins bcast". "host" means use the unix
# system gethostbyname() function call that will use either /etc/hosts OR
# DNS or NIS depending on the settings of /etc/host.config, /etc/nsswitch.conf
# and the /etc/resolv.conf file. "host" therefore is system configuration
# dependant. This parameter is most often of use to prevent DNS lookups
# in order to resolve NetBIOS names to IP Addresses. Use with care!
# The example below excludes use of name resolution for machines that are noT
# on the local network segment
# - OR - are not deliberately to be known via lmhosts or via WINS.
;	name resolve order = wins lmhosts bcast

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
;	wins support = yes

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
#	note: Samba can be either a WINS Server, or a WINS Client, but noT both
%USEWINS%	wins server = %WINSSERVER%

# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
	printcap name = /etc/printcap
	load printers = yes

# It should not be necessary to spell out the print system type unless
# yours is non-standard. Currently supported print systems include:
# bsd, sysv, plp, lprng, aix, hpux, qnx
;	printing = lprng

# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The built-in default for versions 1.9.17 is yes,
# this has been changed in version 1.9.18 to no.
	dns proxy = no 

# PAM-related
	obey pam restrictions = yes
	pam password change = yes

# Winbind separator
	winbind separator = %SEP%

# Winbind use default domain
# This parameter specifies whether the winbindd daemon should
# operate on users without domain component in their username. 
# Users without a domain component are treated as is part of 
# the winbindd server's own domain. While this does not benefit
# Windows users, it makes SSH, FTP and e-mail function in a way
# much closer to the way they would in a native unix system. 
# Default: winbind use default domain = no
	winbind use default domain = %USEDEFAULTDOMAIN% 

# RID to UID map
%USEIDMAPRID%	idmap backend = rid:"BUILTIN=1000-9999,%DOMAIN%=10000-60000"

%USEIDMAPRID2%	idmap domains = %DOMAIN%
%USEIDMAPRID2%	idmap config %DOMAIN%:backend = rid
%USEIDMAPRID2%	idmap config %DOMAIN%:range = 10000-60000
%USEIDMAPRID2%	idmap config BUILTIN:backend = rid
%USEIDMAPRID2%	idmap config BUILTIN:range = 1000-9999

# RID idmap does not work with trusted domains
%USEIDMAPRID%	allow trusted domains = no

# Domain user id range
	idmap uid = 1000-60000

# Domain group id range
	idmap gid = 1000-60000

# Allow enumeration of domain users and groups
	winbind enum users = yes
	winbind enum groups = yes

# Allow nested groups
;	winbind nested groups = yes

# Winbind templates
# This parameter is designed to control how Winbind retrieves 
# Name Service Information to construct a user's home directory
# and login shell. Currently the following settings are available: 
# - template - The default, using the parameters of template shell
# and template homedir)
# - sfu - When Samba is running in security = ads and your Active
# Directory Domain Controller does support the Microsoft "Services
# for Unix" (SFU) LDAP schema, winbind can retrieve the login shell
# and the home directory attributes directly from your Directory 
# Server. Note that retrieving UID and GID from your ADS-Server 
# requires to use idmap backend = idmap_ad as well.
;	winbind nss info = template

# When filling out the user information for a Windows NT user, the
# winbindd(8) daemon uses this  parameter  to  fill  in  the  home
# directory  for that user. If the string %D is present it is sub-
# stituted with the user’s Windows NT domain name. If  the  string
# %U  is present it is substituted with the user’s Windows NT user
# name.
	template homedir = /home/%U

# When filling out the user information for a Windows NT user, the
# winbindd(8)  daemon  uses  this  parameter  to fill in the login
# shell for that user. 
	template shell = /bin/bash

# This option defines the default primary group for each user cre-
# ated  by winbindd(8)’s local account management functions (simi-
# lar to the ’add user script’).   
;	template primary group = "%DOMAIN%%SEP%%USERS%"
;	template primary group = "%USERS%"

# Services
	default service = homes
	preload = global homes printers

# Default share values
	valid users = @"%DOMAIN%%SEP%%USERS%"
	admin users = "%DOMAIN%%SEP%%ADMIN%"

#==================