[gollem] umask settings
Paul Dorman
paul.dorman at solnetsolutions.co.nz
Fri Nov 18 21:10:59 PST 2005
Well, I don't know about you, but I think an good solution to my problem
(which I've just implemented) is to add a call to
$GLOBALS['gollem_vfs']->changePermissions($dir, $name, '770'); to
createFolder and a similar one for writeFile in Gollem.php.
I capture the returned values to each call (writeFile/createFolder and
changePermissions) and return the combined boolean.
I've also taken out the Permissions column from the display, and the
chmod option from the drop-down Actions list.
Now the files get created with the exact same permissions as they would
have if the user had put files or created directories with ftp, scp, or
sftp.
Incidentally, for those Horde users who just want to leverage Gollem for
some reason, having the ability to set a default umask or permission set
could be useful.
Regards,
Paul
On Fri, 2005-11-18 at 11:44 +0100, Jan Schneider wrote:
> Zitat von Michael M Slusarz <slusarz at bigworm.curecanti.org>:
>
> > Quoting Paul Dorman <paul.dorman at solnetsolutions.co.nz>:
> >
> >> Hi there, I wonder if there's a way to force file permissions with
> >> gollem. I know it will probably be a hack, but I'd like to have a set
> >> default for uploaded files which is preserved during moving and copying.
> >>
> >> Is there any way to do this elegantly?
> >
> > No. And if this is to be done in the future, it needs to be
> > implemented in the VFS drivers - gollem would not be the place to do
> > the umask stuff.
>
> Well, we have a umask configuration setting in Horde, so at least if
> using the "file" VFS driver, this should be used.
>
> Jan.
>
> --
> Do you need professional PHP or Horde consulting?
> http://horde.org/consulting/
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.horde.org/archives/gollem/attachments/20051118/51fb1b81/attachment.bin
More information about the gollem
mailing list