You are not logged in.

#1 2013-04-12 14:42:28

Asaf K.
Member
Registered: 2011-05-04
Posts: 26

[SOLVED] Update to Samba 4 completely broke functionality of Samba

I have a computer running Arch 64bit, from which I share media files to my girlfriend's Windows 7 laptop, and to my own Windows 8 tablet.

Until an hour or so, I was running Samba 3.6.13 which happily worked most of the time (with occasional breaks that were easily quelled). I upgraded to Samba 4 to realize (much to my horror, just before we were going to watch a movie) that the configuration is no longer valid and whenever someone tries to connect to the server... it crashes.

I tried to delete the configuration file (leaving only the shares, along with the example configuration from the Samba4 wiki), but the result is the same. I have no need for AD DC, or so. I just want a working share that Windows can read without a hassle, so we can watch movies and so in the living room.

Last time I tried to start it using systemctl start smbd.service it failed and the error log implied that it fails to fetch the printers list (I have no printers at home...)

Is there any advice on the situation? Here is my smb.conf file, although it's pretty dull right now.

[global]

   workgroup = WORKGROUP
   security = ADS
   realm = Home
   encrypt passwords = yes

   idmap config *:backend = tdb
   idmap config *:range = 70001-80000
   idmap config SHORTDOMAINNAME:backend = ad
   idmap config SHORTDOMAINNAME:schema_mode = rfc2307
   idmap config SHORTDOMAINNAME:range = 500-40000

   winbind nss info = rfc2307
   winbind trusted domains only = no
   winbind use default domain = yes
   winbind enum users  = yes
   winbind enum groups = yes

[Videos]
path = /home/****/Videos
comment = Videos
valid users = nobody
read only = yes
available = yes
browseable = yes
writable = no
guest ok = yes
printable = no
locking = no
strict locking = no

[Music]
path =/home/****/Music
comment = Music
valid users = nobody
read only = yes
available = yes
browseable = yes
writable = no
guest ok = yes
printable = no
locking = no
strict locking = no

Last edited by Asaf K. (2013-04-16 09:33:18)

Offline

#2 2013-04-12 14:50:07

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,059

Re: [SOLVED] Update to Samba 4 completely broke functionality of Samba

please use a title that is relevant to the problem at hand instead of showing your exasperation. You are likely to get more visitors and hence likely more help if you use a relevant title.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2013-04-12 16:47:37

nomorewindows
Member
Registered: 2010-04-03
Posts: 2,943

Re: [SOLVED] Update to Samba 4 completely broke functionality of Samba

As pacman updates samba it states to read a wikipage that is empty.
Going back to look through the http://wiki.samba.org/index.php/Main_Page main page may be helpful.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Online

#4 2013-04-12 16:58:42

jacakk
Member
From: Poland
Registered: 2012-11-01
Posts: 1

Re: [SOLVED] Update to Samba 4 completely broke functionality of Samba

Same problem here. upgraded samba and it has broken my shares.
I noticed that there is no option "service = share" anymore... any workaround?

Samba version = 4.0.5-1

Last edited by jacakk (2013-04-12 17:02:39)

Offline

#5 2013-04-12 17:45:58

t0m5k1
Member
From: overthere
Registered: 2012-02-10
Posts: 301

Re: [SOLVED] Update to Samba 4 completely broke functionality of Samba

I guess I will be holding samba then as this is a big thing I need working until something relevant comes our way, If I find any howto or other article I will share here if relevant.

EDIT:
After reading their wiki I seriously think Arch Dev's should keep Samba3 in the repo's alongside Samba4  I say this because it appears Samba4 is more for those who require AD/DC functionality for a more enterprise scenario.

Last edited by t0m5k1 (2013-04-12 17:55:57)


AMD Athlon 64 X2 4200+ - 8GB - GeForce 970 AwesomeWM (occasionally XFCE, i3)

If everything in life was easy, we would learn nothing!
Linux User: 401820   Last FM

Offline

#6 2013-04-12 18:03:29

Beelzebud
Member
From: Illinois, U.S.
Registered: 2010-07-16
Posts: 154

Re: [SOLVED] Update to Samba 4 completely broke functionality of Samba

For an upgrade this big, there should be some documentation ready before it happens...

Offline

#7 2013-04-12 18:10:48

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,059

Re: [SOLVED] Update to Samba 4 completely broke functionality of Samba

t0m5k1 wrote:

EDIT:
After reading their wiki I seriously think Arch Dev's should keep Samba3 in the repo's alongside Samba4  I say this because it appears Samba4 is more for those who require AD/DC functionality for a more enterprise scenario.

