LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-04-2016, 06:07 PM   #1
dbrazeau
Member
 
Registered: Aug 2009
Distribution: Fedora, OpenSuse, DENX Embedded Linux
Posts: 184

Rep: Reputation: 28
Samaba can't share anything outside of /home


For some reason I can't share any directories that are not locate inside of /home. I have even create new directories in home and have no problem sharing them, but if I do the exact same thing and create a directory in side of / for some reason I cannot open an browse the directory on my windows machine.

Here is my smb.conf
Code:
[global]
	workgroup = WORKGROUP
        netbios name = SMBSERVER
	security = user        
        map to guest = Bad User

	printing = cups
	printcap name = cups
	load printers = yes
	cups options = raw

[testdir]
   path = /home/testdir
   browseable = yes
   read only = no
   writable = yes
   guest ok = yes
   public = yes

[testdir2]
   path = /testdir2
   browseable = yes
   read only = no
   writable = yes
   guest ok = yes
   public = yes
MY directory permissions are the same for both.
drwxrwxrwx. 2 root root 4096 Nov 4 15:56 testdir
drwxrwxrwx. 2 root root 4096 Nov 4 15:59 testdir2

What is so special about the /home directory? How do I share directories outside of /home?

Also although I can browse /home/testdir on my windows machine I cannot see any of the files inside of it nor can I create any files. The permissions on /home/testdir seem fine, why do I not have permission to it on my windows machine?

Last edited by dbrazeau; 11-04-2016 at 06:11 PM.
 
Old 11-04-2016, 06:27 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled
Sharing / is a bad idea, I wouldn't be surprised if it is blocked.
 
Old 11-04-2016, 06:28 PM   #3
dbrazeau
Member
 
Registered: Aug 2009
Distribution: Fedora, OpenSuse, DENX Embedded Linux
Posts: 184

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by Emerson View Post
Sharing / is a bad idea, I wouldn't be surprised if it is blocked.
I'm not trying to share the root directory, just a sub-directory of /, i.e. /mydir, /share, /work, etc.
 
Old 11-04-2016, 07:09 PM   #4
Doug G
Member
 
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
It seems to me if you're using selinux there is some selinux setting to allow samba shares from arbitrary directories.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Redirect an app resource folder from system /usr/share to /home/user/[app]/usr/share minyor Linux - Software 2 04-23-2013 06:44 AM
Samaba share configuration problems gmansfield Linux - Newbie 7 04-03-2006 02:55 PM
Printing to a Windows Samaba Share Maskkkk Linux - Networking 1 09-07-2004 01:15 PM
share home boombastic Linux - Newbie 3 08-22-2004 10:04 AM
Samaba Robush Linux - Newbie 3 01-29-2004 08:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:26 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