On Mon, Mar 16, 2009 at 2:14 PM, Przemyslaw Czerpak <[email protected]> wrote:
> You can try to umask() to control file permission or you can > disable effective user and group IDs by seteuid(setuid())/setegid(setuid()). > Unfortunately it effects all threads so in some cases it's not good solution > for MT programs. > ... > You can also resolve the problem by using special attributes for > directories used to export data. If you set SGID on a directory > then each file create in this directory will inherit group from > the directory. It's quite good and efficient method ant it's not > necessary to modify code. Many thanks. I'll try them. The main problem seems to be the "run as" situation. Apps invoked weith xdg-email or xdg-open need to have user rights. Actually in the SUID setup I send the files via email to the user but it's more a solution for remote mobile users. Local desktop users expects to have their pdf viewer open when they choose "export as pdf". best regards, Lorenzo _______________________________________________ Harbour mailing list [email protected] http://lists.harbour-project.org/mailman/listinfo/harbour
