Re: umask settings

Michael M Slusarz <[email protected]>
Newsgroups gmane.comp.horde.gollem
Message-ID <[email protected]>
Quoting Paul Dorman <[email protected]>:

> 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 [[email protected]]
-- 
Gollem mailing list - Join the hunt: http://horde.org/bounties/#gollem
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.