LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 04-06-2010, 01:12 AM   #1
ethereal1m
Member
 
Registered: Jan 2010
Distribution: slackware 13.0 64
Posts: 259

Rep: Reputation: 30
Question SAMBA: cannot share directory when it's not under "/" dir


Dear all,
I was able to share a directory when it's under "/" (root) directory between the server and an XP client, but when I want to share a directory that located in different partition, I got an error.

Suppose I have a partion /usr/local that is separated from / and I want to use /usr/local/share as a Samba share directory.

Therefore in smb.conf:
Code:
[share]
   comment = Temporary file space
   path = /usr/local/share
   writable = yes
   public = yes
log.smbd says:
Code:
smbd/service.c:make_connection(1366)
serenity (::ffff:192.168.1.2) couldn't find service usr
And the XP client failed to connect.
What does this mean?

regards,
ethereal1m
 
Old 04-06-2010, 04:13 AM   #2
sadiqdm
Member
 
Registered: Nov 2003
Location: London, UK
Distribution: openSUSE, Ubuntu
Posts: 357

Rep: Reputation: 35
Samba shares

I tried what you did and found my smb.conf file looked like this:
Code:
[global]
	workgroup = headley
	netbios name = dylan
	name resolve order = bcast host lmhosts wins
	map to guest = Bad User
	local master = yes
	preferred master = yes
	os level = 65
	usershare allow guests = Yes
	usershare max shares = 100
	usershare owner only = False
	passdb backend = smbpasswd
	wins support = No
	wins server = 
[home]
	path = /home/sadiq
	read only = yes
	guest ok = yes
	force user = sadiq
[share]
	comment = Temporary file space
	guest ok = Yes
	inherit acls = Yes
	path = /usr/local/share/
	read only = No
I am running openSuse 11.1, kernel 2.6.27.45-0.1-default x86_64, KDE 3.5.10 "release 71, Samba 3.2.17-11.5.1-x86_64. The shares are both visible from my Acer netbook running Ubuntu 9.10 & a Windows desktop running XP Pro.

It's possible you are using "old" terminology. Try changing the "writeable" & "public" lines.

Did you edit the smb.conf by hand or use a GUI tool? I used to do it all by hand, but since I started using openSuse 11.1, I found the YaST tool worked OK. The GUI tool is not as easy to use, but seems to work just as well once I got the hang of the differences.
 
Old 04-06-2010, 05:36 AM   #3
ethereal1m
Member
 
Registered: Jan 2010
Distribution: slackware 13.0 64
Posts: 259

Original Poster
Rep: Reputation: 30
I changed the "writable" and "public" line, but still get the same error. The main question is:
Code:
smbd/service.c:make_connection  couldn't find service usr
Why does the daemon think usr is a service, where it's actually a directory that is specified in smb.conf?
The message comes out as soon as I execute:
Code:
net use * \\firefly\usr\local\share /user:ethereal1m
from XP client, where firefly is the name of the server. Seems that SAMBA cannot find /usr/local thinking /usr as a service.

When I do this (where /share worked):
Code:
path = /share/temp
the log spit out
Code:
smbd/service.c:make_connection_snum(1194)
  serenity (::ffff:192.168.1.2) connect to service share initially as user ethereal1m (uid=1000, gid=100) (pid 4564)
but actually the XP client got connection denied notice that "service share" in this case is the /share directory.

What's going on here? any ideas? thanks
 
Old 04-06-2010, 05:46 AM   #4
djsmiley2k
Member
 
Registered: Feb 2005
Location: Coventry, UK
Distribution: Home: Gentoo x86/amd64, Debian ppc. Work: Ubuntu, SuSe, CentOS
Posts: 343
Blog Entries: 1

Rep: Reputation: 72
What are the permissions on /usr/local/share/ ?

I was getting the same error in my smbd log when my permissions wern't correct for the dir being accessed (I just had a simple everyone browsing as guest; and guest didn't have any permissions);
 
Old 04-06-2010, 07:28 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,969

Rep: Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752
Can not tell if what you posted was a typo but when trying to connect via the command line you need to use the samba share name and not the path. i.e.
net use * \\firefly\share

As already suggested make sure the permissions are set correctly for shared directory.
 
1 members found this post helpful.
Old 04-26-2010, 04:27 AM   #6
ethereal1m
Member
 
Registered: Jan 2010
Distribution: slackware 13.0 64
Posts: 259

Original Poster
Rep: Reputation: 30
I just realized that when I execute:
Code:
net use * \\server\share /user:ethereal1m
in XP client, "share" in this context is the name of the service, I misunderstood it as the name of the folder.....

thanks guys
 
  


Reply

Tags
samba


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
samba - windows files lose "created on" date stamp when moved to samba share on linux jaredk51 Linux - Software 5 02-19-2010 03:13 PM
What is the purpose of "share modes" in a samba share? Astol Linux - Software 4 11-28-2007 10:23 PM
"how should we restrict the samba user with respect to particular dir" sreedhara Red Hat 1 04-06-2006 02:10 PM
samba-share "Directory Locked" Xstack Linux - Software 1 03-20-2005 07:22 PM
Authenticating to Samba share using "Active Directory Server" hlslaughter Linux - Software 36 07-23-2004 10:59 AM


All times are GMT -5. The time now is 01:03 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration