LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   samba guest directory once write then no delete (https://www.linuxquestions.org/questions/linux-networking-3/samba-guest-directory-once-write-then-no-delete-213009/)

ilnli 08-03-2004 02:21 PM

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?

Sutekh 08-30-2004 01:36 AM

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 ;-])


All times are GMT -5. The time now is 08:43 PM.