You are not logged in.
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
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.
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
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.
Offline
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
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)
ROG Strix (GD30CI) - Intel Core i5-7400 CPU - 32Gb 2400Mhz - GTX1070 8GB - AwesomeWM (occasionally XFCE, i3)
If everything in life was easy, we would learn nothing!
Linux User: 401820 Steam-HearThis.at-Last FM-Reddit
Offline
For an upgrade this big, there should be some documentation ready before it happens...
Offline
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
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
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!
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
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)
ROG Strix (GD30CI) - Intel Core i5-7400 CPU - 32Gb 2400Mhz - GTX1070 8GB - AwesomeWM (occasionally XFCE, i3)
If everything in life was easy, we would learn nothing!
Linux User: 401820 Steam-HearThis.at-Last FM-Reddit
Offline
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)
ROG Strix (GD30CI) - Intel Core i5-7400 CPU - 32Gb 2400Mhz - GTX1070 8GB - AwesomeWM (occasionally XFCE, i3)
If everything in life was easy, we would learn nothing!
Linux User: 401820 Steam-HearThis.at-Last FM-Reddit
Offline
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
just found this article, trying it now
(fingers crossed)
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
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
t0m5k1 wrote:just found this article, trying it now
(fingers crossed)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
ROG Strix (GD30CI) - Intel Core i5-7400 CPU - 32Gb 2400Mhz - GTX1070 8GB - AwesomeWM (occasionally XFCE, i3)
If everything in life was easy, we would learn nothing!
Linux User: 401820 Steam-HearThis.at-Last FM-Reddit
Offline
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
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
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
Yeah the performance improvements are no joke. File transfers are 100% faster on my setup.
Offline
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
Beelzebud, I'm glad you got it worked out. Please add [Solved] to the beginning of your thread title.
All the best,
-HG
Offline
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
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
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.
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.
Offline
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.
Offline
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.
Woops My apologies.
All the best,
-HG
Offline
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!
have fun people
ROG Strix (GD30CI) - Intel Core i5-7400 CPU - 32Gb 2400Mhz - GTX1070 8GB - AwesomeWM (occasionally XFCE, i3)
If everything in life was easy, we would learn nothing!
Linux User: 401820 Steam-HearThis.at-Last FM-Reddit
Offline