?
Solved

Samba making me nuts

Posted on 2000-03-23
7
Medium Priority
?
238 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 500 total points
ID: 2650320
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
ID: 2650328
ps:
you will find better explanantions here:

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

Expert Comment

by:bcoleman
ID: 2650336
Instead of using valid users = admincdr, use valid users = <your username>
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Expert Comment

by:castleinfo
ID: 2650394
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
ID: 2653767
Adjusted points from 100 to 125
0
 

Author Comment

by:wchance
ID: 2653768
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
ID: 2655534
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

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

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

Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
I have written articles previously comparing SARDU and YUMI.  I also included a couple of lines about Easy2boot (easy2boot.com).  I have now been using, and enjoying easy2boot as my sole multiboot utility for some years and realize that it deserves …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month13 days, 16 hours left to enroll

807 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