LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-21-2005, 07:06 AM   #1
utw-mephisto
Member
 
Registered: Apr 2005
Posts: 93

Rep: Reputation: 16
what Permission can I use for that ?


I would like to set folder permission to allow a user to save files in a folder but not to rename or delete .. is that even possible ? As far as I understand the linux write permission it allows also delete / rename ?!?
 
Old 12-21-2005, 08:12 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
I don't think that is possible with standard permissions. You can set the "sticky bit" on a directory which allows only the user that created/owns the file in the directory, the owner of the directory and root, to delete/rename it. You would do that by giving all users rwx permissions on the directory then set the sticky bit with:

# chmod +t <directory>

The /tmp directory typically has this type of permission, i.e. everyone can write to /tmp but only the person that created the file(and root) can delete it.
That's the closest that I think you can come with standard permissions. You may be able to get more fine tuned permissions/control with ACLs(short for "access control lists") but I'm not that familiar with those.

Last edited by kilgoretrout; 12-21-2005 at 08:17 AM.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 04:50 AM
no permission... mifan Linux - Networking 9 01-23-2006 09:56 AM
how to have permission? jesusphreak Linux - Newbie 4 01-23-2005 05:12 AM
Permission Infinite_Pizza Linux - General 5 04-20-2004 09:40 PM
permission help! beautifulmind Linux - General 1 07-24-2002 03:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:14 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
Open Source Consulting | Domain Registration