FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 12-16-2009, 08:41 PM
bulut dinibutun
 
Default ubuntu-users Digest, Vol 64, Issue 157

2009/12/16 bulut dinibutun <bulut19@hotmail.com>:
> Hello everyone.
> I was wondering if there's any possible way to give read&write permission in
> a spesific directory without delete permission.
> Let's Say i have a directory named "stored" in home directory and i've set
> up a program so as to save snapped images automatically in that folder by
> the user who snaps the image and i only want root to delete any of these
> images regardless of whoever created it. Is this possible?If so how?

You have to set the "sticky" bit of the directory:

chmod 1777 ~/stored

That way only the owner of the directory and root can delete the files inside.
Each and every other user can create new files (because they have write
permission to the directory). Each file is modificable according to its own
mode (the fact that a file is "read-only" or "read-write" depends on its own
permissions, not on the directory).

Lo?c

-------------------------------------------------------

Hello again

I tried what you've said even did chmod -R but still no luck.
it gives permission to write and delete to everyone.
This is what i get: http://img35.imageshack.us/i/13822852.jpg/
If you have any other suggestions please type back. Or if i did something wrong
please feel free to correct me
Thanks again.


Hotmail: Trusted email with powerful SPAM protection. Sign up now.
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 06:47 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org