Are you volunteering yourself to maintain that package? Have you considered that it might break other dependency chains if its in the same repo?

Point is, its easy to say "you need to do this" -- its quite another to actually do it


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#8 2013-04-12 18:35:18

t0m5k1
Member
From: overthere
Registered: 2012-02-10
Posts: 301

Re: [SOLVED] Update to Samba 4 completely broke functionality of Samba

Beelzebud wrote:

For an upgrade this big, there should be some documentation ready before it happens...

Exactly, the wiki has nothing about basic shares except for:

[test]
      path = /data/test
      comment = Test Share
      read only = no

but using that template in my virtual machine does nothing!

Inxsible wrote:
t0m5k1 wrote:

EDIT:
After reading their wiki I seriously think Arch Dev's should keep Samba3 in the repo's alongside Samba4  I say this because it appears Samba4 is more for those who require AD/DC functionality for a more enterprise scenario.

Are you volunteering yourself to maintain that package? Have you considered that it might break other dependency chains if its in the same repo?

Point is, its easy to say "you need to do this" -- its quite another to actually do it

Where do I say "you need to do this"?? I do not as I am simply sharing my opinion on what seems to be a bit of a major thing! Sorry if I offended you that was not my intention at all smile
Perhaps you thought I meant Arch linux wiki when I said "their wiki" as I was actually referring to Samba!

However I do consider it is possible that keeping Samba 3 in the repo's could have knock on effect but is it not obvious that basic file sharing has been broken by this upgrade!

And no unfortunately I do not have the required skills to volunteer to maintain this neither do I have the time as well.

Last edited by t0m5k1 (2013-04-12 18:36:15)


AMD Athlon 64 X2 4200+ - 8GB - GeForce 970 AwesomeWM (occasionally XFCE, i3)

If everything in life was easy, we would learn nothing!
Linux User: 401820   Last FM

Offline

#9 2013-04-12 18:42:46

t0m5k1
Member
From: overthere
Registered: 2012-02-10
Posts: 301

Re: [SOLVED] Update to Samba 4 completely broke functionality of Samba

just found this article, trying it now
(fingers crossed)

http://obihoernchen.net/wordpress/877/s … rch-linux/


also it appears my previous thoughts may have been unfounded:
http://thr3ads.net/samba/2012/12/212939 … -workgroup

Last edited by t0m5k1 (2013-04-12 18:46:11)


AMD Athlon 64 X2 4200+ - 8GB - GeForce 970 AwesomeWM (occasionally XFCE, i3)

If everything in life was easy, we would learn nothing!
Linux User: 401820   Last FM

Offline

#10 2013-04-12 19:18:57

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,835

Re: [SOLVED] Update to Samba 4 completely broke functionality of Samba

Beelzebud wrote:

For an upgrade this big, there should be some documentation ready before it happens...

There are 94 man pages included in the samba package, surely they fulfil your requirement here?

Offline

#11 2013-04-12 19:34:36

Asaf K.
Member
Registered: 2011-05-04
Posts: 26

Re: [SOLVED] Update to Samba 4 completely broke functionality of Samba

t0m5k1 wrote:

just found this article, trying it now
(fingers crossed)

http://obihoernchen.net/wordpress/877/s … rch-linux/

Huzzah. It worked just fine!

Here is my smb.conf with everything working just peachy,

[global]

workgroup = WORKGROUP
server string = ****
netbios name = *****
printcap name = /dev/null
load printers = no
disable spoolss = yes
printing = bsd
security = user
dns proxy = no

unix extensions = no # wide links won't work unless this is set to "no"
map to guest = Bad User
wide links = yes

oplocks = no

socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE
write cache size = 2097152
use sendfile = true
getwd cache = yes

public = yes

[Videos]
path = /home/****/Videos
comment = Videos
read only = yes
available = yes
browseable = yes
writable = no
guest ok = yes
printable = no
locking = no
strict locking = no
wide links = yes # Because there is are symlinks to other harddrives

There are probably a couple of redundancies there, but it's better safe and working than not working.

Thank you very much for that link!

Offline

#12 2013-04-12 19:59:28

neildarlow
Member
From: United Kingdom
Registered: 2007-10-23
Posts: 17

Re: [SOLVED] Update to Samba 4 completely broke functionality of Samba

For some people (notably those relying on a remote Samba 3 server) it will be necessary to ignore updates to libwbclient, samba and smbclient. Samba 4 clients cannot interoperate with Samba 3 servers and the migration of a Samba 3 domain to Samba 4 is non-trivial. There might be a case for retaining Samba 3 packages in Community as e.g. samba3-libwbclient, samba3-samba and samba3-smbclient. I appreciate the arguments against doing this but it might not be possible to migrate a Samba 3 installation to Samba 4 just because Arch has updated its packages.

