[Solved] Newly created Fedora 21 userid cannot launch LibO

Issues with installing under all GNU/Linux Distributions
Post Reply
djl47
Posts: 25
Joined: Wed May 05, 2010 4:00 am

[Solved] Newly created Fedora 21 userid cannot launch LibO

Post by djl47 »

I created a new userid on my Fedora 21 system so I could demo Fedora and apps to coworkers without leaving my personal account exposed. After logging into the account I launched Firefox and verified connectivity without any problems. Then I launched Libre office and got the following error message

Code: Select all

The application cannot be started. 
LibreOffice user installation could not be processed due to missing access rights. Please make sure that you have sufficient access rights for the following location and restart LibreOffice:

/home/fedorademo/.config/libreoffice/4
This looks like a variation of the problem where these folders were created with root ownership but that isn't the case with this account as everything is owned by the new account.

Code: Select all

[fedorademo@tesseract ~]$ pwd
/home/fedorademo
[fedorademo@tesseract ~]$ cd .config
[fedorademo@tesseract .config]$ ll
total 80
<snip>
drwxrwxr-x. 3 [I]fedorademo fedorademo[/I] 4096 Feb  9 20:12 libreoffice
<snip>
[fedorademo@tesseract .config]$ cd libreoffice
[fedorademo@tesseract libreoffice]$ ll
total 4
drwx------. 3 [I]fedorademo fedorademo[/I] 4096 Feb  9 20:12 4
[fedorademo@tesseract libreoffice]$ cd 4
[fedorademo@tesseract 4]$ ll
total 4
drwxrwxr-x. 9 fedorademo fedorademo 4096 Feb  9 20:42 user
[fedorademo@tesseract 4]$ cd user
[fedorademo@tesseract user]$ ll
total 32
drwxrwxr-x. 2 fedorademo fedorademo 4096 Feb  9 20:42 autotext
drwxrwxr-x. 3 fedorademo fedorademo 4096 Feb  9 20:42 basic
drwxrwxr-x. 2 fedorademo fedorademo 4096 Feb  9 20:42 config
drwxrwxr-x. 3 fedorademo fedorademo 4096 Feb  9 20:42 database
drwxrwxr-x. 2 fedorademo fedorademo 4096 Feb  9 20:12 extensions
drwxrwxr-x. 2 fedorademo fedorademo 4096 Feb  9 20:42 gallery
-rw-------. 1 fedorademo fedorademo  329 Feb  9 20:42 registrymodifications.xcu
drwxrwxr-x. 2 fedorademo fedorademo 4096 Feb  9 20:12 uno_packages
[fedorademo@tesseract user]$ cd  config
[fedorademo@tesseract config]$ ll
total 404
-rw-r--r--. 1 fedorademo fedorademo   4308 Jan 16 18:28 arrowhd.soe
-rw-r--r--. 1 fedorademo fedorademo  48408 Jan 16 18:27 autotbl.fmt
-rw-r--r--. 1 fedorademo fedorademo  30852 Jan 16 18:28 classic.sog
-rw-r--r--. 1 fedorademo fedorademo  13132 Jan 16 18:28 cmyk.soc
-rw-r--r--. 1 fedorademo fedorademo   4408 Jan 16 18:28 gallery.soc
-rw-r--r--. 1 fedorademo fedorademo   5238 Jan 16 18:28 hatching.soh
-rw-r--r--. 1 fedorademo fedorademo  10766 Jan 16 18:28 html.soc
-rw-rw-r--. 1 fedorademo fedorademo   2329 Feb  9 20:12 javasettings_Linux_X86_64.xml
-rw-r--r--. 1 fedorademo fedorademo   2334 Jan 16 18:28 libreoffice.soc
-rw-r--r--. 1 fedorademo fedorademo   6840 Jan 16 18:28 modern.sog
-rw-r--r--. 1 fedorademo fedorademo   5271 Jan 16 18:28 palette.soc
-rw-r--r--. 1 fedorademo fedorademo  31320 Jan 16 18:28 scribus.soc
-rw-r--r--. 1 fedorademo fedorademo 155895 Jan 16 18:28 standard.sob
-rw-r--r--. 1 fedorademo fedorademo  11461 Jan 16 18:28 standard.soc
-rw-r--r--. 1 fedorademo fedorademo   2426 Jan 16 18:28 standard.sod
-rw-r--r--. 1 fedorademo fedorademo   4984 Jan 16 18:28 standard.soe
-rw-r--r--. 1 fedorademo fedorademo   5080 Jan 16 18:28 standard.sog
-rw-r--r--. 1 fedorademo fedorademo   2171 Jan 16 18:28 standard.soh
-rw-r--r--. 1 fedorademo fedorademo   1708 Jan 16 18:28 styles.sod
-rw-r--r--. 1 fedorademo fedorademo   2331 Jan 16 18:28 tango.soc
-rw-r--r--. 1 fedorademo fedorademo  14420 Jan 16 18:28 web.soc
[fedorademo@tesseract config]$
And so on
I've tried it with an admin account and a standard account in Fedora 21 and both fail. This was a surprise to me because I've been using Libre Office for two months with the account created by the Fedora 21 installation dialogues.
I tried Libre Office with a newly created standard account in Fedora 20 and it worked without any problems.
Fedora 20 is running a slightly older version of Libreoffice 4.2.8.2-2.fc20
Fedora 21 is running 4.3.5.2-11.fc21. Any thoughts on how to troubleshoot this would be appreciated. Right now I can't tell if it is a LibreOffice problem or a Fedora problem. Has anyone seen anything similar in Open Office?
Last edited by Hagar Delest on Mon Feb 16, 2015 10:28 pm, edited 1 time in total.
Reason: tagged [Solved].
Libre Office 4.3.5.2 - Fedora 21 HP G72 Laptop / Windows 8.1 x64 HP Pavilion x2 "Laptablet" / Libre Office 4.2.8.2 - Linux Fedora 20 x64 - HP G72 Laptop
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: Newly created Fedora 21 userid cannot launch Libre Offic

Post by acknak »

Do you have selinux enabled? That's where I look when there's a permission problem and all the standard access controls look ok.

Simplest thing might be to disable selinux and try again, although that won't direct you to the exact problem.

I can't think of why selinux might block LO from creating files in your own directory, but who knows?
 Edit: PS: 
I guess the other thing to check is whether you have an instance of LO already running on the system. It might be that LO is trying to use the other instance (running as another user) instead of starting a new one for the demo user. That shouldn't happen, but it's a possibility.
AOO4/LO5 • Linux • Fedora 23
djl47
Posts: 25
Joined: Wed May 05, 2010 4:00 am

Re: Newly created Fedora 21 userid cannot launch Libre Offic

Post by djl47 »

A long time ago I found a standard.soc file (here on this forum) that contained a much more usable color profile than the default profile that comes with Libreoffice. I copied it to /usr/lib64/libreoffice/presets/config and to my own libreoffice config directories and forgot about it. Months later I added a new user and the default permissions in the source folder caused Libreoffice to fail when it tried to copy the file to the local user folder. I changed the permissions to 644 and everything worked fine.
[root@tesseract fedorauser]# cd /usr/lib64/libreoffice/presets/config
[root@tesseract config]# ll
total 416
-rw-r--r--. 1 root root 4308 Jan 16 18:28 arrowhd.soe
-rw-r--r--. 1 root root 48408 Jan 16 18:27 autotbl.fmt
-rw-r--r--. 1 root root 30852 Jan 16 18:28 classic.sog
-rw-r--r--. 1 root root 13132 Jan 16 18:28 cmyk.soc
-rw-r--r--. 1 root root 4408 Jan 16 18:28 gallery.soc
-rw-r--r--. 1 root root 5238 Jan 16 18:28 hatching.soh
-rw-r--r--. 1 root root 10766 Jan 16 18:28 html.soc
-rw-r--r--. 1 root root 2334 Jan 16 18:28 libreoffice.soc
-rw-r--r--. 1 root root 6840 Jan 16 18:28 modern.sog
-rw-r--r--. 1 root root 5271 Jan 16 18:28 palette.soc
-rw-r--r--. 1 root root 31320 Jan 16 18:28 scribus.soc
-rw-r--r--. 1 root root 155895 Jan 16 18:28 standard.sob
-rw-------. 1 root root 15719 Mar 6 2014 standard.soc
-rw-r--r--. 1 root root 2426 Jan 16 18:28 standard.sod
-rw-r--r--. 1 root root 4984 Jan 16 18:28 standard.soe
-rw-r--r--. 1 root root 5080 Jan 16 18:28 standard.sog
-rw-r--r--. 1 root root 2171 Jan 16 18:28 standard.soh
-rw-r--r--. 1 root root 1708 Jan 16 18:28 styles.sod
-rw-r--r--. 1 root root 2331 Jan 16 18:28 tango.soc
-rw-r--r--. 1 root root 11461 Jan 16 18:28 uglystandard.uglysoc
-rw-r--r--. 1 root root 14420 Jan 16 18:28 web.soc
In other news I tried setting selinux to permissive. The are some obsolete instructions floating around on the net. Here's what worked on my system.

Code: Select all

[root@tesseract config]# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
[COLOR="Red"]Current mode:                   enforcing[/COLOR]
Mode from config file:          enforcing
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Max kernel policy version:      29
[COLOR="Red"][root@tesseract config]# setenforce 0[/COLOR]
[root@tesseract config]# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
[COLOR="Red"]Current mode:                   permissive[/COLOR]
Mode from config file:          enforcing
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Max kernel policy version:      29
[COLOR="Red"][root@tesseract config]# setenforce 1[/COLOR]
[root@tesseract config]# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
[COLOR="Red"]Current mode:                   enforcing[/COLOR]
Mode from config file:          enforcing
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Max kernel policy version:      29
[root@tesseract config]# 
Thanks for the input. In the end it was noticing that standard.soc hadn't been copied to the local config directory while uglystandard.uglysoc (the original) had been copied. I eventually recognized this as a clue.
Libre Office 4.3.5.2 - Fedora 21 HP G72 Laptop / Windows 8.1 x64 HP Pavilion x2 "Laptablet" / Libre Office 4.2.8.2 - Linux Fedora 20 x64 - HP G72 Laptop
Post Reply