Discussion:
smbclient
Brian Fernald
2003-12-01 17:08:34 UTC
Permalink
I am receiving this error randomly when using smbclient to access pc
shares :

FINDFIRST gave ERRSRV - (Non-specific error code.)

I use smbclient with Amanda to backup pc shares. For amanda to work, it
uses smbclient to recursively scan through the entire directory tree and
get total MB size of each directory. The problem is that when trying to
enter some directories it gives the above error and then skips the
directory all together. Does anyone know what causes this?

Brian Fernald
***@nsi.edu
Jason Gauthier
2003-12-01 17:08:58 UTC
Permalink
I've installed samba, and got it running as a server just fine, but i can't get
my client to do anything!

using 2 hosts that are setup and are currently sharing and mounting each
other, i try to access either or...
one is 207.90.74.123 and the other is 207.90.74.13

the command i type for the first is:
./smbclient -I 207.90.74.123 -L 207.90.74.123

and i receive:

Added interface ip=207.90.74.12 bcast=207.90.74.255 nmask=255.255.255.0
Session request failed (131,130) with myname=ABYSSMAL destname=207.90.74.123
Called name not present
Try to connect to another name (instead of 207.90.74.123)
You may find the -I option useful for this


So i try the other host (which can mount my machine without a problem) with:
./smbclient -I 207.90.74.13 -L 207.90.74.13
and i receive:

Added interface ip=207.90.74.12 bcast=207.90.74.255 nmask=255.255.255.0
Session request failed (131,143) with myname=ABYSSMAL destname=207.90.74.13
Unspecified error 0x8F
Your server software is being unfriendly

er... I'd really apprecaite any help i can get with these machines....
thanks!

Jason
Brian Lalor
2003-12-01 17:08:58 UTC
Permalink
Post by Jason Gauthier
/smbclient -I 207.90.74.123 -L 207.90.74.123
The argument to -L is supposed to be a symbolic name, ie "computer". If
"computer" doesn't resolve from the host's lookup methods, then use the -L
option and the -I option to point it to the proper IP.

If computer's IP is 10.0.0.1, then you'd do "smbclient -L computer -I
10.0.0.1"

B
_____________________________________________________________________________
B r i a n L a l o r ***@hcirisc.cs.binghamton.edu
http://hcirisc.cs.binghamton.edu/~blalor Spam me and die.
To get my pgp key, put "get pgp key" in the subject of your message

Coach: How about a beer, Norm?
Norm: Hey I'm high on life, Coach. Of course, beer is my life.
-- Cheers, No Help Wanted
Marco Schmidt
2003-12-01 17:09:30 UTC
Permalink
Perhaps somebody can give me a hint ...

I tried to connet via smbclient (1.9.18p2) to a shared resource on NT4
server, but all I get is : ERRnoaccess (Access denied.)

I had several ideas where I made a mistake:
1. Password wrong
2. Username wrong
3. Servicepack
4. EnablePlainPassword
5. Permissions
I tried, but always: ERRnoaccess (Access denied.)

In the next step I tried to connect to another NT Maschine and there
was no problem! I checked the configuration of the two machines, but
it seems there is no difference.

Next I tried an older version of smbclient (1.9.17p4) and there
was no problem! Some changes in encryption ? ("-d 3" shows, that
it is not "Using encrypted passwords". Version 1.9.18p2 does!)

My platform is solaris 2.5. smbd (1.9.18p2) works okay. I am not using
smbpasswd. I tried also version 1.9.18p3, but no difference.

Question:
What is different between 1.9.18p2 and 1.9.17p4 that causes this problem?
What can I do ?
It seems this could be a configuration problem on the NT4 server machine,
any ideas ?

Thanks for your help ...

Marco

+-----------------------------------------------------------+
|Marco Schmidt Datenbank & Systemadministrator|
|Institut fuer Informationssysteme |
|ETH Zentrum Tel: +41-1-632-7253|
|CH-8092 Zuerich Fax: +41-1-632-1172|
|Switzerland ***@inf.ethz.ch|
+-----------------------------------------------------------+
Marco Schmidt
2003-12-01 17:09:31 UTC
Permalink
I got the answer !

