You are not logged in.

#1 2010-04-09 12:17:46

steve_v
Member
Registered: 2006-02-11
Posts: 80

smbclient is still totally broken.

since 3.5.0:

smbclient //damnation/Archive
Enter steve's password: 
Domain=[LAN] OS=[Unix] Server=[Samba 3.5.2]
Server not using user level security and no password supplied.
Segmentation fault

This breaks everything depending on it, i.e. konqueror, smbnetfs.

I am not alone: http://bbs.archlinux.org/viewtopic.php?pid=728177

Anyone care to enlighten me as to why we are including a broken release in extra?

Steve.

Offline

#2 2010-04-09 12:27:31

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: smbclient is still totally broken.

We keep it in [extra] because we want to annoy people.   Either that, or no-one has reported a bug for this. 

The lack of bug also indicates it does not affect many people and it may well be a configuration error...

Offline

#3 2010-04-09 12:38:01

steve_v
Member
Registered: 2006-02-11
Posts: 80

Re: smbclient is still totally broken.

True, however I'm not convinced it's a config error.
That said I am now fairly sure you know better than I so here is my smb.conf:

[global]
#os level = 65
#domain logons = Yes
#preferred master = Yes
#domain master = no
#wins support = Yes
#wide links = no
workgroup = LAN

server string = Samba Server
security = share
hosts allow = 192.168.5. 127. 
guest account = guest

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
printable = yes

[Archive]
comment = Mass Storage
path = /mnt/archive
guest ok = yes

[DropBox]
comment = Writable
path = /var/tmp/DropBox
read only = no
guest ok = yes

[RIPS]
path = /home/steve/Incoming/Rips/
guest ok = yes

[TO SORT]
path = /home/steve/Incoming/To Sort/
guest ok = yes

[PICS]
path = /home/steve/Pics & Vids/
guest ok = yes

Tested against Samba (current arch), samba 3.4.6, Win XP SP2, Win XP SP3 & Win 7 with same result.

My samba server is however perfectly usable _from_ all of the above except the 3 other Arch boxes in my flat running 3.5.2

Offline

#4 2010-04-09 13:54:48

schmoemi
Member
From: Gersthofen, BY, Germany
Registered: 2004-10-17
Posts: 51
Website

Re: smbclient is still totally broken.

steve_v wrote:

since 3.5.0:

smbclient //damnation/Archive
Enter steve's password: 
Domain=[LAN] OS=[Unix] Server=[Samba 3.5.2]
Server not using user level security and no password supplied.
Segmentation fault

This breaks everything depending on it, i.e. konqueror, smbnetfs.

I am not alone: http://bbs.archlinux.org/viewtopic.php?pid=728177

Anyone care to enlighten me as to why we are including a broken release in extra?

Steve.

I can confirm that error message if I try to connect to my samba share on the same machine.

$ smbclient //spitfire/depot
Enter michi's password: 
Domain=[MJSNET] OS=[Unix] Server=[Samba 3.5.1]
Server not using user level security and no password supplied.
Speicherzugriffsfehler

If I try to do the same to access the shares on my WinXP Box it seems to work.

$ smbclient //tornado/music
Enter michi's password: 
Domain=[TORNADO] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
smb: \>

But SMB share access through nautilus seems to be broken.
bildschirmfotonz.png
Samba Server works without errors, means I can browse the samba shares on my WinXP box without problems.

Michael.


The time when Microsoft starts making something that doesn't suck will be when they start making vacuum cleaners.

Offline

#5 2010-04-09 14:02:43

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: smbclient is still totally broken.

This reminds me of this comment...  http://bugs.archlinux.org/task/17522#comment56430

Offline

#6 2010-04-24 09:55:18

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: smbclient is still totally broken.

I just setup a smb server. I thought I did something wrong, but it was in fact Arch samba client being broken tongue
I am hit by this bug too.
I think it was acknowledged and fixed in test version :
http://www.mail-archive.com/samba@lists … 07402.html

It does not seem to be related to heimdal krb5 allow_weak_crypto = true as in bug 17522

Btw, the weird Dbus error in gnome is just a side effect of the same bug. If you look at dmesg, you can see the segfault

[ 1792.933005] gvfsd-smb[5232]: segfault at c35dec79 ip b75bcf68 sp b6580b50 error 5 in libsmbclient.so.0[b7154000+5a3000]

/me waits for a 32bit package of 3.5-test tongue


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#7 2010-04-24 17:28:28

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: smbclient is still totally broken.

