LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 05-18-2006, 04:05 PM   #1
Last Attacker
Member
 
Registered: Jun 2004
Location: South Africa
Distribution: Ubuntu
Posts: 120

Rep: Reputation: 15
SAMBA Sample


Hi, I saw a couple of people with some standard Samba problems.
I hope that this example might clear some things up:

Code:
# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2005-03-22

#
# Notes from Last-Attacker
#
# When setting up in SuSE, make sure you do the following:
# * Replace the existing smb.conf with this one (make a copy
#   first if you desire)
# * 'Copy' the unix account passwords over the smbpasswd file
#   cat /etc/passwd | mksmbpasswd.sh > /etc/samba/smbpasswd
# * Create users individually with 'smbpasswd <user>'
# * Open the following ports in firewall : 
#   (TCP) 137, 138
#   (UDP) 139, 445
# * Start/Restart the smb service
#
# What this SAMBA Config does:
# * Shares the /var/shares folder for guest full access
#   (for people to copy stuff to you and for you to share
#   with others without giving your account details, just
#   make sure make that directory is created and with the
#   nobody as user & group with full access)
# * Users that has accounts on this machine can log in
#   from Windows or Linux because they have to give their
#   username and password through the profiles folder.
# * Once they have logged in, a folder in the server's 
#   main view appears with the user's name on it sothat
#   the user don't have to log in again but when that
#   browser program is closed, it SHOULD 'log off'
#   (standard with all SAMBAS).
#

[global]
#	smb ports = 139 445
	workgroup = WORKGROUP
	printing = cups
	printcap name = cups
	printcap cache time = 750
	cups options = raw
#	printer admin = @ntadmin, root, administrator
	username map = /etc/samba/smbusers
	encryptpasswords = Yes
	netbios name = LServer
	dns proxy = No
	max log size = 100
	map to guest = Bad User
	security = user
	passwd program = /usr/bin/passwd %u
	smb passwd file = /etc/samba/smbpasswd
	server string = Linux Home Server
	socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
	domain logons = No
	domain master = No
#	include = /etc/samba/dhcp.conf
	logon path = \\%L\profiles\.msprofile
	logon home = \\%L\%U\.9xprofile
	logon drive = P:

[homes]
	comment = Home Directories
	valid users = %S
	browseable = No
	read only = No
	inherit acls = Yes

[profiles]
	comment = Network Profiles Service
	path = %H
	read only = No
	store dos attributes = Yes
	create mask = 0600
	directory mask = 0700

[sharing]
	comment = Open share directory
	path = /var/shares
	guest only = Yes
	read only = No
	browseable = Yes
	create mask = 1777
	directory mask = 1777
	max connections = 3
	inherit acls = Yes
	force user = nobody
	force group = nobody

[users]
	comment = All users
	path = /home/
	read only = No
	browseable = No
	inherit acls = Yes
	veto files = /aquota.user/groups/shares/

Last edited by Last Attacker; 05-19-2006 at 05:56 AM.
 
  


Reply

Tags
config, samba


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sample Questions LinuxRam Linux - Certification 52 11-16-2013 11:03 AM
libgcrypt sample D. Marowa Programming 1 08-26-2006 06:11 AM
fstab sample kpachopoulos Fedora 1 07-15-2005 09:50 AM
No sound sample 1948chev Linux - General 2 05-07-2004 04:55 PM
firewall sample cijunet Slackware 4 04-16-2003 08:48 PM


All times are GMT -5. The time now is 12:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration