We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
Tags:
create new tag
, view all tags
See BLT.

owner: In Linux, a file has an owner. By default, a file is owned by the user that creates it, in other words, the user that invokes the application that creates it. Some exceptions and clarifications (or things to be clarified):

  • If a script invokes an executable that creates a file, is the created file owned by the owner of the script or by the user who invoked the script? (I need to test sometime -- I don't even have a good guess at this point.)
  • If the suid bit is set on an executable that creates a file, the new file is owned by the owner of the executable, not the user who invoked the executable.
  • I'm assuming (but need to confirm) that the sgid? bit works similarly -- a file newly created by an executable with the sgid bit set "inherits" the group of the executable.

The owner of a file can use chmod to change the permissions for the owner, group, and world. Only root can change ownership of a file (using chown or chgrp). (Confirm: An executable or script that is suid root (i.e., the suid bit is set and the owner is root) can do things like chown or chgrp.)

See:

Contributors

  • RandyKramer - 30 Jan 2002
  • <If you edit this page, add your name here, move this to the next line>
Topic revision: r6 - 07 Sep 2003 - 01:52:00 - AnitaLewis
 
TWIKI.NET
Copyright © 1999-2008 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
See TWiki's New Look