Offline

#13 2013-04-12 20:07:32

t0m5k1
Member
From: overthere
Registered: 2012-02-10
Posts: 301

Re: [SOLVED] Update to Samba 4 completely broke functionality of Samba

Asaf K. wrote:
t0m5k1 wrote:

just found this article, trying it now
(fingers crossed)

http://obihoernchen.net/wordpress/877/s … rch-linux/

Huzzah. It worked just fine!

...snip

There are probably a couple of redundancies there, but it's better safe and working than not working.

Thank you very much for that link!

No worries glad it worked for you, after cooking the family dinner & making some changes it worked so now I just gotta migrate my live server to v4 then the connecting pc's but all is looking good so far yaaay


AMD Athlon 64 X2 4200+ - 8GB - GeForce 970 AwesomeWM (occasionally XFCE, i3)

If everything in life was easy, we would learn nothing!
Linux User: 401820   Last FM

Offline

#14 2013-04-12 21:04:02

BasioMeusPuga
Member
Registered: 2011-12-18
Posts: 19

Re: [SOLVED] Update to Samba 4 completely broke functionality of Samba

t0m5k1 wrote:

just found this article, trying it now
(fingers crossed)

http://obihoernchen.net/wordpress/877/s … rch-linux/


also it appears my previous thoughts may have been unfounded:
http://thr3ads.net/samba/2012/12/212939 … -workgroup

After going through this process, Samba started functioning again but KDE4 won't let me select which folders to share from the Right click properties menu.

I found this old and (now deleted) entry on the Samba page of the wiki.

Sharing a folder fails
If you share a folder from Dolphin (file manager) and everything seems ok at first, but after restarting Dolphin (file manager) you notice that a share icon is gone from your shared folder, and also you get something like this in terminal (Konsole) output:
‘net usershare’ returned error 255: net usershare: usershares are currently disabled
You should do the following:
Open /etc/samba/smb.conf as root and edit the section [global]:
  [global]
  .....
  usershare allow guests = Yes
  usershare max shares = 100
  usershare owner only = False
  .....
close the file and do the following afterwards:
# mkdir /var/lib/samba/usershares
# chgrp users /var/lib/samba/usershares/
# chmod 1770 /var/lib/samba/usershares/
restart samba daemon

Offline

#15 2013-04-12 22:54:35

Beelzebud
Member
From: Illinois, U.S.
Registered: 2010-07-16
Posts: 154

Re: [SOLVED] Update to Samba 4 completely broke functionality of Samba

tomk wrote:
Beelzebud wrote:

For an upgrade this big, there should be some documentation ready before it happens...

There are 94 man pages included in the samba package, surely they fulfil your requirement here?

I apologize, I hadn't had my coffee and was still in bitch-mode.   Got it all sorted out with little headaches.   Even seems like better performance.   Next time I'll dig in before I whine.

I used the guide linked above.   One thing that was different for me, though, was the service was still named 'smbd' and 'nmbd', as opposed to the guide which said they'd be named 'smb' and 'nmb'.

Last edited by Beelzebud (2013-04-12 23:01:31)

Offline

#16 2013-04-13 14:55:54

z1lt0id
Member
Registered: 2012-09-20
Posts: 167

Re: [SOLVED] Update to Samba 4 completely broke functionality of Samba

I had to do a bit of hunting to get my shares working, a lot of the functions are now depraciated.  But after some trial and error I can say there is a huge performance increase.  I can now have two instances of watch 1080p movies in to seperate rooms over wireless.  They must have improved packet transmission.

Offline

#17 2013-04-13 16:27:56

Beelzebud
Member
From: Illinois, U.S.
Registered: 2010-07-16
Posts: 154

Re: [SOLVED] Update to Samba 4 completely broke functionality of Samba

Yeah the performance improvements are no joke.   File transfers are 100% faster on my setup.

Offline

#18 2013-04-14 04:23:37

DarksideEE7
Member
From: Arkansas, United States
Registered: 2009-06-06
Posts: 356

Re: [SOLVED] Update to Samba 4 completely broke functionality of Samba

I've been running the same samba setup for years and the latest update broke mine as well.  I attempted to convert the smbpasswd database, however that didn't fix it so I simply added the user via pdbedit command and that fixed it for me.  I have a barebones smb.conf.  Figured I would add my 2 cents for any people searching the forum.

Offline

#19 2013-04-14 07:06:43

HalosGhost
Member
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 1,485
Website

Re: [SOLVED] Update to Samba 4 completely broke functionality of Samba