The problem was the WORKGROUP name.
Smbclient does not look in the smb.conf (right?) for the workgroup
name. Now I recompiled with the right workgroup name in "Makefile"
or I use the "-W" flag with smbclient.

My older version of smbclient was compiled with this.
The machine which gave me access was a backup domain controller
and all connections are done via the domainname.

Marco
Peter.Lingen at wrh.acab.alcatel.de ()
2003-12-01 17:12:19 UTC
Permalink
the command smbclient /winnt40/share -N -TcXg ........ returns all files, even those with arch. bit not set. why?

Mit freundlichen Gr??en

NCI/Lingen

Tel: 02166 /27 2646
eMail: ***@wrh.acab.alcatel.de
Gregor Dicke
2003-12-01 17:16:51 UTC
Permalink
Hi!

I wants to connect to a fileserver of an AS400.
I use the command:

smbclient \\\\maschine\\PDF pass -U Admin

Now I'm connected to the maschine

smb: \> dir
. DA 0 Mon Sep 11 15:19:40 2000
. DA 0 Wed Jun 21 15:25:22 2000
M DA 0 Tue Sep 12 10:59:26 2000
d DA 0 Tue Jul 18 17:20:00 2000
d DA 0 Tue Jul 18 17:23:19 2000
D A 0 Tue Jul 18 17:19:27 2000
F A 0 Tue Jul 18 17:24:54 2000
Z A 254 Fri Jul 21 17:04:02 2000
Z A 20480 Fri Jul 21 13:43:03 2000
M A 1409024 Fri Sep 25 23:09:32 1998
O A 463072 Mon Dec 28 15:44:38 1998
G DA 0 Thu Sep 7 14:58:24 2000
N A 0 Mon Sep 11 15:19:40 2000
Z A 353 Mon Sep 11 11:31:05 2000

After using the "dir" or the "ls" command I see the list above. But it isn't correct, because there is only the first
letter of an folder or an file to see.

Now my Question:

Is this a samba or an AS400 BUG that I can see only the first letter?!

Thank you for helping me!

Michael

-------------- next part --------------
HTML attachment scrubbed and removed
Andrew Galdes
2003-12-01 17:38:04 UTC
Permalink
while trying to view the shares on a machine accross the net with smbclient,
i get the following:

[***@andrew andrew]# smbclient -L //x.x.x.x
added interface ip=192.168.0.1 bcast=192.168.0.255 nmask=255.255.255.0
session request to x.x.x.x failed (Called name not present)
session request to x failed (Called name not present)
session request to *SMBSERVER failed (Called name not present)
[***@andrew andrew]#

can i share folders and files with a win machine on the net?

or an i only able to do this on the local subnet?

cheers,
andrew galdes
iblden
2003-12-01 17:38:12 UTC
Permalink
Hello all,

I am using Samba version 1.9.16p11 on IBM AIX 4.3

I am attempting to use smbclient to notify users
accessing a samba shared drive off the AIX server when
the server is being shut down. The smbclien command
with the -M option was suggested for this however when
i attempt to issue this i get the following:

smbstatus

Samba version 1.9.16p11
Service uid gid pid machine
----------------------------------------------
ortho1 guest usr 5708 gis_lab2
(169.156.61.80) Mon Mar 12 10:55:36 2001
ortho1 guest usr 18332 signal_cad3
(169.156.63.192) Mon Mar 12 10:58:41 2001
ortho1 guest usr 19610 bethel
(169.156.61.181) Mon Mar 12 11:01:24 2001
ortho1 guest usr 19870 svosburg
(169.156.61.204) Mon Mar 12 11:09:17 2001
ortho1 guest usr 20134 pc-tr9
(169.156.63.237) Mon Mar 12 11:13:26 2001
Mike Fedyk
2003-12-01 17:38:12 UTC
Permalink
Post by iblden
Hello all,
smbstatus
Samba version 1.9.16p11
Service uid gid pid machine
----------------------------------------------
ortho1 guest usr 5708 gis_lab2
(169.156.61.80) Mon Mar 12 10:55:36 2001
smbclient -M gis_lab2
Added interface ip=169.156.61.63 bcast=169.156.255.255
nmask=255.255.0.0
Get_Hostbyname: Unknown host GIS_LAB2.
Try nmblookup gis_lab2 did you get a response?

