Solved

Sharing directories outside of your home to windows network

Posted on 2003-11-14
9
331 Views
Last Modified: 2010-03-18
I have just installed samba to allow me to share to a windows network. However, when I try to share a directory outside of my home, it tells me that I cannot (I have tried logging on as root also).

(I am running mandrake 9.1)

Ideally, I would like to be able to share directories in my /mnt - I have several ntfs formatted harddisks which I would like to be able to share to the rest of our network.

Thanks in advance,

dc.
0
Comment
Question by:dcollis
  • 5
  • 4
9 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 75 total points
ID: 9752468
It  isn't a problem to export an SMB share for something outside of your home dir with something along the lines of:

[share1]
  comment = Shared disk 1
  path = /mnt/disk1
  public = no
  readonly = yes

[share2]
  comment = Shared disk 2
  path = /mnt/disk2
  public = no
  readonly = yes

The difficulty will file ownership on the mounted volume since they are NTFS volumes. You need the perms on the mount point to be readable by every one since NFTS files don't have Unix style triples (user, group, other).
0
 

Author Comment

by:dcollis
ID: 9753603
sorry, im a bit of a novice when it comes to linux networking. - How do i set up the code above?
0
 
LVL 40

Expert Comment

by:jlevie
ID: 9754221
Those directives need to be added to the end on your smb.conf file, typically /etc/samba/smb.conf. After changing the file samba must be restarted for the change to take effect.
0
 

Author Comment

by:dcollis
ID: 9756705
I'm still struggling to get this to work.
I updated the smb.conf file with what I though were the correct entries.
Now when I enter network neighbourhood on one of the windows machines, I can see the linux computer listed in the workgroup i specified, but cannot access it (comes up with username/password box where no usernames/passwords I enter work - including root).
How can I make it so that anyone in the workgroup (i.e. a guest) can access the dir (for read but not write)?

thanks for the help so far,

dc.
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
LVL 40

Expert Comment

by:jlevie
ID: 9756738
To make the shares accessible to everyone include a 'public = yes' in each share definition.
0
 

Author Comment

by:dcollis
ID: 9757236
Now, others can enter the directory i shared, but only for a couple of seconds, as when they do, the computer sharing crashes.
Any ideas why this might be?
0
 
LVL 40

Expert Comment

by:jlevie
ID: 9758212
Since you don't see that problem with SMB shares that point to things located on a Linux file system my guess would be that the problem lies with the NTFS support. Support for access to NTFS file systems is pretty much "experimental" in Linux and it may not work quite right.

The only "fix" that occurs to me for this would be to copy the data from the NTFS mount points to Linux file systems and share that to the windows machines.
0
 

Author Comment

by:dcollis
ID: 9759267
Way to much data (>150gb) to copy onto my linux partitions.

I think you answered my original question so will give points now. Still doesn't work for me as it always crashes. It crashes when I do any filesharing it seems. It also crashes when I transfer files to and from my server using gFTP (though it does work briefly). Also when browsing the directories from a windows machine, it also allows browsing for a short period before it crashes...
Im assuming this is some kind of problem with my network settings...but have no idea what it could be, as other things, such as email, www, ssh, msn etc all work perfectly....

any ideas? guess i should post another question with this one...

cheers anyway,

dc.
0
 
LVL 40

Expert Comment

by:jlevie
ID: 9761689
Ah! I think I probably know what the problem is if FTP has problems. This sounds like a ethernet link mode mis-negotiation issue. What that means is that both ends of the network link aren't operating in the same duplex mode (one end at HDX, the other at FDX). This is more common with 100Mbs NIC's and hub/switches, but it can happen on a 10Mbps network. The solution is to force one, or both ends of the link to a sane mode (HDX if connected to a hub, FDX if a switch). Such a link will work, if a bit slowly, until you try some large data transfer.

You may be able to find a diag/setup program at http://www.scyld.com/page/support/network/ for your NIC that can be used to set the link mode.
0

Featured Post

Save on storage to protect fatherhood memories

You're the dad who has everything. This Father's Day, make sure your family memories are protected. My Passport Ultra has automatic backup and password protection to keep your cherished photos and videos safe. With up to 3TB, you have plenty of room to hold the adventures ahead.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
IPA - can it be run on a web server? 3 142
IPA client Config problems 2 161
linux service nerwork restart throwing eth1 not dound? 5 75
Linux on a Dell PowerEdge 720 3 117
I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now