I tried to convert official samba PKGBUILD do build 3.5-test from git , it was not fun, what a big mess that pkgbuild is, really awful.
If I can get the same result with http://aur.archlinux.org/packages/samba … t/PKGBUILD , that's quite sad.

The good news is that 3.5-test indeed works.


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#8 2010-04-24 21:28:12

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: smbclient is still totally broken.

Ok that samba-git AUR package was actually the extreme opposite, overly simplistic and very stupid. So it sucks even more than official pkgbuild tongue
So here is my hybrid version : http://aur.archlinux.org/packages.php?ID=36688
if anyone wants to test the future 3.5.3 with working smbclient.


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#9 2010-04-26 01:32:47

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: smbclient is still totally broken.

shining wrote:

I tried to convert official samba PKGBUILD do build 3.5-test from git , it was not fun, what a big mess that pkgbuild is, really awful.

Agreed! I've tried to work on it maybe 5-10 times already (supporting another package I want) but gave up in disgust every time.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#10 2010-05-02 14:55:42

willtriv
Member
Registered: 2009-04-18
Posts: 7

Re: smbclient is still totally broken.

what is this libTDB that the samba-3.5-git is looking for?

I have TDB installed on my system:

checking for LIBTDB... no
configure: error: Unable to find libtdb
make: *** No targets specified and no makefile found.  Stop.
==> ERROR: Build Failed.
    Aborting...

Offline

#11 2010-05-02 15:20:56

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: smbclient is still totally broken.

willtriv wrote:

what is this libTDB that the samba-3.5-git is looking for?

I have TDB installed on my system:

checking for LIBTDB... no
configure: error: Unable to find libtdb
make: *** No targets specified and no makefile found.  Stop.
==> ERROR: Build Failed.
    Aborting...

Can you go to src/samba and run the following commands, comparing with my ouput ?

[xavier@xps-m1530 samba (v3-5-test)]$ grep -A5 "checking for LIBTDB" source3/config.log  
configure:18857: checking for LIBTDB
configure:18865: $PKG_CONFIG --exists --print-errors "tdb >= 1.2.1"
configure:18868: $? = 0
configure:18883: $PKG_CONFIG --exists --print-errors "tdb >= 1.2.1"
configure:18886: $? = 0
configure:18934: result: yes

[xavier@xps-m1530 samba (v3-5-test)]$ pkg-config --exists --print-errors "tdb >= 1.2.1" ; echo $?
0

[xavier@xps-m1530 samba (v3-5-test)]$ cat /usr/lib/pkgconfig/tdb.pc 
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: tdb
Description: A trivial database
Version: 1.2.1
Libs: -L${libdir} -ltdb
Cflags: -I${includedir} 
URL: http://tdb.samba.org/

pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#12 2010-05-03 08:34:21

frosth
Member
Registered: 2010-02-13
Posts: 17

Re: smbclient is still totally broken.

shining wrote:
willtriv wrote:

what is this libTDB that the samba-3.5-git is looking for?

I have TDB installed on my system:

checking for LIBTDB... no
configure: error: Unable to find libtdb
make: *** No targets specified and no makefile found.  Stop.
==> ERROR: Build Failed.
    Aborting...

Can you go to src/samba and run the following commands, comparing with my ouput ?

[xavier@xps-m1530 samba (v3-5-test)]$ grep -A5 "checking for LIBTDB" source3/config.log  
configure:18857: checking for LIBTDB
configure:18865: $PKG_CONFIG --exists --print-errors "tdb >= 1.2.1"
configure:18868: $? = 0
configure:18883: $PKG_CONFIG --exists --print-errors "tdb >= 1.2.1"
configure:18886: $? = 0
configure:18934: result: yes

[xavier@xps-m1530 samba (v3-5-test)]$ pkg-config --exists --print-errors "tdb >= 1.2.1" ; echo $?
0

[xavier@xps-m1530 samba (v3-5-test)]$ cat /usr/lib/pkgconfig/tdb.pc 
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: tdb
Description: A trivial database
Version: 1.2.1
Libs: -L${libdir} -ltdb
Cflags: -I${includedir} 
URL: http://tdb.samba.org/

it not work. samba needs tdb>=1.2.2. you may try disable "external-tbd" in PKGBUILD but will be mess with dependency. needs add "tdb" to  "provides" array and pray. on my laptop it work pretty well. on my desk smbcli-3.5.2 work without this bug.