It is trying to do a dns lookup for gis_lab2, so make sure your lookup order
is correct, and check that broadcast address too.

Mike
prithu srivastava
2003-12-01 17:44:41 UTC
Permalink
hi guys,
o.k now, i am just a starter in the field,can
somebody guide me (in detail please)on how to go about
making a samba client.


prithu

__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com
Joel Hammer
2003-12-01 17:44:41 UTC
Permalink
Read the free book that comes with the samba distribution.
Joel
Post by prithu srivastava
hi guys,
o.k now, i am just a starter in the field,can
somebody guide me (in detail please)on how to go about
making a samba client.
prithu
spiekey
2003-12-01 17:45:19 UTC
Permalink
Hello!
I want to send an Popup Message to y NT Client. But it won?t work:
My faxserver is not a domain master or something.

***@faxserver:/share# smbclient -M munich.sun.local
SSL: Error error setting CA cert locations:
error:00000000:lib(0):func(0):reason(0)
trying default locations.
added interface ip=192.168.10.53 bcast=192.168.10.255 nmask=255.255.255.0
session request failed

i am using samba 2.2.1a and slackware8, kernel 2.4.13

What could the problem be?

Thanks!
Spiekey
Michael Collins
2003-12-01 18:32:42 UTC
Permalink
I am trying to setup samba ver 2.2.2-hppa1.1-hp-hpux11.00.tar so that i can attach a unix share to a windown xp and windows 2000 workstation, when i try and run :
smbcleitn -L computername -N
i get:
added interface ip=172.27.20.34 bcast=172.27.20.255 nmask-255.255.255.0
session request to 172.27.112.187 failed (Calledname not present)
session request to 172 faile (Called name not present)
anonymous login successful
doman=[junk] os=[windows5.1] server=[windows 2000 lan Manager]
sharename type comment
error returning browse list: errdos - errnoaccess (access denied)


anyone have any direction for me to go into next the diagnostic web page doesnt have this listed in it??
please help
thnxs


Michael E. Collins



-------------------------------------------------------------------->
Confidentiality Notice:
This message and the accompanying documents or attachments may
contain information which is privileged and/or confidential.
If you are not the intended recipient, you may not review, discuss,
disclose, copy, or distribute the contents of this message.
If you have received this information in error, please immediately
contact the Kettering Medical Center Network Department whose number
is listed on the message and destroy all evidence of this
correspondence.
Mark Petryk
2003-12-01 18:33:18 UTC
Permalink
This is going to sound like a rediculously dumb question, but I have just
finished reloaing RedHat 7.2 (from 7.1), a clean install, and samba appears
to be running, but I cannot log into my shares. I am rejected with a "bad
password - name/password pair..."

Now, I've been though this setup a dozen times before, I have a very garden
variety configuration, and my shared directory not only exists, but has 777
permissions. I've added the user to both Linux and to smbpasswd, as
prescribed, but for some reason I cannot fathom, smbclient won't even access
the share. I can 'smbclient -NL hp' and that reports that the share exists,
but when I attempt to log into the share, I'm kicked out.

Where else should I be looking? I'm completely Stumped.
Joel Hammer
2003-12-01 18:33:18 UTC
Permalink
I am very bad with password questions because I avoid all such things
by using guest ok = yes and guest account = ftp and security = share in
my global smb.conf section.

If you go this route, you might need to change security in each of your
shares, too. Don't know.

