LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-22-2013, 07:50 PM   #1
Vodkaholic1983
Member
 
Registered: May 2010
Distribution: Windows / Debian
Posts: 163

Rep: Reputation: 0
Samba (close_remove_share_mode)


Howdy, I can't seem to copy files/folders from windows 8 to samba on xbmcbuntu

I keep getting Network Error (Only when copying, I can view samba's shares fine)

Here is the log from my windows user on samba

Code:
[2013/09/23 01:31:58.481365,  0] smbd/close.c:305(close_remove_share_mode)
  close_remove_share_mode: Could not get share mode lock for file Videos/Animated Movies/Grave of the Fireflies (1988)/Grave of the Fireflies.mkv
[2013/09/23 01:31:58.481540,  0] smbd/close.c:305(close_remove_share_mode)
  close_remove_share_mode: Could not get share mode lock for file Videos/Thumbs.db
[2013/09/23 01:31:58.481633,  0] smbd/close.c:305(close_remove_share_mode)
  close_remove_share_mode: Could not get share mode lock for file Videos/desktop.ini
[2013/09/23 01:31:58.481721,  0] smbd/close.c:983(close_directory)
  close_directory: Could not get share mode lock for .

And this is the config for samba

Code:
[global]
workgroup = WORKGROUP
server string = %h server (Samba, XBMC)
netbios name = XBMCBUNTU
dns proxy = no
name resolve order = lmhosts wins bcast host
guest account = xbmc
load printers = no
show add printer wizard = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
strict locking = no


[Media]
path = /Media
public = yes
only guest = yes
guest ok = yes
read only = no
writeable = yes
create mask = 0777
force create mode = 0777
directory mask = 777
Has anyone any ideas? as this is really starting to P*** me off.

Cheers
 
Old 09-26-2013, 03:10 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,877
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Who owns /Media?

Try adding "browsable = yes" to your smb.conf file.

I have a share like this where the normal user only has read access and root has write access. This is my smb.conf file: (substitute <my-directory-owned-by-root> for the intended directory obviously).

My assumption is that if the directory were to be owned by a specific other user, that it would allow write access for that user and other users logging in would have read-only privileges.

Code:
[global]
log file = /var/log/samba/log.%m
max log size = 1000

[<my-directory-owned-by-root>]
path = /<my-directory-owned-by-root>
available = yes
read only = no
browsable = yes
writable = yes
guest ok = yes
create mask = 0644
Also, look further into your log file for where it cites what user has logged in and maybe that will give you some clues as to why it is not allowing write access.

Code:
[2013/03/06 15:59:06.232199,  1] smbd/service.c:1070(make_connection_snum)
  systemtest1 (192.168.2.6) connect to service <directory-name> initially as user root (uid=0, gid=0) (pid 1379)
 
  


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
How to make samba read updated smb.conf file without restarting samba anon091 Linux - Newbie 13 06-30-2021 04:43 AM
Samba/Cups print sharing problems (/var/spool/samba files) Gates1026 Linux - General 9 06-23-2013 01:33 AM
[Samba] Samba as PDC stopped trusting my Win 7 clients after a server update martdj Linux - Networking 1 01-14-2011 10:30 AM
Is there any way to log user samba who delete or move files/folders on samba server ? b-RAM Linux - Server 1 02-09-2010 12:33 AM
when i restart SAMBA,it says:stop samba failed,start SAMBA OK! whepin Linux - Networking 3 12-26-2001 05:54 AM

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

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