Operating System - HP-UX
1824218 Members
3577 Online
109669 Solutions
New Discussion юеВ

Re: smbclient-error "find: bad option -maxdepth" on HP-UX

 
SOLVED
Go to solution

smbclient-error "find: bad option -maxdepth" on HP-UX

Hi.

I've installed HP:s CIFSclient on a HP-UX 11i node from where I put files to a NT-share with the smbclient command and it works fine on that node. Now I do the same thing on two other HP-UX-nodes and I get the error "find: bad option -maxdepth" then I try to use smbclient exactly in the same way and with the same files on these node. Has anyone an ide? I am stuck.

Kindly, Lena Stahl
6 REPLIES 6
Darren Prior
Honored Contributor

Re: smbclient-error "find: bad option -maxdepth" on HP-UX

Hi Lena,

I haven't seen that error before! Are you running the same version of the client on all 3 nodes?

It would also be useful if you could post the exact commands you used & their responses.

regards,

Darren.
Calm down. It's only ones and zeros...

Re: smbclient-error "find: bad option -maxdepth" on HP-UX

Hi.

You are right. I have different versions of the smbclient binary, even if I have installed them from the same depot. One of them must have come from some other installation (OS-patch install 11i dec 2003?). On the node it works the binary is: "485057Oct 10 2000 /opt/samba/bin/smbclient" and on the other it is: "499712 Jun 21 2001 /opt/samba/bin/smbclient". So the newer one does not seem to work. I try to find out what has happend on our nodes... :-)

Lena
Darren Prior
Honored Contributor
Solution

Re: smbclient-error "find: bad option -maxdepth" on HP-UX

Hi Lena,

Running swlist -l fileset | grep -i cifs will show you the CIFS server and client versions, so it's worth running that on each node. I'm not sure, but I'd imagine that smbclient is actually part of the CIFS server software (the CIFS client is used if you use cifsmount or mount -F cifs, whereas smbclient is more like an ftp style interface.)

If you suspect that the newer version of smbclient has a problem and you have a valid HP software contract then I'd suggest that you log a software call to get this investigated.

regards,

Darren.
Calm down. It's only ones and zeros...

Re: smbclient-error "find: bad option -maxdepth" on HP-UX

Hi.

You seems to be right again! The smbclient belongs to the CIFS-Server and not to the CIFS-client and I have different versions of the CIFS-Server. The one I get to work is v A.01.04 and the one that does not work is A.01.07. What happens is (I put x:s instead of read stuff in this description):

/home/lena# /opt/samba/bin/smbclient \\\\xxxx\\xxxxx$ xxxx -U xxxx -c "prompt;mput *.txt"
added interface ip=151.156.192.36 bcast=151.156.192.255 nmask=255.255.255.0
added interface ip=192.168.192.36 bcast=192.168.192.255 nmask=255.255.255.0
Domain=[EUR] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]
prompting is now off
find: bad option -maxdepth
ekoz:/home/lena#

For me it seems that the find command is using the option maxdepth and that's not supported, or?

Lena
Darren Prior
Honored Contributor

Re: smbclient-error "find: bad option -maxdepth" on HP-UX

Hi Lena,

Well, both versions of the CIFS server that you are running are quite old! The latest version is A.01.11 which is available from http://software.hp.com

It's quite likely that this problem has been fixed in the newer version. Even if it hasn't, I'd suggest you'd upgrade for 2 main reasons:

1) version prior to A.01.09.04 (I think) have security bulletins on them for security related issues.

2) if a fix to the smbclient is provided, it will be released with the latest version rather than an old version.

regards,

Darren.
Calm down. It's only ones and zeros...

Re: smbclient-error "find: bad option -maxdepth" on HP-UX

Hi Darren,

And many thanks for your help. I have downloaded and installed CIFS-Server v A.01.11 and it's smbclient works fine now. I am pleased. :-))

Thanks, Lena