Joel
Post by Mark Petryk
This is going to sound like a rediculously dumb question, but I have just
finished reloaing RedHat 7.2 (from 7.1), a clean install, and samba appears
to be running, but I cannot log into my shares. I am rejected with a "bad
password - name/password pair..."
Now, I've been though this setup a dozen times before, I have a very garden
variety configuration, and my shared directory not only exists, but has 777
permissions. I've added the user to both Linux and to smbpasswd, as
prescribed, but for some reason I cannot fathom, smbclient won't even access
the share. I can 'smbclient -NL hp' and that reports that the share exists,
but when I attempt to log into the share, I'm kicked out.
Where else should I be looking? I'm completely Stumped.
--
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba
Ria
2003-12-01 18:42:41 UTC
Permalink
Hi!!
I'm having a slight problem here
This is the scenario
W2K and NT can access samba server.
Samba client cant access W2K and NT shares.
Gets an error message "NT_STATUS_LOGON_FAILURE"

Note..Samba can list its own shares using smbclient but not of W2K
and
NT.

smbclient -L <W2K-PDC> -U administrator
lists all the machines in the domain but not the shares.

NOTE: Samba is not added to the Domain (i.e. smbpasswd -j..... has
not
yet been run)

Plz help

regards,
ria
Pdirt
2003-12-01 19:03:31 UTC
Permalink
Hello...I searched through at samba.org on this, and posted to
blfs-support...thought I would try hear as I keep searching...

is there a way tojust install smbclient ...like from the samba source...

like a make --smbclient install or something?

I realize the client may require some libs of the server, can we pass that
to the make as a param as well? liuke a --libexec=X pr lib=...

I am building linux appliance and juts wnat to access shares from the
appliance to windows smb shares... not vice versa...
my OS runs in RAM only so I have limited space....

Thanks

P
sigfried and roy
2003-12-01 19:03:42 UTC
Permalink
has anyone experienced this type of error before?
im using smb to connect to a nt server for backup. it works sometimes perfectly but also gives this error othertimes?



/-- dilga.cbio //cytopia01/users lev 1 STRANGE
sendbackup: start [dilga.cbio.cytopia.com.au://cytopia01/users level 1]
sendbackup: info BACKUP=/usr/bin/smbclient
sendbackup: info RECOVER_CMD=/bin/gzip -dc |/usr/bin/smbclient -f... -
sendbackup: info COMPRESS_SUFFIX=.gz
sendbackup: info end
? SUCCESS - 0 opening remote file \andrew\Apple stuff\ppslides complete.ppt (\andrew\Apple stuff\)
? SUCCESS - 0 opening remote file \andrew\Apple stuff\Presentation1.ppt (\andrew\Apple stuff\)
? SUCCESS - 0 opening remote file \andrew\Apple stuff\prostate 1.doc (\andrew\Apple stuff\)
? SUCCESS - 0 opening remote file \andrew\Apple stuff\prostate 3.doc (\andrew\Apple stuff\)
? SUCCESS - 0 opening remote file \andrew\Apple stuff\prostate 4.doc (\andrew\Apple stuff\)
? SUCCESS - 0 opening remote file \andrew\Apple stuff\prostate cancer.doc (\andrew\Apple stuff\)
? SUCCESS - 0 opening remote file \andrew\Apple stuff\prostate2.doc (\andrew\Apple stuff\)
Dragan Krnic
2003-12-01 19:03:34 UTC
Permalink
Post by Pdirt
is there a way tojust install smbclient ...like from
the samba source...
Of course. samba-client is always a separate RPM but you do need the following libraries:

# ldd $(which smbclient)
libreadline.so.4 => /lib/libreadline.so.4
libncurses.so.5 => /lib/libncurses.so.5
libacl.so.1 => /lib/libacl.so.1
libcups.so.2 => /usr/lib/libcups.so.2
libssl.so.0.9.6 => /usr/lib/libssl.so.0.9.6
libcrypto.so.0.9.6 => /usr/lib/libcrypto.so.0.9.6
libnsl.so.1 => /lib/libnsl.so.1
libpam.so.0 => /lib/libpam.so.0
libldap.so.2 => /usr/lib/libldap.so.2
libpopt.so.0 => /usr/lib/libpopt.so.0
libc.so.6 => /lib/libc.so.6
libdl.so.2 => /lib/libdl.so.2
libattr.so.1 => /lib/libattr.so.1
liblber.so.2 => /usr/lib/liblber.so.2
libresolv.so.2 => /lib/libresolv.so.2
libsasl2.so.2 => /usr/lib/libsasl2.so.2
/lib/ld-linux.so.2 => /lib/ld-linux.so.2

if you need all that pam, sam, ldap, etc.
Post by Pdirt
like a make --smbclient install or something?
Perhaps it's also possible, but why don't you do
like Michelangelo did when he chipped away all
that wasn't David from that slab of Carrara.
Build the whole thing and then throw away all
but the above libs and smbclient itself.
Post by Pdirt
I realize the client may require some libs of the
server, can we pass that to the make as a param as
well? liuke a --libexec=X pr lib=...
I dunno. Perhaps, did you read the README.1ST file?
Me neither.
Post by Pdirt
I am building linux appliance and juts wnat to
access shares from the appliance to windows smb
shares... not vice versa... my OS runs in RAM
only so I have limited space....
Don't exaggerate with parsimony. The above listing of
lib dependencies is for a full-fledged pam, sam,
ldap and puff-capable client. If you build a less
general samba & client most of those libs won't
be necessary and some might be part of the rest of
your Linux environment anyway.

Experiment on a vanilla PC and see how far you can
chip away a samba installation and still be able
to access an SMB server. Good lcuk.


____________________________________________________________
Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005
Dragan Krnic
2003-12-01 19:03:34 UTC
Permalink
<SNiplle>
Post by Dragan Krnic
Post by Pdirt
is there a way tojust install smbclient ...like
from the samba source...
Of course. samba-client is always a separate RPM
------8<-----------8<------------8<-----------------
Post by Dragan Krnic
Experiment on a vanilla PC and see how far you can
chip away a samba installation and still be able
to access an SMB server. Good lcuk.
<snipage>
Thanks ... will do... smbmount as well.... smbmount
totally rules btw!
P
I know P, it's so kewl I sometimes I forget to
smbdimsount :-)



____________________________________________________________
Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005
Charles Hessifer
2003-12-01 19:06:04 UTC
Permalink
Hoping someone on this list can provide me with a little insight. I am
attempting to use "smbclient -L systemname -U username -W domainname"
from both a MAC OS X and FreeBSD system and get the following message:

Session setup failed: NT_STATUS_LOGON_FAILURE

However if I execute the same command on my Linux system a have no
problems? I have checked all network settings name resolution and all of
it is configured correctly.

Has anyone else run into this?

Thanks,

CH

Note: The information contained in this message may be privileged and confidential and thus protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you.
ggrov7 at eq.edu.au ()
2003-12-01 19:07:19 UTC
Permalink
I have pam, mit kerberos, openldap and samba3 beta. Samba was installed with smbwrapper, dce-dfs, ads, smbmount, pam, libsmbclient, acl-support, windbind, krb5 and ldap options.

i have tested mit kerberos, i have joined the samba server to the domain and have run nmbd smbd and winbindd.

When I test samba with smbclient -L <samba server> -U <ANY USER ON DOMAIN CONTROLLER>, I then enter the correct pasword then linux comes back with a error of: session setup failed: NT_STATUS_LOGON_FAILURE.

If I use the smbclient and specify a local user on my samba server, it works. If I enter no password it works. I also have another samba server (call it samba2) currently used by the network (the samba server is to replace it), if I use the samba server and smbclient like before to the samba2 server, using a samba2 local account name, it works.

I need the samba server to authenticate users from my DC. Why am I getting this error, in the smb.conf it has realm = <DOMAIN>, security = ads, windbind use default domain = yes, encrypt passwords = yes, password server = <dc.domain>. As well as many more options. Can someone help me to get my samba server to authenicate to the win2000 DC please.
Loading...