LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Howto connect to shares on a win2k server (https://www.linuxquestions.org/questions/linux-networking-3/howto-connect-to-shares-on-a-win2k-server-29126/)

ScreeminChikin 08-29-2002 08:44 PM

Howto connect to shares on a win2k server
 
:newbie:

How do I connect to a share on my win2k server from my Linux box? This is the first non windows machine that I have ever had on my network so I am clueless how this works. Do I need a special protocol installed on my server? On a windows machine I can just UNC to the share from a run line. I am trying to accomplish basically the same thing. My w2k machine is basically just a file server. My linux machine is getting an IP from my DHCP server and I can get on the net, but I just dont understand how to talk to my windown domain. Then once I connect to the share, can I map it as a network drive like in windows?

short & sweet description of my home network
-Roadrunner cablemodem
-SMC Barricade cable router with firewall, 4 port switch and also acts as my DHCP server
-win2k server running in native mode
-win98se workstation
-win2k pro laptop
-RH7.3 Linux machine

Thymox 08-29-2002 08:54 PM

Windows uses a protocol called SMB, and you'll need to use something called Samba. You should be able to simply go mount -t smbfs //something/somewhere /somewhere/on/your/local/filesystem.

Have a go.

sonikntails 08-29-2002 09:05 PM

also if you need to use a password and username then use:

mount -t smbfs -o username=urusername,password=urpassword //servername/sharename /whereumount/onyourlinuxbox


: )

Tezdread 08-31-2002 03:32 PM

This worked for me thank you!
How would I unmount the drive later?

sonikntails 09-01-2002 12:58 PM

umount /whereu/mountedit

Tezdread 09-01-2002 03:49 PM

thank you

Zoid 10-08-2002 09:48 AM

Thanks - You have no idea how much this helps

BrianK 10-09-2002 02:11 PM

(maybe this should be a new thread, but...) how do you make that persistant? As in, how can you make that mounted as soon as you boot? I tried adding this to fstab:

//deimos/Martian /mnt/Martian/ smbfs username=foo,password=bar,uid=briank,gid=users 0 0

and this to mtab:
//deimos/Martian /mnt/Martian smbfs 0 0

but it doesn't appear to work... am I missing something?

milesstandish 10-10-2002 05:31 PM

this should be rather easy and i feel like a boob for missing it during the install, but i had samba up and running before but am having quite a time with it now. i think my problem lies with my redhat 7.3 box being named localhost. how would i fix that. i think that is the problem as both boxes ping each other and under "network places" i show my win 2k box and localhost. help?

milesstandish 10-10-2002 08:54 PM

aha. if you type "neat" at command line or (in redhat) choose network configuration in kde) then go to the DNS tab, there you will find the name of or what will be the name of your computer. i changed it and viola! win 2k is now, seeing it as the correct name and can log into it.


All times are GMT -5. The time now is 04:42 AM.