[gollem] umask settings
Michael M Slusarz
slusarz at mail.curecanti.org
Sun Nov 20 23:14:48 PST 2005
Quoting Paul Dorman <paul.dorman at solnetsolutions.co.nz>:
> 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.
I'll admit - I forgot about changePermissions() in VFS. I think we can
add this fairly easy by simply adding a default permissions parameter
to backends.php. With the knowledge that this option will simply be
ignored in VFS backends that do not support it (i.e. sql).
michael
_______________________________________
Michael Slusarz [slusarz at curecanti.org]
More information about the gollem
mailing list