Solved

Samba(Red Hat5.1)

Posted on 1998-09-25
4
363 Views
Last Modified: 2010-03-18
Ok here we go.... I have Red Hat 5.1 on one box and Win98 on another,Samba service is running. When I go to network neighbor hood, I can see the Linux drive and the properties say Samba 1.9 or somthing like that, anyway, When I click on that drive it askes for a password, so I type in my root password, it comes back invalid. Then when I telnet into the linux box and type smbpasswd it says: load_client_codepage: filename /etc/codepages/codepage.850 does not exist. then old password: I enter the root passwd the new passwd and retype pass then it says faild to find entry for user root in file /usr/private/smbpasswd. I tried it as a user with the same effect but the final error after retype in the password varies from smbpasswd: machine 127.0.0.1 rejected the session setup. Error was : ERRSRV - ER
Rbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are
 invalid.) or smbpasswd: machine 127.0.0.1 rejected the password change: Error was : The speci
fied password is invalid. HELP!
0
Comment
Question by:Fiber-Optic
4 Comments
 
LVL 3

Expert Comment

by:marcelofr
ID: 1586957
you should use "smbpasswd -a user" to create a new user (type newline for the old passwd)... Any way try adding the following entry at the end of your /etc/smb.conf:

[tmp]
   comment = Temporary file space
   path = /tmp
   read only = no
   public = yes


to access /tmp without passwd
0
 

Author Comment

by:Fiber-Optic
ID: 1586958
I already figured it out, it was not the Samba server but the Win98 machine having prob's with the password...
0
 
LVL 1

Accepted Solution

by:
ghjm earned 200 total points
ID: 1586959
I know you said you already figured it out, but maybe this will help other people with the same problem.

Your problem is that the Samba server shipped with RedHat 5.1 does not include encrypted password support. Win95 and original WinNT defaulted to plaintext passwords and work fine with Samba. However, Windows 98 and Windows NT Service Pack 3 or later, by default, will not generate or recognize unencrypted passwords.

The easy solution is to edit the registry on your Windows machine and enable plaintext passwords. Use regedt32 to find the following key:

HKEY_LOCAL_MACHINE\system\CurrentControlSet\Services\Rdr\Parameters

Add a DWORD value called EnablePlainTextPassword and set it to 1. This will cause Win98 or WinNT SP3 to behave the way Win95 and earlier WinNT have always behaved. Of course, you will still be using plaintext passwords. If you want to use encrypted passwords, the latest versions of Samba include the capability, but you will have to download and compile your own copy to replace the package that comes with RedHat.

0
 

Expert Comment

by:sobit100798
ID: 1586960
Yes it seems to be the Win98 boxs fault. But the Registry entry you gave is wrong.

HKEY_LOCAL_MACHINE\system\CurrentControlSet\Servies\VxD\Vnetsetup

is where you enter the EnablePlainTextPassword (DWORD) info

0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
fsstat very high only on nfs client side rhel 10 101
Prevent login on dead linux home directories 3 82
Linux neworking 4 79
IPA complaining about DNS but DNS looks good.... 2 104
I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now