Solved

Samba making me nuts

Posted on 2000-03-23
7
198 Views
Last Modified: 2010-04-20
I installed Samba fine.  I configured a group admincdr with my user name in it.  I created a shared directory called [admincdr] with validated users admincdr.  I can see the Samba Server when I go to Network Neighborhood from any Windows PC on the network.  But when I click on the icon it asks me for a password. (Resource: \\SAMBA\IPC$) I enter all the possible passwords that I have programmed in the linux box but it does not allow me to connect.  When I try from another PC it asks me for a username and password.  I enter a valid username and password and it does not like it!  What should I do?
0
Comment
Question by:wchance
7 Comments
 
LVL 17

Accepted Solution

by:
inthe earned 125 total points
Comment Utility
hi,
i found this that should help you:
Windows 98 is not able, per default, to negociate or to accept an authentication based on plain-text passwords. And per default, Samba will only send clear-text passwords. So you will have to add the following in you smb.conf file, global section to tell Samba also to use encrypted password. :
      encrypt passwords = Yes
This is one thing, the other is the creation of the encrypted password.       1) You must have a linux username identical to the one you are using in Windows. (I think is already the case).
      2) Create the encrypted password for this user : smbpasswd -a <USERNAME>. This will create a file called smbpasswd under a directory called private. If you want to change the location of this directory use the following line in your smb.conf file, global section :
          smb passwd file = /<PATH>/<TO>/<FILENAME>
 
This is needed with the security=user or with the security=share. (This is a line of the global section of the smb.conf file). This two methods of security use both a password exchange so it need to be encrypted.
 
Another solution is to allowed windows98 to use plain-text passwords. This is done by adding a registry key on your windows (the type of the key is DWORD) :
 
Path to key : HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\VNETSUP Name        : EnablePlainTextPassword
Value      : 00000001
 


Regards Barry

0
 
LVL 17

Expert Comment

by:inthe
Comment Utility
ps:
you will find better explanantions here:

http://home.germany.net/101-69082/samba.html#4.4.
0
 
LVL 1

Expert Comment

by:bcoleman
Comment Utility
Instead of using valid users = admincdr, use valid users = <your username>
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

Expert Comment

by:castleinfo
Comment Utility
The easy way is to configure samba to make files available as a SHARE not per USER.

This will at least give you the confidence to move on to setting up an encrypted password file etc as in the instructions... It took me a week or so to figure out but once it works it's seemles and doesn't prompt for passwords.
0
 

Author Comment

by:wchance
Comment Utility
Adjusted points from 100 to 125
0
 

Author Comment

by:wchance
Comment Utility
He guys it worked, the only problem is that it is very slow.  I tried to transfer a 57 meg file and it said it would take an hour.  I copied it from a Windows to Windows and it took 2 minutes.  Please let me know what I have to fine tune.

0
 
LVL 17

Expert Comment

by:inthe
Comment Utility
cant help much there but it is certainly a common problem..
pastye the whole link below into your browser window for a listing of other people who have/had same problem:

http://www.deja.com/dnquery.xp?ST=MS&QRY=samba+linux+windows+file+transfer+slow&svcclass=dnserver&DBS=1
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

771 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

9 Experts available now in Live!

Get 1:1 Help Now