My mistake, on desk doesn't work too yikes

Last edited by frosth (2010-05-03 08:56:46)

Offline

#13 2010-05-03 08:56:57

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: smbclient is still totally broken.

Right sorry, my pkgbuild is buggy smile

  if [ -d $_gitname ] ; then
    cd $_gitname && git pull
    msg "The local files are updated."
  else
    git clone $_gitroot $_gitname
    git checkout -b v3-5-test origin/v3-5-test
  fi

I missed cd $_gitname after git clone. So checking out 3-5-test branch failed and you were using master branch.
3-5-test works with tdb 1.2.1 but master branch indeed requires 1.2.2.

I will fix the pkgbuild, but once the initial clone has been made, maybe it's easier if you just fix it manually :

cd src/samba/
git checkout -b v3-5-test origin/v3-5-test
cd ../..
makepkg

PS : just uploaded a fixed PKGBUILD that should work for everyone without the manual fix above. I just gave up creating a local branch, it's useless.

Last edited by shining (2010-05-03 09:04:47)


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#14 2010-05-04 23:39:31

Amine 7bal
Member
From: Tunis, Tunisia
Registered: 2009-06-05
Posts: 4

Re: smbclient is still totally broken.

Same problem here:

[amine@fullhd ~]$ smbclient -L 192.168.1.4
Enter amine's password: 
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.5.2]
Server requested LANMAN password (share-level security) but 'client lanman auth' is disabled
Erreur de segmentation

Any simple solution yet?

Offline

#15 2010-05-05 10:36:15

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: smbclient is still totally broken.

Amine 7bal wrote:

Any simple solution yet?

http://aur.archlinux.org/packages.php?ID=36688


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#16 2010-05-31 15:22:59

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: smbclient is still totally broken.

I suppose that's fixed in 3.5.3 now, which was packaged yesterday.
Can anyone confirm ?


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#17 2010-05-31 15:28:51

Woofie
Member
From: RK, Czech Rep.
Registered: 2009-12-28
Posts: 83

Re: smbclient is still totally broken.

It seams that 3.5.3 work for me now.


Sorry for my english. It's not my native language..

Offline

#18 2010-05-31 17:58:33

stefanwilkens
Member
From: Enschede, the Netherlands
Registered: 2008-12-10
Posts: 624

Re: smbclient is still totally broken.

using 3.5.2:

smbclient 3.5.2-1

    Sharename       Type      Comment
    ---------       ----      -------
    IPC$            IPC       IPC Service (serversteef)
    public          Disk      public
    downloads       Disk      Torrentflux Incomming

    Server               Comment
    ---------            -------
    PC-201004251325      
    SERVERSTEEF          serversteef
    USER-PC              
    WDTVLIVE             WDTV LIVE

    Workgroup            Master
    ---------            -------
    WERKGROEP            PCSTEEF
    WORKGROUP            SERVERSTEEF

Arch i686 on Phenom X4 | GTX760

Offline

#19 2010-06-02 02:00:49

shariebeth
Member
From: South Florida
Registered: 2010-04-27
Posts: 77

Re: smbclient is still totally broken.

Hmm I did the update last night (from smbclient 3.5.2-1 which worked fine for me) to 3.5.3-1 which isn't working anymore.  I spent all day trying to troubleshoot and finally found this thread. 
I am having problems with my HP Officejet 6310 (connected to a windows xp pc) printing from my arch laptop remotely.  It worked fine until this update, where the printer just hangs at "printing...." and messes up the whole network setup for printing until I reset/unplug/run HP diagnostic utility/etc.

So seeing this, I am not sure if I managed to find a work around for a broken smbclient before, if it's still broken but requiring a different workaround now, or fixed and I need to start over. hmm

I don't know what other logs to post or from where.  Any guidance is appreciated.
My smb.conf log which worked until last night:

[global]
workgroup=HOME
netbios name=arch
server string=Arch Linux Print Server
security=share
client lanman auth=Yes

[printers]
    comment=All Printers
    path=/var/spool/samba
    browseable=yes
    # to allow user 'guest account' to print.
    guest ok=yes
    writable=yes
    printable=yes
    create mode=0700
    write list=@adm root shariebeth

(The client lanman auth=Yes I added today while searching, after an error, to get the smbtree to print.)

Last edited by shariebeth (2010-06-02 02:20:17)

Offline

Board footer

Powered by FluxBB