Starting x11vnc as a non-root user

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I'm using a customized Linux distribution generated via buildroot. I use x11vnc for remote access, always logging in with root. But now, I need to enable an user without root privileges to start x11vnc, even though the X server was started by root.



In my research, I came across numerous methods for doing so, but all of them using resources our customized distribution doesn't currently have, such as xauth or xhost.



Is there any simple way to enable x11vnc for non-root users?







share|improve this question























    up vote
    0
    down vote

    favorite












    I'm using a customized Linux distribution generated via buildroot. I use x11vnc for remote access, always logging in with root. But now, I need to enable an user without root privileges to start x11vnc, even though the X server was started by root.



    In my research, I came across numerous methods for doing so, but all of them using resources our customized distribution doesn't currently have, such as xauth or xhost.



    Is there any simple way to enable x11vnc for non-root users?







    share|improve this question





















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I'm using a customized Linux distribution generated via buildroot. I use x11vnc for remote access, always logging in with root. But now, I need to enable an user without root privileges to start x11vnc, even though the X server was started by root.



      In my research, I came across numerous methods for doing so, but all of them using resources our customized distribution doesn't currently have, such as xauth or xhost.



      Is there any simple way to enable x11vnc for non-root users?







      share|improve this question











      I'm using a customized Linux distribution generated via buildroot. I use x11vnc for remote access, always logging in with root. But now, I need to enable an user without root privileges to start x11vnc, even though the X server was started by root.



      In my research, I came across numerous methods for doing so, but all of them using resources our customized distribution doesn't currently have, such as xauth or xhost.



      Is there any simple way to enable x11vnc for non-root users?









      share|improve this question










      share|improve this question




      share|improve this question









      asked Jun 21 at 13:08









      amorimph

      165




      165




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote



          accepted










          I found a way for a non-root user to start x11vnc without having to install or configure anything else. It's perhaps not the cleanest way to do it, but it works.



          I created a script that runs during startup:



          #!/bin/sh

          cd /home/amorimph/
          while true; do
          if [ -e startVNC ]
          then
          x11vnc -display :0
          rm startVNC
          fi
          done


          It checks the user's directory for the existence of the 'startVNC' file. Then, when I log in as this non-root user, a touch startVNC starts x11vnc and the file is removed after the process exits.






          share|improve this answer





















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            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',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );








             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f451102%2fstarting-x11vnc-as-a-non-root-user%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote



            accepted










            I found a way for a non-root user to start x11vnc without having to install or configure anything else. It's perhaps not the cleanest way to do it, but it works.



            I created a script that runs during startup:



            #!/bin/sh

            cd /home/amorimph/
            while true; do
            if [ -e startVNC ]
            then
            x11vnc -display :0
            rm startVNC
            fi
            done


            It checks the user's directory for the existence of the 'startVNC' file. Then, when I log in as this non-root user, a touch startVNC starts x11vnc and the file is removed after the process exits.






            share|improve this answer

























              up vote
              0
              down vote



              accepted










              I found a way for a non-root user to start x11vnc without having to install or configure anything else. It's perhaps not the cleanest way to do it, but it works.



              I created a script that runs during startup:



              #!/bin/sh

              cd /home/amorimph/
              while true; do
              if [ -e startVNC ]
              then
              x11vnc -display :0
              rm startVNC
              fi
              done


              It checks the user's directory for the existence of the 'startVNC' file. Then, when I log in as this non-root user, a touch startVNC starts x11vnc and the file is removed after the process exits.






              share|improve this answer























                up vote
                0
                down vote



                accepted







                up vote
                0
                down vote



                accepted






                I found a way for a non-root user to start x11vnc without having to install or configure anything else. It's perhaps not the cleanest way to do it, but it works.



                I created a script that runs during startup:



                #!/bin/sh

                cd /home/amorimph/
                while true; do
                if [ -e startVNC ]
                then
                x11vnc -display :0
                rm startVNC
                fi
                done


                It checks the user's directory for the existence of the 'startVNC' file. Then, when I log in as this non-root user, a touch startVNC starts x11vnc and the file is removed after the process exits.






                share|improve this answer













                I found a way for a non-root user to start x11vnc without having to install or configure anything else. It's perhaps not the cleanest way to do it, but it works.



                I created a script that runs during startup:



                #!/bin/sh

                cd /home/amorimph/
                while true; do
                if [ -e startVNC ]
                then
                x11vnc -display :0
                rm startVNC
                fi
                done


                It checks the user's directory for the existence of the 'startVNC' file. Then, when I log in as this non-root user, a touch startVNC starts x11vnc and the file is removed after the process exits.







                share|improve this answer













                share|improve this answer



                share|improve this answer











                answered Jun 21 at 17:12









                amorimph

                165




                165






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f451102%2fstarting-x11vnc-as-a-non-root-user%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Bahrain

                    Postfix configuration issue with fips on centos 7; mailgun relay