Re: file creation permissions
From: Mike Egglestone (mike_at_heri.sd57.bc.ca)
Date: 11/12/03
- Previous message: Joyce, Matthew: "RE: regarding kernels"
- In reply to: Michael Kahle: "file creation permissions"
- Next in thread: Ken Irving: "Re: file creation permissions"
- Reply: Ken Irving: "Re: file creation permissions"
- Reply: Anita Lewis: "Re: file creation permissions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: Joyce, Matthew: "RE: regarding kernels"
- In reply to: Michael Kahle: "file creation permissions"
- Next in thread: Ken Irving: "Re: file creation permissions"
- Reply: Ken Irving: "Re: file creation permissions"
- Reply: Anita Lewis: "Re: file creation permissions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|