LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-15-2013, 10:03 PM   #1
Larrin
LQ Newbie
 
Registered: Feb 2003
Posts: 4

Rep: Reputation: 0
How do I setup Samba to share files, located on a Win 7 PC, with other PCs


OK this may be answered here somewhere but I couldn't find it. As a matter of fact I have been looking for an answer for two weeks. I have need of a file server for a small work network, about 40 machines. I have a Win 7 PC that I currently use to keep and share the files on now but it only allows a few, maybe 5, connections from different PCs and then I have to reboot the machine. So I want to install a linux file server to share the files that are on the Windows 7 machine. I would prefer to run it in a Virtual Machine hosted on the Win 7 machine. Now the questions.
1. Do I have to mount the Windows folders in the /etc/fstab file and then share that mount point in the smb.conf file or can I mount them directly from the smb.conf file by using the path = //Win7/SharedFolder parameter?

2. I have had both options show the files but only the top level is visible to both Win 7 and XP machines and the files can't be opened. Which, if either, is the correct way?

3. Is there a step by step howto to do this sort of setup with ubuntu or debian server?
 
Old 05-16-2013, 08:02 AM   #2
jmajor
Member
 
Registered: Nov 2004
Location: Australia
Distribution: Fedora, Ubuntu
Posts: 55
Blog Entries: 2

Rep: Reputation: 17
Sounds like you've tried both solutions already. Of note would be that the authentication used by linux to connect to win7 is the user win7 will see when any remote users connect to linux. This may be the source of the can't-open-files-or-directories issue. Also some people might use the word 'circumventing' while searching for which of a thousand licenses applies to your system.
In any case, you might be better off to give the VM more disk and host the files there rather than on win7. This would give you better permission control and avoid all license hassles completely.

HTH
 
Old 05-16-2013, 08:22 AM   #3
siremaxus
Member
 
Registered: May 2013
Posts: 75

Rep: Reputation: Disabled
Hi,

I agree with jmajor, because Windows 7 supports a maximum of 20 connections (not 20 PC, but connections). Reference here.

So I strongly suggest that you move your files to a Linux machine, preferably a real one, so hopefully your windows PC doesn't get slowed down because of IOPS or Network bandwidth usage.

Good Luck,

Sire Maxus
 
Old 05-16-2013, 11:53 AM   #4
michelm
LQ Newbie
 
Registered: Apr 2013
Location: Beirut, Lebanon
Distribution: Kubuntu 12.04 lts
Posts: 22

Rep: Reputation: Disabled
I am glad to inform you that I have (finally!!!!) managed to get my Ubuntu 12.04 runing Samba 3.6.3 to share files and printers with a Win7 a Win8 and and OSX machines.

Please let me know what information you need.

Michel
 
Old 05-16-2013, 11:55 AM   #5
siremaxus
Member
 
Registered: May 2013
Posts: 75

Rep: Reputation: Disabled
Quote:
Originally Posted by michelm View Post
I am glad to inform you that I have (finally!!!!) managed to get my Ubuntu 12.04 runing Samba 3.6.3 to share files and printers with a Win7 a Win8 and and OSX machines.

Please let me know what information you need.

Michel
Congrats!!, How do you manage your users? (LDAP, AD?)

Sire Maxus
 
Old 05-16-2013, 01:40 PM   #6
michelm
LQ Newbie
 
Registered: Apr 2013
Location: Beirut, Lebanon
Distribution: Kubuntu 12.04 lts
Posts: 22

Rep: Reputation: Disabled
I think it is AD by default. I have a home / small office setup and I handle security by limiting sharing to specific directories and using a user level for samba.

Michel
 
Old 05-18-2013, 01:13 PM   #7
Larrin
LQ Newbie
 
Registered: Feb 2003
Posts: 4

Original Poster
Rep: Reputation: 0
What I ended up doing

I ended up just storing all of server files on the Linux VM like everyone suggested. In order to satisfy the other engineers at site who are afraid of Linux and the that the VM will fail and all the files will be lost, I set up rsync to run as a cron job and incrementally backup the files to a windows share that is read only to everyone except the server. Thanks for the advice.
 
  


Reply

Tags
samba windows



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't create folders in samba share files with win 7 BOTES Linux - Newbie 4 02-26-2014 04:17 PM
[SOLVED] SAMBA problem â?? rebuilding server â?? How to configure SAMBA share with writing - Win Alvin88 Linux - Newbie 5 04-04-2012 12:51 AM
New to Ubuntu 10.04, XP Experienced, how can my XP & Linux PCs share files? ssaedc Linux - General 2 02-14-2011 06:30 AM
share files on two connected linux pcs shaikhmansoor Linux - General 2 06-18-2005 03:44 PM
Simple Samba Setup, Share & Not Share timmywo Linux - Software 4 07-30-2004 07:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration