Solved

Samba(Red Hat5.1)

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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

829 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