Re: file creation permissions

From: Mike Egglestone (mike_at_heri.sd57.bc.ca)
Date: 11/12/03

  • Next message: Joel Konkle-Parker: "Re: Periodic sluggishness in games"
    Date: Tue, 11 Nov 2003 20:38:38 -0800
    To: "debian-user@lists.debian.org" <debian-user@lists.debian.org>
    
    

    Quoting Michael Kahle <michael.kahle@scc-wi.com>:

    > Hello,
    >
    > How would I force a newly created file by userA to have the permissions set
    > automatically to userB, groupB 775?
    >
    > What I am trying to do is when a user uploads a file to our ftp server
    > (proftpd) it does not create the file using their username as the group and
    > owner of the newly created file. I would like instead if they uploaded to
    > dirA it to have a predefined owner and group for the file created. If they
    > upload to dirB a different owner and group etc. Any thoughts? Please
    > point
    > me to documentation, examples, etc. I do not know where to start with
    > this.

    I don't know if its possible to modify the ownership of a newly created file.
    He who creates, becomes owner. You can use the sgid bit to modify the group
    permission to follow that of the parent directory.
    You may want to re-think your upload plan. Perhaps there is a way to accomplish
    what you want with the existing rules of linux permissions.
    Why do you want to change ownerships?

    Mike

    -------------------------------------------------
    This mail sent through IMP: http://horde.org/imp/

    -- 
    To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Joel Konkle-Parker: "Re: Periodic sluggishness in games"

    Relevant Pages

    • Re: file permission question - AIX 4.3.3
      ... > c> upload the files using the root account. ... > c> to be changing the owner or groups around just for this. ... > c> but limit those permissions to only a couple directories out of the ... I set the EDITOR environment variable and used acledit to change ...
      (comp.unix.aix)
    • Re: impossible for other user to chmod files?
      ... >> not have write permissions and will not be allowed to edit the file. ... If the user is not the owner or in the group of the ... When you upload a file using a PHP script the file permissions of the file ... and will *not* be the user who has FTP access to that particular site. ...
      (comp.lang.php)
    • Re: OT : need help - server permissions issue
      ... despite the fact that the upload folder has its permissions set at 777. ... Owner 10003 just means the original file was owned by a user with that id ...
      (rec.autos.sport.f1)
    • Re: file creation permissions
      ... >> How would I force a newly created file by userA to have the permissions set ... >> dirA it to have a predefined owner and group for the file created. ... >> upload to dirB a different owner and group etc. ... Set the umask appropriately for the desired permissions (I find umask ...
      (Debian-User)
    • Re: Object permissions
      ... Who is the owner of the query? ... permissions does the owner have on the underlying tables? ... does the user have on the query; ... to 'owners' in the sql statement each time the code runs, ...
      (microsoft.public.access.security)