Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am currently using Linux Mint 14 - Nadia as my Operating System.

The biggest inconvenience right now is not being able to open Libreoffice as a normal user or simply by just double clicking it. Every time I have to run it as root .

$sudo libreoffice3.6 

Even to open a simple document, I have to open do it by the terminal itself

$sudo libreoffice3.6 document.doc

Here is the error messages I get if I try to open it without being root.

$ libreoffice3.6
[Java framework] Error in function createSettingsDocument (elements.cxx).
javaldx failed! 
Warning: failed to read path from javaldx
terminate called after throwing an instance of 'com::sun::star::uno::RuntimeException'

Is there anyway to get around this? -------EDIT--------

Output of ls -l $(which libreoffice3.6)`

$ ls -l $(which libreoffice3.6)
lrwxrwxrwx 1 root root 35 Nov 28 15:23 /usr/bin/libreoffice3.6 -> /opt/libreoffice3.6/program/soffice
share|improve this question
1  
As root user you run libreoffice. Why do you run libreoffice3.6 with your user instead? Could you add the output of ls -l $(which libreoffice) and ls -l $(which libreoffice3.6)? –  jaume Mar 12 '13 at 7:34
    
@jaume , sorry about that , it was a typo it is ibreoffice3.6 with both normal and root user –  Beagle Bone Mar 12 '13 at 7:38
    
@jaume , i have added output of ls -l $(which libreoffice3.6) –  Beagle Bone Mar 12 '13 at 7:42

2 Answers 2

up vote 7 down vote accepted

Perhaps you have the same problem as this guy did.

Make sure your user owns ~/.config and everything in it.

This should do it:

sudo chown -R --reference="$HOME" ~/.config

It'll change everything in that directory to have the same owner and group as your home directory, which should have the proper values.

share|improve this answer
    
perfect answer , thank you !! –  Beagle Bone Mar 13 '13 at 2:20

It looks like your username is not identified by linux to have enough privilege to run commands. A few things you should check like:

Make sure you are in sudo group with this command.

$ getent group sudo

It should show output as sudo:x:27:fayad

If you are not in it add the username with

$ sudo gpasswd -a <user> sudo

Crosscheck your /etc/sudoers by opening the file and confirming it has the following lines.

# Allow members of group sudo to execute any command

%sudo ALL=(ALL:ALL) ALL

share|improve this answer
    
after running getent group sudo , i got sudo:x:27:barath , which matches , what you posted. and even the /etc/sudoers file is exactly in place , as you have specified... –  Beagle Bone Mar 12 '13 at 17:54
    
Okay, do you get the same results with other applications too? You could also try uninstalling Libreoffice using synaptic and doing a fresh install to see if its the same. –  fayadfami Mar 12 '13 at 18:39
1  
the other answer fixed it ,thanks for your help !! –  Beagle Bone Mar 13 '13 at 2:22

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.