You can use the "Sticky Bit"

Read this article:
http://www.redhat.com/docs/manuals/linux/RHL-8.0-Manual/admin-primer/ch-acctsgrps.html

Steven


--Extract--

setuid — used only for applications, this permission indicates that the
application runs as the owner of the file and not as the user executing
the application. It is indicated by the character s in place of the x in
the owner category. If the owner of the file does not have execution
permissions, the S is capitalized.
--set it with: chmod 4xxx dir/file--

setgid — used primarily for applications, this permission indicates that
the application runs as the group owning the file and not as the group
executing the application. If applied to a directory, all files a user
creates within the directory are owned by the group who owns the
directory, rather than by the user's private group (see the chapter
titled Users and Groups in Official Red Hat Linux Reference Guide for
more about user private groups). It is indicated by the character s in
place of the x in the group category. If the group owner of the file or
directory does not have execution permissions, the S is capitalized.
--set it with: chmod 2xxx dir/file--

sticky bit — used primarily on directories, this bit dictates that a
file created in the directory can be removed only by the user who
created the file. it is indicated by the character t in place of the x
in the everyone category. in Red Hat Linux the sticky bit is set by
default on the /tmp/ directory for exactly this reason.
--set it with: chmod 1xxx dir/file--



- 

On Sat, 2003-06-07 at 19:12, Kristjan wrote:
> Hi
> 
> It must be a simple thing but still 
> 
> How can I make so that users can
> change the ownership of files that are resided in their own home
> directory and that are not owned by them
> 
> Currently an user who issues 'chown' command to the file that is not
> owned by him only gets that operation is not permitted 
> 
> 
> Kristjan
> 
> 
> ______________________________________________________________________
> 
> Want to buy your Pack or Services from MandrakeSoft? 
> Go to http://www.mandrakestore.com


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to