LinuxQuestions.org
Review your favorite Linux distribution.
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 07-04-2005, 10:58 AM   #1
dar28ek
LQ Newbie
 
Registered: Jul 2005
Posts: 10

Rep: Reputation: 0
Samba configuration question


Hello
Is it possible to configure Samba so someone has permission to write new files to a folder but is not allowed to remove existing files from the folder?
 
Old 07-04-2005, 11:34 AM   #2
titanium_geek
Senior Member
 
Registered: May 2002
Location: Melbourne Australia
Distribution: it died/ macosx
Posts: 2,478

Rep: Reputation: 50
Welcome to LQ!

yeah, this should be possible. Have you googled?
http://www.google.com/search?hl=en&l...er&btnG=Search

titanium_geek
 
Old 07-04-2005, 01:04 PM   #3
Noth
Member
 
Registered: Jun 2005
Distribution: Debian
Posts: 356

Rep: Reputation: 30
Not that I know of, if you have write access to the share and the containing directory you can delete files as well as create them. Nothing stands out in the smb.conf man page, but I could be wrong, it's been a while since I've messed with Samba.
 
Old 07-04-2005, 05:13 PM   #4
dar28ek
LQ Newbie
 
Registered: Jul 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Thank you for your advice. I've read information on the subject I found in google, but I have'nt found the solution. "Sticky bit " doesn't work because it permits to delete files by their owners. In my case all the people are logged with the same username and they can delete files each other even if the sticky bit is set.

Is there a possibility to configure Samba in such a way that the owner of any file written to the shared directory could be for example "root"? I think It could be a solution.
 
Old 07-04-2005, 06:35 PM   #5
Noth
Member
 
Registered: Jun 2005
Distribution: Debian
Posts: 356

Rep: Reputation: 30
Since they own the file they don't have to delete it, they can open it and delete all of the data from it. What exactly are you trying to prevent?
 
Old 07-05-2005, 04:17 AM   #6
dar28ek
LQ Newbie
 
Registered: Jul 2005
Posts: 10

Original Poster
Rep: Reputation: 0
I want children who are users of shared folders on windows machines, don't have possibility to delete each other files. It is comfortable they use the same userid. They are to have rights to write their work to the folder, but not the right to delete any files written to the folder.
 
Old 07-05-2005, 11:26 AM   #7
titanium_geek
Senior Member
 
Registered: May 2002
Location: Melbourne Australia
Distribution: it died/ macosx
Posts: 2,478

Rep: Reputation: 50
I think that the best way to work with this would to give each child an individual user name, and/or have VERY strict punishments for deletion of another file.
PS- what Noth said is right- if they can open them then they can just delete the info- achieving the same thing. This is actually more effective than deleting.

titanium_geek
 
  


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
Samba Configuration ..? matrixpk Linux - Networking 13 05-31-2005 10:55 AM
Samba configuration help Krenn Slackware 3 07-30-2004 08:22 PM
Samba Configuration EzehM Linux - Networking 6 06-24-2004 03:46 PM
I need some Samba configuration help... GetCool Linux - Networking 2 11-17-2003 06:36 PM
Need your help on SAMBA configuration vwhk Linux - Software 4 01-14-2002 07:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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