problems with fs-cifs (again)

I’ve read the 5 dozen or so postings in this newsgroup on establishing a
share between QNX and WinNT w/cifs and have tried all suggestions
contained therein, but still cannot establish a successful connection.
I’m using QNX6.1 on an x86 PC (I started out trying to use fs-cifs
between my MIPS target and WinNT, but reverted back to an x86 to make
sure it wasn’t the MIPS target having troubles). I’m running SP6 on the
WinNT box.

The verbose output I get when trying to share “TEST” on the WinNT
machine with “share” on the QNX x86 PC is shown below. Aside from
sharing the directory “TEST” with everybody/full permissions on the NT
box, is there any other setup I need to do on the NT side? For
example, I installed NetBEUI as a network service (had no effect). One
of the previous postings mentioned adding the QNX box to the WinNT
boxes’ domain (don’t know how to do this) - is that necessary? I’ve
tried other command line arguments to fs-cifs (-a, -b, and also
supplying user and password on the command line) to no avail.

Is there anything else I can try? Any help is greatly appreciated.
-george


\

/usr/sbin/fs-cifs -l -vvv //georgeb:222.222.224.3:/test

/home/georgeb/share
fs-cifs: starting…
fs-cifs: user is to input both name & passwd.
fs-cifs: server [222.222.224.3] share [test] prefix
[/home/georgeb/share]
user [null] passwd [null]
Welcome: 222.222.224.3(:/test) → /home/georgeb/share
Username:georgeb
fs-cifs: user name: georgeb length 7

fs-cifs: new server
Password: mypassword
fs-cifs: establishing connection to 222.222.224.3:georgeb
fs-cifs: sending nb session request – 222.222.224.3:georgeb → cedric
fs-cifs: negotiating smb dialect
fs-cifs: smb connection successful
fs-cifs: security mode= USER
fs-cifs: maxpending= 50
fs-cifs: maxbuf= 4356 [1104]
fs-cifs: maxvcs= 1
fs-cifs: rawmode= READ/WRITE
fs-cifs: skey: 0 0 0 0, clen 8, bytec 8, 25 6c 71 fd e5 f7 6d bd
fs-cifs: logging georgeb on 222.222.224.3
fs-cifs: new packet
fs-cifs: returning: mid 0 status= 13
fs-cifs: smb_logon: Permission denied
fs-cifs: Plain setup failed. try LM …
fs-cifs: logging georgeb on 222.222.224.3
fs-cifs: returning: mid 1 status= 5
fs-cifs: smb_logon: Input/output error
fs-cifs: LM setup failed. try NT …
fs-cifs: logging georgeb on 222.222.224.3
fs-cifs: returning: mid 2 status= 13
fs-cifs: smb_logon: Permission denied
fs-cifs: NT setup failed: all try failed.
fs-cifs: setup failed – using guest account
fs-cifs: mounting 222.222.224.3:/test
fs-cifs: returning: mid 3 status= 5963778
fs-cifs: smb_mount: Bad file descriptor
fs-cifs: mounting 222.222.224.3:/TEST
fs-cifs: returning: mid 4 status= 5963778
fs-cifs: smb_mount: Bad file descriptor
fs-cifs: mounting 222.222.224.3:/TEST
fs-cifs: returning: mid 5 status= 5963778
fs-cifs: smb_mount: Bad file descriptor
fs-cifs: mounting 222.222.224.3:/TEST
fs-cifs: returning: mid 6 status= 5963778
fs-cifs: smb_mount: Bad file descriptor
fs-cifs: smb_connection returning FALSE
fs-cifs: io_mount: smb_connection failed: Bad file descriptor
io_mount: Bad file descriptor
fs-cifs: user is to input both name & passwd.
/usr/sbin/fs-cifs: missing arguments, or all mount attempts failed.

In article <3E252BCA.CAF0D0E7@earthlink.net>, George Broz wrote:

--------------C63EF2D7E486DE020FBE9412
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I’ve read the 5 dozen or so postings in this newsgroup on establishing a
share between QNX and WinNT w/cifs and have tried all suggestions
contained therein, but still cannot establish a successful connection.
I’m using QNX6.1 on an x86 PC (I started out trying to use fs-cifs
between my MIPS target and WinNT, but reverted back to an x86 to make
sure it wasn’t the MIPS target having troubles). I’m running SP6 on the
WinNT box.

The verbose output I get when trying to share “TEST” on the WinNT
machine with “share” on the QNX x86 PC is shown below. Aside from
sharing the directory “TEST” with everybody/full permissions on the NT
box, is there any other setup I need to do on the NT side? For
example, I installed NetBEUI as a network service (had no effect).

Bad idea. That’s THE most insecure protocal known.

One
of the previous postings mentioned adding the QNX box to the WinNT
boxes’ domain (don’t know how to do this) - is that necessary? I’ve
tried other command line arguments to fs-cifs (-a, -b, and also
supplying user and password on the command line) to no avail.

Is there anything else I can try? Any help is greatly appreciated.

fs-cifs: returning: mid 0 status= 13
fs-cifs: smb_logon: Permission denied

This is the crux of your problem.
The NT box is refusing to allow access for the user.
It’s a user log-on problem.

fs-cifs: Plain setup failed. try LM …
fs-cifs: logging georgeb on 222.222.224.3
fs-cifs: returning: mid 1 status= 5
fs-cifs: smb_logon: Input/output error
fs-cifs: LM setup failed. try NT …
fs-cifs: logging georgeb on 222.222.224.3
fs-cifs: returning: mid 2 status= 13
fs-cifs: smb_logon: Permission denied
fs-cifs: NT setup failed: all try failed.
fs-cifs: setup failed – using guest account

