LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 07-18-2001, 11:28 AM   #1
cornell
LQ Newbie
 
Registered: Jun 2001
Location: South Eastern Pennsylvania
Distribution: Ubuntu
Posts: 14

Rep: Reputation: 0
Unhappy Win98 can't access Linux files, via Samba


Hello,

Short version: One of my Win98 machines can access files on my Linux server. The other can't, it asks for a password, and none that I give it work.

Long version:
I had a LAN of two Win98 machines and a Linux Server. The two Win98's could access specific directories that Samba made available on the Linux. The one Win98 machine had a catastrophic hard drive crash. I've got it fixed now and almost working (almost in that I can't get to the Linux server).

I also upgraded the Linux box and software (to Mandrake v6.?) I've configured Samba as it had been (I think). The old Win98 box accesses the files on the Linux box.

But, when I try to access them (map drives to directories on Linux) I am confronted with a dialog to enter a password. Any password I use, fails. I will point out that the same userid, and same password, is on all three boxes.

In the dark recesses of my mind, I recall something about Windows upcasing passwords unless told otherwise, but I thought that was Win95, and in anycase, I don't recall how to tell it not to.

Any ideas?

Thanks in Advance
 
Old 07-18-2001, 11:32 AM   #2
drjimstuckinwin
Member
 
Registered: Mar 2001
Location: Manchester UK
Distribution: Mainly Fedora
Posts: 496

Rep: Reputation: 30
Hi
Are you using encrypted passwords on Samba, or did you change Win98 to unencrypted? This could be the problem.
Jim
 
Old 07-18-2001, 11:47 AM   #3
cornell
LQ Newbie
 
Registered: Jun 2001
Location: South Eastern Pennsylvania
Distribution: Ubuntu
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by drjimstuckinwin
Hi
Are you using encrypted passwords on Samba, or did you change Win98 to unencrypted? This could be the problem.
Jim
After do consideration and much contemplation, let me say this about that.... Uh?

I don't mean Uh? about encryption, I mean..
how do I check/set Win98 and Samba encryption settings? I could probably find information on Samba encryption (if I can decipher the man pages), but anything systemic on Windows is a b****h to find (at least at my skill level).


Thanks in Advance, again
 
Old 07-18-2001, 12:17 PM   #4
Skot
LQ Newbie
 
Registered: Jul 2001
Distribution: LMdk 7.x mostly
Posts: 19

Rep: Reputation: 0
PlainTextPasswords in Win98

REGEDIT4

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\VNETSUP]

"EnablePlainTextPassword"=dword:00000001

to set Plain Text Passwords on, change dword to 0 to set it back to Encypted.

Skot.
 
Old 07-18-2001, 12:34 PM   #5
drjimstuckinwin
Member
 
Registered: Mar 2001
Location: Manchester UK
Distribution: Mainly Fedora
Posts: 496

Rep: Reputation: 30
Hi
I've been trying to reply, but was emailed a virus, so had to deal with that first!
Check SWAT (or SMB conf) encrypt passwords should say YES.
I imagine yours already does.
You can browse OK from your other machine, so undoubtedly it's a problem with the rebuilt box.
1 Are you using client for M$ networks as logon, my box tried to use windoze logon, which stuffed things up.
2 Have you got the right workgroup/user/PW in your network settings.
Jim
 
Old 07-19-2001, 08:18 AM   #6
cornell
LQ Newbie
 
Registered: Jun 2001
Location: South Eastern Pennsylvania
Distribution: Ubuntu
Posts: 14

Original Poster
Rep: Reputation: 0
Re: PlainTextPasswords in Win98

Quote:
Originally posted by Skot
REGEDIT4

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\VNETSUP]
"EnablePlainTextPassword"=dword:00000001

to set Plain Text Passwords on, change dword to 0 to set it back to Encypted.

Skot.
BINGO!! That's what I was missing. Thank you, Skot
 
Old 07-19-2001, 11:43 AM   #7
GonzoJohn
Member
 
Registered: Jun 2001
Location: Louisville, KY USA
Distribution: RedHat and Debian
Posts: 89

Rep: Reputation: 15
That was brave. I'm not a regedit fan ;-)

The flipside solution was to set Samba to use encrypted passwords by adding these two lines (or uncommenting them) in your smb.conf file.

encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd

This would also do the trick. You'd then add your Window's users' names to the smbpasswd file specified by using this commmand as root:

smbpasswd -a username

I'd recommend using encrypted passwords for the same reasons I'd recommend using SSH and secure FTP. Plain text passwords are bad mojo.
 
Old 07-19-2001, 12:41 PM   #8
Skot
LQ Newbie
 
Registered: Jul 2001
Distribution: LMdk 7.x mostly
Posts: 19

Rep: Reputation: 0
Right

Quote:
Originally posted by GonzoJohn
That was brave. I'm not a regedit fan ;-)
Unfortunately, I'm forced to work with doze workstations on my network.

Quote:
Originally posted by GonzoJohn

The flipside solution was to set Samba to use encrypted passwords by adding these two lines (or uncommenting them) in your smb.conf file.

encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd

This would also do the trick. You'd then add your Window's users' names to the smbpasswd file specified by using this commmand as root:

smbpasswd -a username

I'd recommend using encrypted passwords for the same reasons I'd recommend using SSH and secure FTP. Plain text passwords are bad mojo.
Have you ever tried doing that on a mixed network of Win95, 98, and 2Krappy workstations? They don't all handle encryted passwords the same. If your smb system is not on over the Internet then Plain text is just fine, just not as much fun.
 
Old 07-19-2001, 02:54 PM   #9
cornell
LQ Newbie
 
Registered: Jun 2001
Location: South Eastern Pennsylvania
Distribution: Ubuntu
Posts: 14

Original Poster
Rep: Reputation: 0
Re: Right

Adding the users to the Samba config (smbpasswd -a username), this just adds the username, no password, right?

'Cause this brings up another question. I want to be able to change my password when I log on to the Win98 machine, and have that propagated to the Linux box (so I don't have to change twice). I'd also like to change it on the Linux box and have that propagated to Windows, but this isn't as important as the first. Can I do this by setting Samba config, and if so, what's the setting? I'd found something in the comments in smb.conf, but it didn't make sense.

And, bye the bye, thank you all for your responses.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Win98 to Samba PDC write-access issue NetAX Linux - Networking 3 05-08-2004 11:42 PM
want to access win98 files and folders from network through linux 7.2 Enigma abhijitpethkar Linux - Newbie 1 04-12-2004 06:50 AM
Samba File Access from Win98 machine tmbowie16 Linux - Networking 3 04-30-2003 03:38 AM
Same old Problem, Win98 cannot access Samba share! mutantjazz Linux - Software 12 11-13-2002 11:51 AM
win98 access samba via linux ppp server problem jensonluk Linux - Networking 0 02-08-2002 01:52 AM


All times are GMT -5. The time now is 08:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration