https://bugs.documentfoundation.org/show_bug.cgi?id=156796
Bug ID: 156796
Summary: Error when saving a file to share pam_mount for
Windows Server 2012R2 using the "Always create backup
copy" option
Product: LibreOffice
Version: 7.6.0.0 beta1+
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
Created attachment 189003
--> https://bugs.documentfoundation.org/attachment.cgi?id=189003&action=edit
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.
--
You are receiving this mail because:
You are the assignee for the bug.