Bug 156796 - Error when saving a file to share pam_mount for Windows Server 2012R2 using the "Always create backup copy" option
Summary: Error when saving a file to share pam_mount for Windows Server 2012R2 using t...
Status: RESOLVED DUPLICATE of bug 55004
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.6.0.0 beta1+
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-17 07:26 UTC by Eugeny Shesteperov
Modified: 2023-08-17 07:54 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
error (57.78 KB, image/png)
2023-08-17 07:26 UTC, Eugeny Shesteperov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eugeny Shesteperov 2023-08-17 07:26:23 UTC
Created attachment 189003 [details]
error

Description

Stand:

-   Server: Windows Server 2012R2.
-   Client: ALT KWorkstation 10.1 updated to current P10 repository and
    joined to domain.

Created AD share on C:\share as \\dc\share, read and write permissions
for everyone.

Steps to reproduce

1.  Delete maintainer version and install beta build:

    # apt-get remove LibreOffice-still-common LibreOffice-still-mimetypes LibreOffice-plugin-altcsp -y && \
    wget https://dev-builds.libreoffice.org/daily/libreoffice-7-6/Linux-rpm_deb-x86_64@tb87-TDF/current/LibreOfficeDev_7.6.1.0.0_Linux_x86-64_rpm.tar.gz && \
    tar xvf LibreOfficeDev_7.6.1.0.0_Linux_x86-64_rpm.tar.gz && \
    cd LibreOfficeDev_7.6.1.0.0_Linux_x86-64_rpm/RPMS && \
    apt-get install ./*.rpm

2.  Write pam_mount to the default authentication scheme. Added lines to
    the end of the file (/etc/pam.d/system-auth):

        # echo "session         [success=1 default=ignore] pam_succeed_if.so  service = systemd-user quiet" >> /etc/pam.d/system-auth
        # echo "session         optional        pam_mount.so disable_interactive" >> /etc/pam.d/system-auth

3.  Add volume definition to the default config::

        # sed -i 's|<!-- Volume definitions -->|<volume uid="10000-2000200000" fstype="cifs" server="addc" path="share" mountpoint="/share" options="sec=krb5,vers=3.0,cruid=%(USERUID),nounix,uid=%(USERUID),gid=%(USERGID),file_mode=0664,dir_mode=0775" />|g' /etc/security/pam_mount.conf.xml
        # reboot

        # cat /etc/security/pam_mount.conf.xml
        <?xml version="1.0" encoding="utf-8" ?>
        <!DOCTYPE pam_mount SYSTEM "pam_mount.conf.xml.dtd">
        <pam_mount>
        <debug enable="0" />
                <volume uid="10000-2000200000" fstype="cifs" server="addc" path="share" mountpoint="/share" options="sec=krb5,vers=3.0,cruid=%(USERUID),nounix,uid=%(USERUID),gid=%(USERGID),file_mode=0664,dir_mode=0775" />
        <mntoptions allow="nosuid,nodev,loop,encryption,fsck,nonempty,allow_root,allow_other,sec" />
        <mntoptions require="nosuid,nodev" />
        <logout wait="0" hup="no" term="no" kill="no" />
        <mkmountpoint enable="1" remove="true" />
        </pam_mount>

4.  Log in as a domain user.

5.  Create LibreOffice Writer Document.odt (for example, in the
    ~/Desktop) and move it to /share

6.  Open the document.

7.  Select “Tools” → “Options” → “Load/save” → “General”.

8.  Check the checkbox “Always create backup copy”.

9.  Click Apply, then OK.

10. Save the document.

Actual Results

Error when saving a document (see screenshot):

Error saving the document Document: Error creating object. Could not
create backup copy.

Expected Results

Successful document saving.
Comment 1 Julien Nabet 2023-08-17 07:54:08 UTC

*** This bug has been marked as a duplicate of bug 55004 ***