LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-23-2013, 03:43 AM   #1
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2157Reputation: 2157Reputation: 2157Reputation: 2157Reputation: 2157Reputation: 2157Reputation: 2157Reputation: 2157Reputation: 2157Reputation: 2157Reputation: 2157
Samba 4.x backwards compatibility with Samba 3.x?


Hi,

I have a question for those of you who are already familiar with Samba 4.x. I understand this new major release comes with many changes under the hood. Now I wonder if I can still configure it as simply as 3.x. Here's a real-life example of what I consider a "simple" configuration, the one running on my office server (nestor), with two different shares, one public, one confidential (e. g. needing authentication):

Code:
# /etc/samba/smb.conf

[global]
workgroup = WORKGROUP
domain master = yes
netbios name = NESTOR
server string = Serveur de fichiers et d'impression NESTOR
dns proxy = yes
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
bind interfaces only = yes
interfaces = 192.168.2.0/24 localhost
hosts allow = 192.168.2. 127.
security = user
passdb backend = tdbsam
unix password sync = no
invalid users = root
encrypt passwords = yes
guest account = smbguest
map to guest = bad user
force group = users
create mode = 0660
directory mode = 0770

[Public]
path = /srv/samba/public
comment = Partage Public
public = yes
only guest = yes
read only = no

[Confidentiel]
path = /srv/samba/confidentiel
comment = Partage Confidentiel
read only = no
invalid users = root nobody smbguest

[printers]
comment = Imprimantes
browseable = no
path = /var/spool/samba
public = yes
read only = yes
printable = yes
Will I be able to use this configuration "as is" on Samba 4.x? Or did the overall syntax change?

Cheers,

Niki
 
Old 09-23-2013, 04:13 AM   #2
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009
Hello,

There's a wiki about features/changes in samba 4.0 here. You will find a list of changes in smb.conf in this section.

Hope this helps.

--
SeB
 
Old 09-23-2013, 04:26 AM   #3
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,458

Rep: Reputation: 4416Reputation: 4416Reputation: 4416Reputation: 4416Reputation: 4416Reputation: 4416Reputation: 4416Reputation: 4416Reputation: 4416Reputation: 4416Reputation: 4416
if it can be useful, here is how I'm using it at home (private network, no auth)
Code:
[global]
   workgroup = BAR_CIVILI
   server string = Samba Server
   security = user
   hosts allow = (ips of the allowe hosts)
   load printers = no
   log file = /var/log/samba.%m
   max log size = 50
   socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65535 SO_SNDBUF=65535 SO_KEEPALIVE
   map to guest = Bad User
   guest account = myuser
   dns proxy = no 
[ro]
   comment = read only space
   path = /path/to/read-only/folder
   read only = yes
   writable = no
   public = yes
   guest ok = yes
   force user = myuser
[rw]
   comment = read and write space
   path = /path/to/read-and-write/folder
   read only = no
   writable = yes
   public = yes
   guest ok = yes
   force user = myuser
files/folders are owned by myuser
 
1 members found this post helpful.
Old 09-23-2013, 10:45 AM   #4
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Original Poster
Rep: Reputation: 2157Reputation: 2157Reputation: 2157Reputation: 2157Reputation: 2157Reputation: 2157Reputation: 2157Reputation: 2157Reputation: 2157Reputation: 2157Reputation: 2157
Thanks guys. So globally I guess this looks like a YES.
 
  


Reply


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
subversion backwards compatibility stateless Programming 1 06-07-2013 11:49 AM
Memory and backwards compatibility spaceballs Slackware 3 04-13-2007 02:59 PM
GCC 4.x backwards compatibility mode antonypaul Programming 1 12-09-2005 12:32 PM
freebsd 5.3 backwards compatibility kpachopoulos *BSD 1 12-21-2004 04:58 PM
Question re: backwards compatibility.... sankeny Slackware 5 11-21-2002 07:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:17 PM.

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
Open Source Consulting | Domain Registration