LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-07-2014, 09:30 AM   #1
jogyulas
Member
 
Registered: May 2014
Location: Hungary
Posts: 32

Rep: Reputation: Disabled
samba question


Hello,

I need some help and I hope somebody can answer me.

Question:
There is a samba share. On this share there are many folders. One of them is special. The task is that everybody can copy a new file to this folder but nobody can delete them except the owner.
Is it possible somehow?
 
Old 10-07-2014, 10:10 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,804

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
check the sticky bit of that directory
 
Old 10-07-2014, 10:47 AM   #3
jogyulas
Member
 
Registered: May 2014
Location: Hungary
Posts: 32

Original Poster
Rep: Reputation: Disabled
It is a good and I have checked it before. But the problem is, that xy copies a new file to this folder, then owner will be xy. If zy copies another one, then owner will be zy. So there will be a lot of files with a lot of owners and it is not appropriate for me. I want, after copying the files' owner would be only one person and not anyone else.
 
Old 10-07-2014, 11:10 AM   #4
deathsfriend99
Member
 
Registered: Nov 2007
Distribution: CentOS 6
Posts: 200

Rep: Reputation: 22
I make sure the users are in the same group, then force create mode and force directory mode to 0770 in my smb.conf for that directory:
Code:
[ADMIN_1]
	comment = admin_1 shared directory
	path = /home/dsk1/ADMIN_1
	directory mask = 0770
	force create mode = 0770
	force directory mode = 0770
	valid users = +admin-grp
	writeable = yes
 
Old 10-07-2014, 11:45 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,804

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
probably you need the "inherit owner" option?
 
  


Reply



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 Question jbraum Linux - Networking 3 10-26-2004 11:11 AM
samba smb.config question (quick question) TheDOGG Linux - Networking 1 03-02-2004 07:19 AM
Samba Question? gsmonk Linux - Networking 1 09-21-2003 10:05 AM
RE: Samba question pls help {Newbie question} Radiouk Linux - Networking 4 06-03-2002 06:40 PM
Samba Question BaWL Linux - Networking 2 05-16-2002 03:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:49 PM.

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