Re: umask settings

Paul Dorman <[email protected]>
Newsgroups gmane.comp.horde.gollem
Organization SolNet Solutions Limited
Message-ID <[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.

Regards,
Paul

On Fri, 2005-11-18 at 11:44 +0100, Jan Schneider wrote:
> Zitat von Michael M Slusarz <[email protected]>:
> 
> > Quoting Paul Dorman <[email protected]>:
> >
> >> 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/
>

-- 
Gollem mailing list - Join the hunt: http://horde.org/bounties/#gollem
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQBDfrPjB8Id2hG6URURAksJAJ9kh6ihIOtMIN6XiGr5NpJGGNvrPwCfd0gs
Bf+KnqBXunNqvTt6sFFKHYE=
=DwQm
-----END PGP SIGNATURE-----
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.