Connecting to a windows network

Issues Related to Networking (Wired and Wireless)

Moderator: Moderators

Connecting to a windows network

Postby hunt_mat » Mon Jan 11, 2010 13:56

Hi,

I am on a network of mainly windows machines and we would like to be able to allow certain files to be read from each other hard drives. I know that it is something to do with samba but I am not too sure how to go about it. I am on sabayon 5.1 whilst the other machines are vista.

Any tips greatly appreciated.

Mat
hunt_mat
Growing Hen
 
Posts: 158
Joined: Mon Mar 05, 2007 20:08

Re: Connecting to a windows network

Postby thecata » Mon Jan 11, 2010 15:55

Once I had a similar dilemma: I wanted to have read/write access to a folder on a windows machine (2003 server, but Vista shouldn't be too different) from my Sabayon workstation. This is how I did it (maybe it will solve at least part of your problem):
First, I went to the Windows machine and shared the folder I wanted to access from Linux (with read and write permissions of course, as I needed). Then, on my Linux machine I just mounted that folder, using something like:
Code: Select all
mount.cifs //192.168.100.2/shared_folder /mnt/my_local_folder/ --user=user1 --pass=pass1

You run this command as root, after you make sure that you have a folder "/mnt/my_local_folder" on your hard drive (it is not necessary to put in /mnt; you can use any location you like, like your home folder; just make sure that the user you want to access it with has the rights to view the content of that folder - use chown to change the ownership of a folder and chmod for rights - more on the respective man pages).
As you might have guessed, the 100.2 machine is running windows, and it has a user called "user1" with password "pass1", and the folder in question was shared as "shared_folder". To share a Windows folder, just see the "Sharing" tab (or something similar, I don't really remember) in the folder's property window.

As I usually keep my workstation running (it also has some sort of source control server running on it), I didn't look too much into this, but I'm sure it's not too hard to put it in fstab so it will be mounted automatically at each boot (see the fstab page on Wikipedia - I usually go there whenever I need to clarify some stuff about fstab syntax).

As for sharing a folder on Linux so that other Windows machines will see it on your network, I never bumped into this problem (yet) so I can't really help you there.

PS: if you share the folders in windows, the other windows machines will be able to "see" each other's shared folders, so no problem there.
Catalin Pol
Location: Romania
Linux user since 2004; Sabayon user since 2006
thecata
Simple Hen
 
Posts: 77
Joined: Sun Nov 12, 2006 11:40
Location: Romania, Cluj

Re: Connecting to a windows network

Postby Fitzcarraldo » Mon Jan 11, 2010 18:54

See the first part of the article HOWTO: Vista printer sharing in the SL Wiki for instructions on how to enable authentication in Windows Vista, to enable your Linux machine to access the Vista machines.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7981
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Connecting to a windows network

Postby hunt_mat » Sat Jan 23, 2010 20:18

This doesn't seem to work. Thanks anyway, I know that this can be a very difficult thing to do.

Mat
hunt_mat
Growing Hen
 
Posts: 158
Joined: Mon Mar 05, 2007 20:08


Return to Networking and Wireless

Who is online

Users browsing this forum: No registered users and 2 guests

cron