Only root User is able to open LibreOffice












7














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
    – Barath Bushan
    Mar 12 '13 at 7:38










  • @jaume , i have added output of ls -l $(which libreoffice3.6)
    – Barath Bushan
    Mar 12 '13 at 7:42
















7














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
    – Barath Bushan
    Mar 12 '13 at 7:38










  • @jaume , i have added output of ls -l $(which libreoffice3.6)
    – Barath Bushan
    Mar 12 '13 at 7:42














7












7








7


1





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















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






linux linux-mint libreoffice






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 12 '13 at 13:58









Sathyajith Bhat

52.5k29153252




52.5k29153252










asked Mar 12 '13 at 7:24









Barath Bushan

316211




316211








  • 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
    – Barath Bushan
    Mar 12 '13 at 7:38










  • @jaume , i have added output of ls -l $(which libreoffice3.6)
    – Barath Bushan
    Mar 12 '13 at 7:42














  • 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
    – Barath Bushan
    Mar 12 '13 at 7:38










  • @jaume , i have added output of ls -l $(which libreoffice3.6)
    – Barath Bushan
    Mar 12 '13 at 7:42








1




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




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
– Barath Bushan
Mar 12 '13 at 7:38




@jaume , sorry about that , it was a typo it is ibreoffice3.6 with both normal and root user
– Barath Bushan
Mar 12 '13 at 7:38












@jaume , i have added output of ls -l $(which libreoffice3.6)
– Barath Bushan
Mar 12 '13 at 7:42




@jaume , i have added output of ls -l $(which libreoffice3.6)
– Barath Bushan
Mar 12 '13 at 7:42










2 Answers
2






active

oldest

votes


















12














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































    1














    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...
      – Barath Bushan
      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.
      – perlboat
      Mar 12 '13 at 18:39








    • 1




      the other answer fixed it ,thanks for your help !!
      – Barath Bushan
      Mar 13 '13 at 2:22











    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f564534%2fonly-root-user-is-able-to-open-libreoffice%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    12














    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




























      12














      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


























        12












        12








        12






        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














        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














        share|improve this answer



        share|improve this answer








        edited Apr 13 '17 at 12:23









        Community

        1




        1










        answered Mar 12 '13 at 20:54









        qmega

        2,1651108




        2,1651108

























            1














            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...
              – Barath Bushan
              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.
              – perlboat
              Mar 12 '13 at 18:39








            • 1




              the other answer fixed it ,thanks for your help !!
              – Barath Bushan
              Mar 13 '13 at 2:22
















            1














            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...
              – Barath Bushan
              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.
              – perlboat
              Mar 12 '13 at 18:39








            • 1




              the other answer fixed it ,thanks for your help !!
              – Barath Bushan
              Mar 13 '13 at 2:22














            1












            1








            1






            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














            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














            share|improve this answer



            share|improve this answer








            edited Mar 12 '13 at 17:37

























            answered Mar 12 '13 at 17:19









            perlboat

            5161311




            5161311












            • 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...
              – Barath Bushan
              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.
              – perlboat
              Mar 12 '13 at 18:39








            • 1




              the other answer fixed it ,thanks for your help !!
              – Barath Bushan
              Mar 13 '13 at 2:22


















            • 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...
              – Barath Bushan
              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.
              – perlboat
              Mar 12 '13 at 18:39








            • 1




              the other answer fixed it ,thanks for your help !!
              – Barath Bushan
              Mar 13 '13 at 2:22
















            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...
            – Barath Bushan
            Mar 12 '13 at 17:54




            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...
            – Barath Bushan
            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.
            – perlboat
            Mar 12 '13 at 18:39






            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.
            – perlboat
            Mar 12 '13 at 18:39






            1




            1




            the other answer fixed it ,thanks for your help !!
            – Barath Bushan
            Mar 13 '13 at 2:22




            the other answer fixed it ,thanks for your help !!
            – Barath Bushan
            Mar 13 '13 at 2:22


















            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f564534%2fonly-root-user-is-able-to-open-libreoffice%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Сан-Квентин

            8-я гвардейская общевойсковая армия

            Алькесар