LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mounting Win2k Shares w/Samba (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-win2k-shares-w-samba-138524/)

HKDude 01-25-2004 02:37 PM

Mounting Win2k Shares w/Samba
 
I've been searching posts and reading samba.org for the better part of a day now and I'm still not close to solving my problem. I'm starting to go a little nutz!

Ok. I'm not trying to do anything too difficult (I think). I have a Win2K domain and I want to use my Linux Redhat 9 laptop to connect to shares on the WIN2K server. That is all I'm trying to do. Nothing else. I have the latest version of Samba installed and (for now) I'm manually starting the smbd and nmbd daemons. Everytime I try either:

smbmount //hkd-server/data /mnt

OR

mount -t smbfs -o userrname=xxx,password=xxx //hkd-server/data /mnt

I get the following error:

Error connecting to 192.168.1.10 (Connection refused)
2325: Connection to hkd-server failed
SMB connection failed

Upon further research, I began to think that I needed to have my linux laptop added to my Win2K domain. This fails as well. I've tried net join -U administrator and it returns:

libads/kerberos.c:ads_kinit_password(133)
kerberos_kinit_password administrator@HKDUDE.COM failed: Cannot find KDC for requested realm
Joined domain HKD-LAND.

All I want is access to the files stored on my Win2k server. Am I missing something oblivious here? Is there another way to do this? In other words, I'm open to suggestions at this point. Please advise me, oh wise ones.

Thanks.

-hkd

Electro 01-25-2004 04:39 PM

Use smbclient with the -L argument and see if you can see the directories. You might have to use nmblookup to convert names to ip address. If you can not see a list of directories, then its your Windows 2000 system. If it works make another directory under /mnt and mount it again. If you are mounting as a user it will give you problems. Mount it as root, su, or as sudo.

You do not need run smbd nmbd. They are for setting up smb shares on your linux system to be seen on Windows systems.

HKDude 01-25-2004 06:42 PM

I can't believe I missed this... After nmblookup returned the *correct* IP address for my server, I realized I had mapped the server's IP incorrectly in my hosts file. Do'oh!!

Works like a charm now...


All times are GMT -5. The time now is 03:59 PM.