https://bugs.freedesktop.org/show_bug.cgi?id=83529

          Priority: medium
            Bug ID: 83529
          Assignee: [email protected]
           Summary: LibreOffice tries to make user's config file with
                    wrong permission.
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: [email protected]
          Hardware: All
            Status: UNCONFIRMED
           Version: unspecified
         Component: Libreoffice
           Product: LibreOffice

-----Details-----
When I am menber of the group "root", LibreOffice generates some config file
with root group's ownership on initial startup.

$ find /home/myuser/.config/libreoffice/ -group root
/home/username/.config/libreoffice/4/user/config/standard.soe
/home/username/.config/libreoffice/4/user/config/standard.soc
/home/username/.config/libreoffice/4/user/config/modern.sog
/home/username/.config/libreoffice/4/user/config/standard.sod
/home/username/.config/libreoffice/4/user/config/gallery.soc
/home/username/.config/libreoffice/4/user/config/classic.sog
/home/username/.config/libreoffice/4/user/config/html.soc
/home/username/.config/libreoffice/4/user/config/styles.sod
/home/username/.config/libreoffice/4/user/config/palette.soc
/home/username/.config/libreoffice/4/user/config/tango.soc
/home/username/.config/libreoffice/4/user/config/autotbl.fmt
/home/username/.config/libreoffice/4/user/config/hatching.soh
/home/username/.config/libreoffice/4/user/config/arrowhd.soe
/home/username/.config/libreoffice/4/user/config/cmyk.soc
/home/username/.config/libreoffice/4/user/config/standard.soh
/home/username/.config/libreoffice/4/user/config/web.soc
/home/username/.config/libreoffice/4/user/config/scribus.soc
/home/username/.config/libreoffice/4/user/config/standard.sog
/home/username/.config/libreoffice/4/user/config/standard.sob
/home/username/.config/libreoffice/4/user/config/libreoffice.soc
/home/username/.config/libreoffice/4/user/autotext/mytexts.bau
/home/username/.config/libreoffice/4/user/basic/script.xlc
/home/username/.config/libreoffice/4/user/basic/dialog.xlc
/home/username/.config/libreoffice/4/user/basic/Standard/script.xlb
/home/username/.config/libreoffice/4/user/basic/Standard/dialog.xlb
/home/username/.config/libreoffice/4/user/basic/Standard/Module1.xba
/home/username/.config/libreoffice/4/user/database/biblio.odb
/home/username/.config/libreoffice/4/user/database/evolocal.odb
/home/username/.config/libreoffice/4/user/database/biblio/biblio.dbf
/home/username/.config/libreoffice/4/user/database/biblio/biblio.dbt
/home/username/.config/libreoffice/4/user/gallery/sg30.sdv
/home/username/.config/libreoffice/4/user/gallery/sg30.thm

The function "oslChangeFileModes" in sal/osl/unx/file_misc.cxx changes only
uid.
//---------
if ( nUID != getuid() )
    {
        nUID=getuid();
    }
//---------

And I suppose it should change gid too.
//---------
if ( nUID != getuid() )
    {
        nUID=getuid();
    }
if ( nGID != getgid() )
    {
        nGID=getgid();
    }
//---------

-----Steps to reproduce-----
1. Add user to group "root".
2. Remove ~/.config/libreoffice/
3. Start any LibreOffice application.

-----Expected result-----
All files in ~/.config/libreoffice/ should be owned by "myuser:myusergroup".

-----Actual result-----
Some files  are owned by "myuser:root".


I'm sorry if my English is hard to understand. 
Please ask if you would like me to explain something again.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to