Now, it’s gonna try guest, since by default NT provides
very little security for guest, just restricts some things,
but completely bypasses any resemblence to log-on security.

fs-cifs: mounting 222.222.224.3:/test
fs-cifs: returning: mid 3 status= 5963778
fs-cifs: smb_mount: Bad file descriptor

Guest successfully logged on, but there are problems
with the way that the “share” is shared in the NT
configuration.

I’m not an NT admin, so can’t help you with the particulars
of how to set up a microsoft box.
With Samba ( which emulates an NT server on a *nix system )
it all works as designed, but an actual Micro$oft box is
a whole 'nother can of worms.

Methinks that if you do have a Samba server someplace, you’ll
find that there’s nothing wrong with what you’re doing
on the qnx box, the problem is at the Microsoft box.

Of course, I could be worng…

\

Cowboy

I have a very good DENTAL PLAN. Thank you.

Fixed it. FYI for anyone having difficulties here: my problem was that a local user profile was stored on the NT box with a different password than the user profile setup for the LAN. When the passwords were made the same through (NT → User Manager) I was able to create the share.

Also FYI - my NT box was running SP6; I de-installed NetBEUI (since all of the SMB services are contained in the “workstation” and “server” network services, not NetBEUI; and the share worked for both a QNX PC on our LAN, and for my target QNX box which is connected to its own network card on the NT box, separate from the network card that connects the PC to the LAN.

-george

“George Broz” <gbroz@earthlink.net> wrote in message news:3E252BCA.CAF0D0E7@earthlink.net
I’ve read the 5 dozen or so postings in this newsgroup on establishing a share between QNX and WinNT w/cifs and have tried all suggestions contained therein, but still cannot establish a successful connection. I’m using QNX6.1 on an x86 PC (I started out trying to use fs-cifs between my MIPS target and WinNT, but reverted back to an x86 to make sure it wasn’t the MIPS target having troubles). I’m running SP6 on the WinNT box.
The verbose output I get when trying to share “TEST” on the WinNT machine with “share” on the QNX x86 PC is shown below. Aside from sharing the directory “TEST” with everybody/full permissions on the NT box, is there any other setup I need to do on the NT side? For example, I installed NetBEUI as a network service (had no effect). One of the previous postings mentioned adding the QNX box to the WinNT boxes’ domain (don’t know how to do this) - is that necessary? I’ve tried other command line arguments to fs-cifs (-a, -b, and also supplying user and password on the command line) to no avail.

Is there anything else I can try? Any help is greatly appreciated.
-george


\

/usr/sbin/fs-cifs -l -vvv //georgeb:222.222.224.3:/test /home/georgeb/share

fs-cifs: starting…
fs-cifs: user is to input both name & passwd.
fs-cifs: server [222.222.224.3] share [test] prefix [/home/georgeb/share]
user [null] passwd [null]
Welcome: 222.222.224.3(:/test) → /home/georgeb/share
Username:georgeb
fs-cifs: user name: georgeb length 7

fs-cifs: new server
Password: mypassword
fs-cifs: establishing connection to 222.222.224.3:georgeb
fs-cifs: sending nb session request – 222.222.224.3:georgeb → cedric
fs-cifs: negotiating smb dialect
fs-cifs: smb connection successful
fs-cifs: security mode= USER
fs-cifs: maxpending= 50
fs-cifs: maxbuf= 4356 [1104]
fs-cifs: maxvcs= 1
fs-cifs: rawmode= READ/WRITE
fs-cifs: skey: 0 0 0 0, clen 8, bytec 8, 25 6c 71 fd e5 f7 6d bd
fs-cifs: logging georgeb on 222.222.224.3
fs-cifs: new packet
fs-cifs: returning: mid 0 status= 13
fs-cifs: smb_logon: Permission denied
fs-cifs: Plain setup failed. try LM …
fs-cifs: logging georgeb on 222.222.224.3
fs-cifs: returning: mid 1 status= 5
fs-cifs: smb_logon: Input/output error
fs-cifs: LM setup failed. try NT …
fs-cifs: logging georgeb on 222.222.224.3
fs-cifs: returning: mid 2 status= 13
fs-cifs: smb_logon: Permission denied
fs-cifs: NT setup failed: all try failed.
fs-cifs: setup failed – using guest account
fs-cifs: mounting 222.222.224.3:/test
fs-cifs: returning: mid 3 status= 5963778
fs-cifs: smb_mount: Bad file descriptor
fs-cifs: mounting 222.222.224.3:/TEST
fs-cifs: returning: mid 4 status= 5963778
fs-cifs: smb_mount: Bad file descriptor
fs-cifs: mounting 222.222.224.3:/TEST
fs-cifs: returning: mid 5 status= 5963778
fs-cifs: smb_mount: Bad file descriptor
fs-cifs: mounting 222.222.224.3:/TEST
fs-cifs: returning: mid 6 status= 5963778
fs-cifs: smb_mount: Bad file descriptor
fs-cifs: smb_connection returning FALSE
fs-cifs: io_mount: smb_connection failed: Bad file descriptor
io_mount: Bad file descriptor
fs-cifs: user is to input both name & passwd.
/usr/sbin/fs-cifs: missing arguments, or all mount attempts failed.