Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows 98se cannot access Samba shares 1

Status
Not open for further replies.

BA1010

Programmer
May 20, 2003
5
US
Hi,

I seem to have a peculiar problem that does not fit the remidies I have found in this and other forums. I have three machines on a local network, a Redhat 7.3, a Win2k and a Win98se. Samba is setup with the smb.conf here:

# Global parameters

workgroup = home
netbios name = Samba
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd

[homes]
read only = no
browseable = no

[music]
path = /usr/data/mp3
browseable = yes
write list = UserA, UserB

[everyone]
path = /usr/data/everyone
read only = no
browseable = yes

[apps]
path = /usr/data/apps
browseable = yes
valid users = @admins, root, UserA
write list = @admins, root, UserB

The Win2k machine has no problem finding and using the shares on the SAMBA machine. This includes the "home" directory /home/UserA. The Win98se machine however does have a problem.

The Win98se machine is setup so that individual users can customize their own profiles. The user name and password used on startup of the Win98se machine are the same as was used to create the /home directory on the SAMBA machine. This includes using smbpasswd to create the SAMBA password. Use encrypted passwords is set up in smb.conf and I made sure that the EnablePlainTextPassword is not set to "1" in the registry. In fact the tag is not even in the registry (did full search for the tag). What happens is when I look into the network neighborhood on the Win98se machine I see the SAMBA machine. Double cliking on its icon shows three shares (music, everyone, apps) but not the UserB home directory. When I try to explore any of the shares (say for instance music), I get a dialog box stating:

"You must supply a password to make this connection."
Resource: \\SAMBA\MUSIC
Password:_______________________

On entering the UserB password I get:

"The password is incorrect, Try again"

At this point nothing works for a password.

It seems to me that the machine is at least recognized because I can view the names of the shares. I tried an experiment logging into the Win98se machine with a different user name. At that point the network neighborhood shows the SAMBA machine but double clicking on it brings up this dialog:

"You must supply a password to make this connection."
Resource: \\SAMBA\IPC$
Password:_______________________

I would expect something like this as the user is not known to the SAMBA machine.

Any help would be appreciated.
Regards,
BA1010
 
You're on the right track - samba doesn't understand/recognize the user of the win98 machine. How are the multiple users of the 98 machine able to customize thier profiles?

If I'm following correctly, when started, the 98 machine logs onto the network with a username (UserB) & password. Then the users sit at the 98 machine and enter a username (and password maybe) to load their customized profile? But you want the 98 machine to access samba the same way (the network user & password - UserB), no matter which individual user (with customized profile) is sitting at the machine?
 
I agree. Password issue.
Setup the username and pasword on the WIn98 machine. Make sure you use the same on the samba machine. ßingo. It will work.

 
Let me try to make clear what I mean by allowing users to customize their profiles. In another forum, It was suggested to set the feature at:

Control Panel->Passwords->User Profiles

to the setting to allow users to be able to customize their preferences and desktop settings. This was the reason I selected this setting. I have also tried the setting where all users use the same preferences and desktop setting with the same bad results (unrecognized user).

Ultimately I want the 98 machine to have only one user and for that user to be able to use the shares on the SAMBA machine. To recap, to the best of my knowledge the user login on the 98 machine matches the user name and password at the SAMBA machine. The SAMBA machine is set to use encrypted passwords and the 98 machine should be encrypting it. Somehow this information is not getting to the SAMBA machine (intact?). Is there a log on the SAMBA machine that can be viewed that shows what user name and password is being tried when the request to open the share directory occurs? I am sorry about the multiple user confusion. Any more ideas?

Regards,
BA1010
 
For some reason, the Windows username is not matching the samba username. As a test, add the line below to the global section of smb.conf

username map = /etc/samba/user.map

Then create the file user.map with a list of user names in this format - sambauser = windowsusername. If windowsusername is two words (like firstname lastname), then enclose it in quotes. For example:

usera = UserA
userb = "Joe Shmoe"
userb = someotherdude

where "Joe Shmoe" and someotherdude are the 'multi-user' windows user names. Don't forget to restart samba after these changes.

 
I am up and running thanks to the hints from smah. Another quick question. Does anyone know if MS has a patch to provide encrypted passwords for Win95(a)? I have an older machine I would like to throw into the mix. If there is no way to provide encrypted passwords for the old box I can probably boost it to 98se.

Again, many thanks,
BA1010
 
Thanks for the tip, I'll give it a try. If I have anymore questions I'll start a new thread.

BA1010
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top