Solved

Samba(Red Hat5.1)

Posted on 1998-09-25
4
362 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

760 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

26 Experts available now in Live!

Get 1:1 Help Now