Beelzebud, I'm glad you got it worked out. Please add [Solved] to the beginning of your thread title.

All the best,

-HG


"All errors are ᴘᴇʙᴋᴀᴄ errors—It's just a matter of narrowing down which keyboard and chair." -Trilby
\ldots

Online

#20 2013-04-14 11:46:34

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,001
Website

Re: [SOLVED] Update to Samba 4 completely broke functionality of Samba

In case you want to downgrade from samba 3 to samba 4, follow this post i made:
https://bbs.archlinux.org/viewtopic.php?id=161490

Offline

#21 2013-04-14 12:41:16

Sanne
Member
Registered: 2012-03-13
Posts: 86

Re: [SOLVED] Update to Samba 4 completely broke functionality of Samba

Two other links that helped me, might be useful to others also:
FAQ: Guest access
smb.conf changes in Samba 4

I had usershares set up like in post #14 for sharing via Dolphin/Konqueror, with

security = share

I just had to change it to

security = user
map to guest = Bad Password

and restart samba.


If our currency were not money but appreciation and acknowledgement for what we do for others, for the community, for the benefit of all, we would have paradise on earth.

Offline

#22 2013-04-14 14:24:46

nomorewindows
Member
Registered: 2010-04-03
Posts: 2,943

Re: [SOLVED] Update to Samba 4 completely broke functionality of Samba

I've tried to watch some videos on Active Directory, and without spending much time with it I can't see the forest for the trees (pun).  It seems they just took the failed domain model, and put automatic trusts for all domains in the forest.  They just added a level of complexity, as well as their own implementation of everything such as TCP/IP and LDAP.  Then they required everyone to live in the forest, and if a wood chuck could chuck wood, made all of their future network applications depend on AD DS.  Even though I change my password on the local domain, it still takes several hours for the change to be replicated with the rest of the corporate world. 

Sanne wrote:
security = share

I just had to change it to

security = user
map to guest = Bad Password

and restart samba.

I think security = share is the windows 95 peer-to-peer equivalent, and security = user is the domain equivalent.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Online

#23 2013-04-14 17:49:00

Beelzebud
Member
From: Illinois, U.S.
Registered: 2010-07-16
Posts: 154

Re: [SOLVED] Update to Samba 4 completely broke functionality of Samba

HalosGhost wrote:

Beelzebud, I'm glad you got it worked out. Please add [Solved] to the beginning of your thread title.

All the best,

-HG

I would but it's not my thread.   smile

Offline

#24 2013-04-14 18:00:42

HalosGhost
Member
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 1,485
Website

Re: [SOLVED] Update to Samba 4 completely broke functionality of Samba

Beelzebud wrote:
HalosGhost wrote:

Beelzebud, I'm glad you got it worked out. Please add [Solved] to the beginning of your thread title.

All the best,

-HG

I would but it's not my thread.   smile

Woops tongue My apologies.

All the best,

-HG


"All errors are ᴘᴇʙᴋᴀᴄ errors—It's just a matter of narrowing down which keyboard and chair." -Trilby
\ldots

Online

#25 2013-05-02 11:49:55

t0m5k1
Member
From: overthere
Registered: 2012-02-10
Posts: 301

Re: [SOLVED] Update to Samba 4 completely broke functionality of Samba

another tip:

sudo testparm /etc/smb.conf

here is what it gave me:

┌─(t0m5k1@b0x)-(1056/pts/1)-(01:38pm:02/05/13)-
└─>(%:~)
└─>> sudo testparm /etc/samba/smb.conf
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (4096) to minimum Windows limit (16384)
Processing section "[public]"
Loaded services file OK.
Invalid combination of parameters for service public. 			   Level II oplocks can only be set if oplocks are also set.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
	server string = b0x
	interfaces = lo, eth0
	bind interfaces only = Yes
	map to guest = Bad User
	unix extensions = No
	socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE
	load printers = No
	printcap name = /dev/null
	disable spoolss = Yes
	dns proxy = No
	idmap config * : backend = tdb
	guest ok = Yes
	use sendfile = Yes
	write cache size = 2097152
	printing = bsd
	print command = lpr -r -P'%p' %s
	lpq command = lpq -P'%p'
	lprm command = lprm -P'%p' %j
	oplocks = No
	wide links = Yes

[public]
	comment = public
	path = /public
	read only = No
	locking = No
	strict locking = No

samba4 ROX! wink
have fun people


AMD Athlon 64 X2 4200+ - 8GB - GeForce 970 AwesomeWM (occasionally XFCE, i3)

If everything in life was easy, we would learn nothing!
Linux User: 401820   Last FM

Offline

Board footer

Powered by FluxBB