LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Samba not Connecting (https://www.linuxquestions.org/questions/linux-networking-3/samba-not-connecting-22474/)

artman62 06-03-2002 12:49 PM

Samba not Connecting
 
Has anyone seen this error? I have set up Samba on a linux box with Red Hat 7.1. I made a directory called downloads that is public. I am trying to connect to the system with a couple of Wind98 systems and a Win2K system
I can see the linux box in Network Neighborhood.
When try to connect the dialog box says:
You must supply a password to make this connection
Resource \\Server_Name\IPC$
Password

There should be know password, but when I hit return I get a dialog box telling me the password is incorrect.
Also, I cannot figure out why the share name shows up as IPC$.
I have encrypted passwords turned on in my smb.conf file. I used swat to set everything, then manually edited the file to change the settings I couldn't find in swat.

Any ideas or do you need more info?

Mara 06-03-2002 01:21 PM

Have you used smbpassword to set samba passwords?

TruckStuff 06-03-2002 02:04 PM

You need to tell Samba to use the encrypted passwords that Win98 is sending it. You must also tell samba the usernames and passwords that you are using to log into the Win98 boxes (not linux). Read here:

http://www.oreilly.com/catalog/samba...ook/index.html

sewer_monkey 06-03-2002 06:21 PM

Okey dokey, Windoze 9x/ME does not allow you to specify a username when connecting to remote hosts. Therefore, you must log into the Windoze machine with the same username as in your /etc/samba/smbpasswd, and make sure that username has access to the shared resource.

With Windoze NT/2000/XP, however, you can specify an arbitrary username when you connect to remote machines. The easiest way to do this is like this:

Code:

C:\Windows\> net use * \\sambaserver\sharename /user:whatever
Windoze 9x/ME does not support the /user switch, so you actually have to go to "Start>Shutdown", and select "Close all programs and log in as another user" and then type in the exact same username you have set up in samba.

I do not think that encrypted passwords is the problem. All Windoze versions use encrypted passwords by default, and samba does that too. If you wanna be safe, you can force encrypted passwords in samba.

Good luck!

artman62 06-10-2002 05:34 PM

Samba not connecting
 
Thanks for the help.

The link to oreilly.com was a great help. He had that actual message in his howto. Turns out I was trying to just use user names with blank passwords. That didn't work at all. Once I added the passwords and copied them with smbpasswd, I was able to get the system to show up fine.

tangle 06-10-2002 10:52 PM

I ran into this when I first started messing around with Samba. First you have to set the smb.conf file to accept encrypted passwords (as stated above). Then you have to add users locaully to you Linux box. Then you have to tranfer them to the smbpasswd (Samba password file). The thing that you really need to do is setup Samba users. You can easy do this by using Webmin. I use to use the mksmbpasswd.sh script. But some version of Samba do not include it. It is easy to do all of this. Download the Webmin rpm and install it. Then type /usr/libexec/webmin/setup.sh. Then open your web browser and type http://localhost:10000/.

One thing if you are using Mandrake 8.1 and installed Webmin while installing the OS. If I remeber right they put the setup script in the /usr/local/share/webmin directory.


All times are GMT -5. The time now is 05:44 PM.