Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Simple samba.conf
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
shwag
n00b
n00b


Joined: 24 Sep 2003
Posts: 24
Location: Los Angeles, CA

PostPosted: Mon Jan 05, 2004 4:50 am    Post subject: Simple samba.conf Reply with quote

It took me a bit of time to get this simple samba.conf together, so I'm going to post it for everyone. Hopefully in the future this can be included in /usr/share/doc/samba/simple.samba.conf.sample or something.

Code:

[global]
workgroup = WORKGROUP
netbios name = MyLinux
server string = Powered by Linux.
security = SHARE
log file = /var/log/samba.log
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
wins server = 127.0.0.1
wins support = Yes
 
[Storage]
path = /mnt/storage/share
read only = No
guest ok = Yes
 
#[stuff]
#path = /stuff
#username = root
#valid users = root
#admin users = root
#write list = root
#force user = root
#only user = Yes
Back to top
View user's profile Send private message
Tazmanian
Apprentice
Apprentice


Joined: 01 Jul 2003
Posts: 222

PostPosted: Mon Jan 05, 2004 5:01 am    Post subject: Reply with quote

Just a thought that I had as I read through it: you may want to add some comments to indicate what the configuration does. In particular, it looks like you've got a world-writeable share, though I'm not at all familliar with configuring Samba.
Back to top
View user's profile Send private message
vdboor
Guru
Guru


Joined: 03 Dec 2003
Posts: 592
Location: The Netherlands

PostPosted: Mon Jan 05, 2004 10:36 am    Post subject: Reply with quote

May I ask why you're using a wins server? :?


btw, my config isn't much different from yours, and I think your config is really nice and clean.


...perhaps some of these items are useful too, take what you like:
Code:

## -- security issues

security           = user
encrypt passwords  = yes

# make sure this account exists
guest account      = smbguest
map to guest       = Bad User
guest ok           = yes

# change the interfaces setting if you have 2 network cards!
interfaces         = 0.0.0.0/32
lock directory     = /var/lock/samba

log file           = /var/log/samba.log
max log size       = 50

## -- smb network settings

name resolve order = lmhosts host bcast
domain master      = no
preferred master   = no
max protocol       = NT

_________________
The best way to accelerate a windows server is by 9.81M/S²
Linux user #311670 and Yet Another Perl Programmer

[ screenies | Coding on KMess ]
Back to top
View user's profile Send private message
shagrat
Apprentice
Apprentice


Joined: 10 Mar 2003
Posts: 218
Location: Norway

PostPosted: Tue Jan 06, 2004 12:04 am    Post subject: Reply with quote

I may as well share mine too. It has two shares, which are identical except for the write permissions.

Code:
#======================= Global Settings =====================================
[global]
netbios name = gateway
workgroup = bt29
server string = Gateway

bind interfaces only = no
interfaces = eth1

use client driver = yes
printcap name = /etc/printcap
load printers = yes

max log size = 50
security = share
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd

socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = no

guest account = guest

# WINS / VPN
# ----------

preferred master = auto
wins support = yes
wins server =

# Other handy directives
# ----------------------
domain master = yes
local master = yes
os level = 99
# remote announce =
# remote browse sync =
hosts allow = 192.168.1. 127.

#============================ Share Definitions ==============================

[printers]
printing = cups
print command = lpr -r -P%p -o raw %s
printer admin = guest
browseable = yes
printable = yes
public = yes
guest ok = yes

[all]
create mask = 0777
comment = All files on Gateway
path = /shared/
writable = yes
public = yes
printable = no
valid users = shagrat

[ftp]
comment = Some files on Gateway
path = /shared/
writeable = no
public = yes
printable = no


Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum