DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2009-06-04 06:56:52

Chad
New member
Registered: 2009-06-02
Posts: 2

Stop users deleting files but still allow them to write

I'm pretty new to Linux, so please bear with me.

I have a DNS-323 setup with a shared directory that many users need to be able to create and copy files to.  I need to be able to stop most of the users from being able to delete from this directory.

I am unable to find in Linux, any way to stop users from being able to delete files without just making their permissions read only (which of course stops them copying files here).

Is there any way I can prohibit the delete permission?


Thanks
Chad

Offline

 

#2 2009-06-04 17:00:19

Nosiow
Member
Registered: 2009-04-28
Posts: 13

Re: Stop users deleting files but still allow them to write

Hi Chad,

although I have not tried it myself, the 't' bit in the folder/directory permission is made for this. Go in the directory in question, and apply "chmod +t ." (or in the parent directory and "chmod +t directory_name").

Curious to know if this works...

Offline

 

#3 2009-06-04 19:14:56

qryptiq
Member
From: New Ro
Registered: 2009-03-10
Posts: 49

Re: Stop users deleting files but still allow them to write

hopefully the -t doesn't limit the admin also...


~~~~~~~~~~~~~~~~~~~
DNS-321, 2x1.5tb Barracudas

Offline

 

#4 2009-06-05 05:58:40

Chad
New member
Registered: 2009-06-02
Posts: 2

Re: Stop users deleting files but still allow them to write

Thanks Nosiow,

But as qryptiq feared, the users that are required to do houskeeping etc and delete files from this directory are also limited by this.

Offline

 

#5 2009-06-05 19:43:57

Nosiow
Member
Registered: 2009-04-28
Posts: 13

Re: Stop users deleting files but still allow them to write

Surely root can delete all files (check the rm flags). At least one option is to temporarily login as the given user ("su username"). Otherwise, but very awkward, root can always remove the t bit for cleanup time...

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB