Ask Your Question

"Freezing" settings ?

asked 2018-11-29 13:43:57 +0200

rolgiati gravatar image

updated 2018-12-01 16:39:16 +0200

erAck gravatar image

I am installing LO on self-service Linux computers in a library.

Which configuration files do I need to "freeze" with chattr to ensure that the default settings are not modified by the users ?

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2018-11-29 14:07:27 +0200

Lupp gravatar image

updated 2018-11-30 18:22:28 +0200

Assuming every self-service point has its own user ID it will also have its own user profile. By default it contains most of the folders listed under >Tools>Options>LibreOffice>Paths. You may copy a default user profile to the respective location and block write access for the (abstract) user to it.
See Specifically regard chapter 3 and tere 3.3.

===Edit1 2018-11-30 18:20 CET===
The German wiki page concerning the user profile is telling:

Unter Linux können Sie den Variablenwert von
z.B. auf
ändern, um einfach ein anderes lokales Verzeichnis parallel zum ursprünglichen für diese Installation einzustellen, oder z.B. auf
um ein einziges globales Benutzerprofil für alle Benutzer dieses Systems gemeinsam einzustellen.

This part is missing in the English page.

edit flag offensive delete link more


Is there any risk of LO malfunctioning if I make all those folders read-only with a chattr -R +i /home/<user name="">/.config/libreoffice/4/user command as root ?

rolgiati gravatar imagerolgiati ( 2018-11-29 14:41:51 +0200 )edit

I'm afraid there's a risk of LO not starting at all in that case. LO requires write access to its profile IIRC.

Mike Kaganski gravatar imageMike Kaganski ( 2018-11-29 14:58:25 +0200 )edit

You could instead create a startup script running when user is logged on to copy default settings files into the LO user folders. Or, if you prefer, a "logout" script to erase any user modification.

ajlittoz gravatar imageajlittoz ( 2018-11-29 15:30:27 +0200 )edit

This is the fall-back plan if I chattr .config/libreoffice/4/user causes problems with LO: save a clean copy of .config/libreoffice/4/user in another directory, chmod'ed to RO and"frozen" with chattr, which the script will cp to ~, and chmod to RW

rolgiati gravatar imagerolgiati ( 2018-11-29 20:19:43 +0200 )edit

After some testing with a portable version I feel sure again that LibreOffice accepts a user profile without write access. I observed the registrymodifications.xcu specifically.
@rolgiati: Please report here your definite experience. You can answer your own question for this purpose.

Lupp gravatar imageLupp ( 2018-11-30 18:13:58 +0200 )edit

That wiki page's hint to share a user profile among all users ("globales Benutzerprofil für alle Benutzer") is very ill advised. In fact it doesn't work (LibreOffice refuses to start a second instance with the same UserInstallation path) and if it would the configuration would be scrambled by different instances trying to write to the same profile. Which exactly the English page explains.

erAck gravatar imageerAck ( 2018-12-01 16:25:13 +0200 )edit

answered 2018-12-01 16:38:24 +0200

erAck gravatar image

updated 2018-12-01 16:43:50 +0200

You want to read the answers to Admin-Configuration. And also take a look at the wiki Deployment and Migration.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-11-29 13:43:57 +0200

Seen: 78 times

Last updated: Dec 01 '18