Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
samba upgrade doc [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
snIP3r
l33t
l33t


Joined: 21 May 2004
Posts: 853
Location: germany

PostPosted: Thu May 06, 2010 6:16 am    Post subject: samba upgrade doc [solved] Reply with quote

hi all!

yesterday portage offered me an upgrade for samba to version 3.4.6. after the successful installation and restart of the daemon i encountered that i could not access any of my shares. it seems that the auth method has changed. is there some doc available for migration from 3.0.x to 3.4.x? or do i have to use the official howto?

thx for help & greets
snIP3r
_________________
Intel i3-4130T on ASUS P9D-X
Kernel 5.15.88-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic!


Last edited by snIP3r on Fri May 07, 2010 11:58 am; edited 1 time in total
Back to top
View user's profile Send private message
gentoo_ram
Guru
Guru


Joined: 25 Oct 2007
Posts: 513
Location: San Diego, California USA

PostPosted: Thu May 06, 2010 4:02 pm    Post subject: Reply with quote

I didn't really find this documented anywhere, but based on files in /var/lib/samba/private, it seems the location and format of the SMB password file changed. So you need to re-add all users to the password database again with 'smbpasswd -a'. After I re-added my account, it started working again.
Back to top
View user's profile Send private message
Jacek
n00b
n00b


Joined: 06 Jun 2007
Posts: 22
Location: Warsaw, Poland

PostPosted: Fri May 07, 2010 9:34 am    Post subject: Reply with quote

According to samba release notes:
Quote:
The default passdb backend has been changed to 'tdbsam'! That breaks existing
setups using the 'smbpasswd' backend without explicit declaration! Please use
'passdb backend = smbpasswd' if you would like to stick to the 'smbpasswd'
backend or convert your smbpasswd entries using e.g. 'pdbedit -i smbpasswd -e
tdbsam'.

The 'tdbsam' backend is much more flexible concerning per user settings
like 'profile path' or 'home directory' and there are some commands which do not
work with the 'smbpasswd' backend at all.
Back to top
View user's profile Send private message
snIP3r
l33t
l33t


Joined: 21 May 2004
Posts: 853
Location: germany

PostPosted: Fri May 07, 2010 11:58 am    Post subject: Reply with quote

hi all!

good news! 3.4.6 works with changing passdb backend to smbpasswd.
later i will check changing to new tdbsam passdb backend.

thx for help!

snIP3r
_________________
Intel i3-4130T on ASUS P9D-X
Kernel 5.15.88-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic!
Back to top
View user's profile Send private message
bfx81
n00b
n00b


Joined: 25 Oct 2006
Posts: 21

PostPosted: Wed May 12, 2010 7:59 am    Post subject: Reply with quote

why not a "eselect news" or post install warning about that? samba is a quite important package, sometimes an essential service in some production environment...
_________________
In a world without walls... who needs windows?
Back to top
View user's profile Send private message
dog910
n00b
n00b


Joined: 12 May 2010
Posts: 1

PostPosted: Wed May 12, 2010 1:35 pm    Post subject: vscan-fs no longer included in samba 3.4.6? => no access Reply with quote

Access to the samba shares no longer worked after upgrading from 3.0.37 to 3.4.6 (after redefining the users to avoid problems with new pw dB). The "oav" use flag is no longer supported and the vscan files in e.g. /usr/lib/samba/vfs have vanished. /var/log/samba/log:

Quote:

[2010/05/12 14:33:40, 0] smbd/vfs.c:175(vfs_init_custom)
Can't find a vfs module [vscan-clamav]
[2010/05/12 14:33:40, 0] smbd/vfs.c:322(smbd_vfs_init)
smbd_vfs_init: vfs_init_custom failed for vscan-clamav
[2010/05/12 14:33:40, 0] smbd/service.c:846(make_connection_snum)
vfs_init failed for service IPC$[/list]

According to samba.org dazuko should be used but sys-fs/dazuko is no longer in gentoo?
Back to top
View user's profile Send private message
snIP3r
l33t
l33t


Joined: 21 May 2004
Posts: 853
Location: germany

PostPosted: Wed May 12, 2010 8:15 pm    Post subject: Re: vscan-fs no longer included in samba 3.4.6? => no acc Reply with quote

dog910 wrote:
Access to the samba shares no longer worked after upgrading from 3.0.37 to 3.4.6 (after redefining the users to avoid problems with new pw dB). The "oav" use flag is no longer supported and the vscan files in e.g. /usr/lib/samba/vfs have vanished. /var/log/samba/log:

Quote:

[2010/05/12 14:33:40, 0] smbd/vfs.c:175(vfs_init_custom)
Can't find a vfs module [vscan-clamav]
[2010/05/12 14:33:40, 0] smbd/vfs.c:322(smbd_vfs_init)
smbd_vfs_init: vfs_init_custom failed for vscan-clamav
[2010/05/12 14:33:40, 0] smbd/service.c:846(make_connection_snum)
vfs_init failed for service IPC$[/list]

According to samba.org dazuko should be used but sys-fs/dazuko is no longer in gentoo?


hi!

according to the samba doc it looks like only suse linux supports samba-vscan for samba > 3.0.25
http://www.openantivirus.org/projects.php#samba-vscan
http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/VFS.html#id2652728

i assume you have configured samba vscan as described here:
http://docs.huihoo.com/gentoo/resources/document-listing/quick-samba-howto.html

for the dazuko thing check here:
https://bugs.gentoo.org/show_bug.cgi?id=273204

perhaps this helps...
snIP3r
_________________
Intel i3-4130T on ASUS P9D-X
Kernel 5.15.88-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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