LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-03-2004, 02:21 PM   #1
ilnli
Member
 
Registered: Jul 2004
Location: Pakistan
Distribution: Slackware 10.0, SUSE 9.1, RH 7, 7.3, 8, 9, FC2
Posts: 413

Rep: Reputation: 32
samba guest directory once write then no delete


I am running samba on my LAN. I have a guest directory which is readable and writable by everyone.

I want to do something on this directory and that is;

I want the users only to write and read in this directory , but they should not be able to delete any file from this directory.

i.e; If a user has created a file in this directory then he should not be able to delete or replace it.

Please tell me how it is possible?
 
Old 08-30-2004, 01:36 AM   #2
Sutekh
Member
 
Registered: Apr 2002
Location: Melbourne, Australia
Distribution: Gentoo
Posts: 273

Rep: Reputation: 30
Re: samba guest directory once write then no delete

Quote:
Originally posted by ilnli
i.e; If a user has created a file in this directory then he should not be able to delete or replace it.
if you used the

create mask = 444

and a

force create mask = 444

I think the permissions will indeed end up as 444 (that is read-only)

The create mask will be AND'd with the DOS permissions (in this case clearning the write and execute bits) and the force create mask is then OR'd with the result making sure that at least the read bit is set (i am not sure you can turn it off mind you so that is probably redundant). Actaully looking again the default for force create mask is 000 which should mean the the create mask goes through in tact without this needing to be changed.

I have never tried this so I could be wildly off here but when I get home i will give it a shot (people get narky if I shutdown our file server at work for some reason ;-])
 
  


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
Can't delete a directory with samba mortalic Linux - Networking 7 12-21-2010 12:03 AM
Help required with samba... deny delete but allow write? NuLLiFiEd Linux - Networking 5 07-04-2005 04:53 PM
samba share with write but not delete Red Squirrel Linux - Software 7 08-29-2004 06:12 PM
guest write access through samba? Tangz Linux - Networking 3 07-11-2004 07:23 AM
Can not write to SAMBA directory nairnie Linux - Networking 8 11-21-2003 07:58 PM

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

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