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-30-2013, 06:31 AM   #1
littlebigman
Member
 
Registered: Aug 2008
Posts: 553

Rep: Reputation: 33
Question [Samba 3.6.6] Can create files/dirs but can't delete them


Hello

I'm having a weird issue with Samba 3.6.6 on both Debian7 and Ubuntu 12.10 while using "security=share (security=user works OK but I'd like users to not be prompted for a login/password).

Here's the issue: I can create/copy files and directories from Windows (7 and XP), I can modify the content of a file, but Samba won't let me rename/delete files and directories.

This is puzzling, since the owner + access rights look fine:
Code:
# ll /usr/share/samba/shared-dir
drwxr-xr-x 2 nobody nogroup 4096 Nov 30 12:24 dummydir/
-rwxr--r-- 1 nobody nogroup    4 Nov 30 12:24 test.txt*
Unless otherwise set, Samba uses user "nobody" when using "guest=ok", so I guess the issue isn't related to Unix file access rights.

Here's the minimal smb.conf:
Code:
[global]
workgroup = WORKGROUP
netbios name = LINUX

;Important: Otherwise, doesn't switch to Unix "nobody" -> Err 5 Access denied
security = share

[shared-dir]
path = /usr/share/samba/shared-dir
comment = No need for Unix/Samba passwords
readonly = no
public = yes
guest ok = yes
Any idea what it could be?

Thanks for any hint.

---
Edit: Problem solved. Just replace "security=share" with the following:
Code:
security = user
;forces user to "nobody"
map to guest = Bad User

Last edited by littlebigman; 11-30-2013 at 06:08 PM.
 
Old 12-03-2013, 04:21 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2394Reputation: 2394Reputation: 2394Reputation: 2394Reputation: 2394Reputation: 2394Reputation: 2394Reputation: 2394Reputation: 2394Reputation: 2394Reputation: 2394
Thread is marked as being [SOLVED] and a solution is present.

Taken off the zero-reply list.
 
  


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
[SOLVED] Can't delete corrupted dirs and files flashback Linux - General 6 10-25-2011 12:12 PM
How to delete files under several sub-dirs in one command thomas2004ch Linux - Software 7 09-13-2011 01:08 PM
Samba mounts (via fstab) makes files into dirs, and other problems lefty.crupps Linux - Server 2 05-01-2008 02:48 PM
Samba users cannot create directories / delete files habiem Linux - Server 1 09-21-2007 05:59 PM
Linux, Create Dirs=no, Create files=yes. Possible? tisource Linux - General 4 01-12-2004 11:05 PM

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

All times are GMT -5. The time now is 10:48 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration