LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 04-04-2005, 03:22 AM   #1
listlow
LQ Newbie
 
Registered: Mar 2005
Posts: 10

Rep: Reputation: 0
Question Samba :- Cant delete files


I have a samba version 2.2.10 running on slackwave 9.1, everything were success configured and i have a public share folder where the folder premission i have gave was full access for all users, when i try to log in by using one of my workstation, i can modify every single files and add new file inside the public share folder but when come to delete the file, i recevied an error msg said "Can not delete .. : access is denied. Make sure the file is not full or write protected...."

[PublicShared]
comment = Public Folder
browseable = yes
path = /share
read only = No
public = yes
writable = yes
printable = no
;valid users = test nobody
;invalid users = root bin daemon sync sys tty disk mem kmem

the above script i copied out from smb.conf also where i setup my public folder configuration. Can anyone know how to give the premission so that i can delete the file in this folder.

Your help are apprieciates. Thanks
 
Old 04-04-2005, 03:26 AM   #2
listlow
LQ Newbie
 
Registered: Mar 2005
Posts: 10

Original Poster
Rep: Reputation: 0
even i have tried to add on the mask like create mask = 0777, i am still can not be able to delete the file. all my client are running winxp and win98.

your help is appreciates. Thanks
 
Old 11-22-2006, 07:17 AM   #3
kamal4r
LQ Newbie
 
Registered: Nov 2006
Posts: 3

Rep: Reputation: 0
I have a problem and my solution is what is your problem.

I want to put the files in the shared folder but dont want to delete the files even the owner of the file.

Can you help me how you have configured this.

Thanks
 
Old 11-22-2006, 11:39 AM   #4
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
Quote:
Originally Posted by kamal4r
I have a problem and my solution is what is your problem.

I want to put the files in the shared folder but dont want to delete the files even the owner of the file.

Can you help me how you have configured this.

Thanks
Just change the folder and file permission on the samba server to 555 (r-xr-xr-x). Now nobody can delete or modify the files.
And also add a directory mask = 0555 and a create mask = 0555
 
Old 11-22-2006, 11:49 PM   #5
kamal4r
LQ Newbie
 
Registered: Nov 2006
Posts: 3

Rep: Reputation: 0
I want to put the files in shared folder, but after giving 555. I will not be able to post files in this folder.

I just want : creating the file but not delete the file in shared folder. Even owner of that file will not be able to delete. Only root can delete the file.

Thanks for your response Micro420
 
Old 11-23-2006, 06:52 AM   #6
kamal4r
LQ Newbie
 
Registered: Nov 2006
Posts: 3

Rep: Reputation: 0
Thanks Micro420..!

I have solved the problem and it working fine as I was needed.

This was solved after putting the create mask = 1055 in smb.conf

Thanks
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to delete files that won't delete? di11rod Linux - Security 7 10-19-2005 09:14 PM
Samba does not delete files pinaker Linux - Software 2 10-08-2005 04:50 AM
how can I do to delete these files? tuzhiyong Linux - Software 2 12-02-2004 11:01 AM
Files delete from SAMBA server klmn1 Linux - General 2 04-17-2004 02:34 AM
How to delete the destination files while the source files deleted in cp -u ? myunicom Linux - General 4 09-26-2003 01:13 PM


All times are GMT -5. The time now is 12:00 PM.

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