Skip to content

Instantly share code, notes, and snippets.

@skarllot
Created August 27, 2012 13:48
Show Gist options
  • Save skarllot/3488541 to your computer and use it in GitHub Desktop.
Save skarllot/3488541 to your computer and use it in GitHub Desktop.
Samba client
[logging]
default = FILE:/var/log/krb5libs.log
kdc = FILE:/var/log/krb5kdc.log
admin_server = FILE:/var/log/kadmind.log
[libdefaults]
default_realm = SKARLLOT.COM
dns_lookup_realm = true
dns_lookup_kdc = true
ticket_lifetime = 24h
renew_lifetime = 7d
forwardable = true
default_tgs_enctypes = arcfour-hmac-md5 des-cbc-crc des-cbc-md5 des3-hmac-sha1
default_tkt_enctypes = arcfour-hmac-md5 des-cbc-crc des-cbc-md5 des3-hmac-sha1
clockskew = 300
[realms]
SKARLLOT.COM = {
kdc = server01.skarllot.com
kdc = server02.skarllot.com
default_domain = skarllot.com
}
[domain_realm]
.skarllot.com.br = SKARLLOT.COM
skarllot.com.br = SKARLLOT.COM
skarllot = SKARLLOT.COM
SKARLLOT = SKARLLOT.COM
[global]
workgroup = SKARLLOT
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
idmap backend = tdb
winbind separator = +
winbind enum users = yes
winbind enum groups = yes
template homedir = /home/%U
template shell = /bin/nologin
winbind use default domain = yes
winbind nested groups = yes
encrypt passwords = yes
server signing = mandatory
client signing = mandatory
client use spnego = Yes
ntlm auth = Yes
lanman auth = No
map untrusted to domain = Yes
server string = Samba Server Version %v
# log files split per-machine:
log file = /var/log/samba/log.%m
# maximum size of 50KB per log file, then rotate:
max log size = 50
security = ads
passdb backend = tdbsam
realm = SKARLLOT.COM
password server = *
domain master = no
cups options = raw
guest ok = yes
[homes]
comment = Home Directories
writable = yes
path = /home
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
printable = yes
[Share01]
path = /mnt/share01
browseable = yes
guest ok = no
public = no
write list = @TI
read list = @TI
# Join machine into domain
net rpc join -U myuser
# List all users from domain
wbinfo -u
# List all groups from domain
wbinfo -g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment