• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

**Problem Fixed** I can't get Linux to access my Windows XP FAT32 network shares, can anyone help?

trmiv

Lifer
I am trying to access some FAT32 shares on my XP box from Linux (Mandrake 8.1), but so far its a no go. I can access the Windows 98 machine that is on my network just fine from Linux. I can use the console and type "smbclient //computername/sharename" and boom, I'm on the computer. Plus I can just type "smb://computername/sharename" in Konqueor and it works too.

But, I have had no luck accessing my FAT32 shares on my XP box. The 98 box can access the XP box fine, so I know it is allowing connections. When I type "smbclient //computername/sharename" at the command prompt I get:

added interface ip=192.168.1.4 bcast=192.168.1.255 nmask=255.255.255.0
Got a positive name query response from 192.168.1.2 (192.168.1.2)


Then is prompts me for a password. Now on the XP machine I have no password, so I press enter, and I get:

Domain=[MyLastName] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
session setup failed: ERRDOS - ERRnoaccess (Access denied.)

I've even tried putting a password on my default XP account and entering that when it asks for a password and that doesn't work. I tried enabling the guest account on XP too. Its obvious the Linux machine and the XP machine see each other, and samba works fine accessing the 98 machine, but I can't get the XP machine to allow the connection. Anyone have any ideas?
 
You have to tell smbclient which username to use since XP has real accounts unlike Win98. 'smbclient //box/share -U username' should work, it just did for me from my ultrasparc running Linux to my XP laptop.
 
Anything int he log files for either machine? Can the XP machine access a Linux share? Are you using the smae username on each system?

EDIT: Nothinman mentioned my thought before I did, but I thought SAMBA would pass on your username if none was specified...
 
but I thought SAMBA would pass on your username if none was specified...

From the manpage: Sets the SMB username or username and password. If %pass is not specified, The user will be prompted. The client will
first check the USER environment variable, then the LOGNAME variable and if either exists, the string is uppercased.
Anything in these variables following a '%' sign will be treated as the password. If these environment variables are
not found, the username GUEST is used.


So it should, but that doesn't mean his Linux username is the same as his XP username.
 


<< but I thought SAMBA would pass on your username if none was specified...

From the manpage: Sets the SMB username or username and password. If %pass is not specified, The user will be prompted. The client will
first check the USER environment variable, then the LOGNAME variable and if either exists, the string is uppercased.
Anything in these variables following a '%' sign will be treated as the password. If these environment variables are
not found, the username GUEST is used.


So it should, but that doesn't mean his Linux username is the same as his XP username.
>>



I guess I should have read the manpage, but if you notice that was the last part of my original post 😛
 


<< You have to tell smbclient which username to use since XP has real accounts unlike Win98. 'smbclient //box/share -U username' should work, it just did for me from my ultrasparc running Linux to my XP laptop. >>



I should have mentioned that I tried that, it didn't work. I tried -U guest for the guest account on XP -U "my name", which is the account name I use. My name has a space in it though, would that make a difference?
 
I also forgot to mention in my first post that right above the part that says:

Domain=[MyLastName] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
session setup failed: ERRDOS - ERRnoaccess (Access denied.)

It says:

Anonymous login successful


EDIT: Hmmmm, now I just went into the Local Security settings of XP and went to Local Policies, and then to Security Options, then on the item labeled "Network Access: Shares that can be accesses anonymously" and added the share that I am trying to access from Linux (right now a temp share named "share"), and the error message in Linux changed to:
"tree connect failed: ERRDOS - 71"
 
Yes!! I figured it out. I created a user on the Windows XP system with a password and it allowed me to connect. Even though my main account has no password, it refused to connect without using a password. Funny thing is, even if I go back and add a password to my main account, it won't let me log onto it. Maybe Linux doesn't like the space in the username of my main account in XP.
 
Back
Top