[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnu-arch-users] Re: file permissions in archive
From: |
Jan Hudec |
Subject: |
Re: [Gnu-arch-users] Re: file permissions in archive |
Date: |
Tue, 19 Aug 2003 07:31:32 +0200 |
User-agent: |
Mutt/1.5.4i |
On Mon, Aug 18, 2003 at 04:33:19AM -0800, Ethan Benson wrote:
> On Mon, Aug 18, 2003 at 08:34:00AM +0200, Jan Hudec wrote:
> > On Fri, Aug 15, 2003 at 04:41:25PM +0200, Enno Cramer wrote:
> > > > I will, once I find enough free time, take a look into the sftp
> > > > transport and try to add some stat/chmod hack to have every newly
> > > > created file/directory in the archive "inherit" its permission. That
> > > > would allow to control access using unix groups with category, branch
> > > > or even version granularity.
> > >
> > > As promised, here is my hack to allow multi-user archives with sftp write
> > > access. This patch changes the group id and permission for every newly
> > > created file or directory to the parent directory's gid/permission.
> >
> > Isn't that supposed to happen automaticaly when there is a suid/sgid bit
> > set on the directory?
>
> for groups yes, permissions no.
>
> for permissions you would need a default ACL.
Well, the suid/sgid is inherited by directories as well, but the write
permission is not :-(.
-------------------------------------------------------------------------------
Jan 'Bulb' Hudec
<address@hidden>