samba

This is a discussion on samba within the Linux Security forums, part of the System Security and Security Related category; Samba configuration file Yours truly # Samba config file created using SWAT # from 127.0.0.1 (127.0.0.1) # ...


Go Back   Usenet Forums > System Security and Security Related > Linux Security

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-26-2004
Churchill
 
Posts: n/a
Default samba

Samba configuration file

Yours truly

# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2004/04/15 20:05:47
# Global parameters
[global]
workgroup = NET
Netbios name = samba
server string = Samba Server %v
security = user
map to guest = Bad User
log file = /var/log/samba/log.%m
max log size = 50
debug timestamp = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = cups
dns proxy = No
printer admin = @adm
printing = cups
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
admin users = @sysadmin

#Samba is the domain and local master browser
os level = 65
preferred master = yes
domain master = yes
local master = yes
domain logons = yes
logon path = \\%L\profiles\%u\%m

#Automatically maps the home directory of the user
logon drive = q:
logon home = \\samba\%u

add user script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M %u
#Run a WINS server
wins support = yes
time server = yes

#Allow only hosts in the local domain
hosts allow = 127.0.0.1 192.168.2.0/24
hosts deny = 0.0.0.0/0

#necessary share for domain controller
[netlogon]
comment = Network Logon Service
path = /home/netlogon
guest ok = yes
writable = no
write list = @sysadmin
share modes = no

[profiles]
#Directory for windows xp roaming profiles
path = /home/samba-ntprof
browseable = no
writable = yes
create mode = 0600
directory mode = 0700
profile acls = yes

[homes]
comment = Home Directories
read only = No
browseable = No

[printer]
comment = All Printers
path = /var/spool/samba
create mask = 0700
guest ok = Yes
printable = Yes
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
browseable = No

[print$]
path = /var/lib/samba/printers
write list = @adm, root
inherit permissions = Yes
guest ok = Yes

[pdf-generator]
comment = PDF Generator (only valid users)
path = /var/tmp
printable = Yes
print command = /usr/share/samba/scripts/print-pdf %s ~%u //%L/%u %m %I "%J" &

[install]
comment = linux machine
path = /mnt/win_e/backup install
read only = No
guest ok = Yes
browseable = yes
[movies]
comment = linux machine
path = /mnt/win_f/movies
read only = Yes
guest ok = Yes
valid users = churchill churchilll grazynka
invalid users = cosmas

[Grazynka]
comment = linux machine
path = /mnt/win_e/Grazynka
read only = No
valid users = grazynka
browseable = Yes
guest ok = no
Reply With Quote
  #2 (permalink)  
Old 09-08-2004
Jeroen Geilman
 
Posts: n/a
Default Re: samba

Churchill wrote:

> Samba configuration file


BRILIIANT!
Now let's invade Poland.


--
J

All your bits are belong to us - again.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 12:50 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0