Can't run startx a non-root user in Kali Linux





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I've installed Kali Linux from a mini ISO network install on VirtualBox. I then installed xfce and ran startx on root account.



apt-get install xfce4
apt-get install xfce4-goodies
startx


xfce starts perfectly. I logged out from xfce. I then created a new user:



useradd everyone
passwd *******
mkdir /home/everyone
chown everyone:users /home/everyone


I log in with new user and startx:



exit
login: everyone
startx


When I run startx as another user than root, the screen blinks and goes back to the command line again. I tried XDM but when I switched the user, the issue persisted.










share|improve this question















migrated from stackoverflow.com May 17 '13 at 0:40


This question came from our site for professional and enthusiast programmers.



















  • Do you have ~/.Xauthority file for you user? Also, why you are chowned home directory to this group?

    – loadaverage
    May 17 '13 at 9:23













  • Daniel, please familiarize yourself with our formatting options. There's no need to use HTML – and note that you need to indent code with 4 spaces. Thanks

    – slhck
    May 17 '13 at 9:50


















0















I've installed Kali Linux from a mini ISO network install on VirtualBox. I then installed xfce and ran startx on root account.



apt-get install xfce4
apt-get install xfce4-goodies
startx


xfce starts perfectly. I logged out from xfce. I then created a new user:



useradd everyone
passwd *******
mkdir /home/everyone
chown everyone:users /home/everyone


I log in with new user and startx:



exit
login: everyone
startx


When I run startx as another user than root, the screen blinks and goes back to the command line again. I tried XDM but when I switched the user, the issue persisted.










share|improve this question















migrated from stackoverflow.com May 17 '13 at 0:40


This question came from our site for professional and enthusiast programmers.



















  • Do you have ~/.Xauthority file for you user? Also, why you are chowned home directory to this group?

    – loadaverage
    May 17 '13 at 9:23













  • Daniel, please familiarize yourself with our formatting options. There's no need to use HTML – and note that you need to indent code with 4 spaces. Thanks

    – slhck
    May 17 '13 at 9:50














0












0








0








I've installed Kali Linux from a mini ISO network install on VirtualBox. I then installed xfce and ran startx on root account.



apt-get install xfce4
apt-get install xfce4-goodies
startx


xfce starts perfectly. I logged out from xfce. I then created a new user:



useradd everyone
passwd *******
mkdir /home/everyone
chown everyone:users /home/everyone


I log in with new user and startx:



exit
login: everyone
startx


When I run startx as another user than root, the screen blinks and goes back to the command line again. I tried XDM but when I switched the user, the issue persisted.










share|improve this question
















I've installed Kali Linux from a mini ISO network install on VirtualBox. I then installed xfce and ran startx on root account.



apt-get install xfce4
apt-get install xfce4-goodies
startx


xfce starts perfectly. I logged out from xfce. I then created a new user:



useradd everyone
passwd *******
mkdir /home/everyone
chown everyone:users /home/everyone


I log in with new user and startx:



exit
login: everyone
startx


When I run startx as another user than root, the screen blinks and goes back to the command line again. I tried XDM but when I switched the user, the issue persisted.







linux xfce






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 17 '13 at 9:49









slhck

163k47451476




163k47451476










asked May 16 '13 at 23:35









Daniel MasudaDaniel Masuda

111




111




migrated from stackoverflow.com May 17 '13 at 0:40


This question came from our site for professional and enthusiast programmers.









migrated from stackoverflow.com May 17 '13 at 0:40


This question came from our site for professional and enthusiast programmers.















  • Do you have ~/.Xauthority file for you user? Also, why you are chowned home directory to this group?

    – loadaverage
    May 17 '13 at 9:23













  • Daniel, please familiarize yourself with our formatting options. There's no need to use HTML – and note that you need to indent code with 4 spaces. Thanks

    – slhck
    May 17 '13 at 9:50



















  • Do you have ~/.Xauthority file for you user? Also, why you are chowned home directory to this group?

    – loadaverage
    May 17 '13 at 9:23













  • Daniel, please familiarize yourself with our formatting options. There's no need to use HTML – and note that you need to indent code with 4 spaces. Thanks

    – slhck
    May 17 '13 at 9:50

















Do you have ~/.Xauthority file for you user? Also, why you are chowned home directory to this group?

– loadaverage
May 17 '13 at 9:23







Do you have ~/.Xauthority file for you user? Also, why you are chowned home directory to this group?

– loadaverage
May 17 '13 at 9:23















Daniel, please familiarize yourself with our formatting options. There's no need to use HTML – and note that you need to indent code with 4 spaces. Thanks

– slhck
May 17 '13 at 9:50





Daniel, please familiarize yourself with our formatting options. There's no need to use HTML – and note that you need to indent code with 4 spaces. Thanks

– slhck
May 17 '13 at 9:50










2 Answers
2






active

oldest

votes


















0














I had the same problem and solved using adduser instead of useradd.






share|improve this answer

































    0














    adduser is a convenience script calling useradd with a few flags. If @Daniele is right than your issue either arise because your user doesn't have a shell assigned or it doesn't have a home directory assigned. Those two options can be corrected in /etc/passwd or by calling usermod. Also possible because you don't have a password assigned. That can be corrected by calling passwd USERNAME and can be checked in /etc/shadow. On the next user I suggest using the convenience script adduser or the appropriate flags, which are on the top of my head without checking and therefore not necessarily correct: useradd -m -p -s /bin/bash USERNAME






    share|improve this answer
























      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%2f596556%2fcant-run-startx-a-non-root-user-in-kali-linux%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









      0














      I had the same problem and solved using adduser instead of useradd.






      share|improve this answer






























        0














        I had the same problem and solved using adduser instead of useradd.






        share|improve this answer




























          0












          0








          0







          I had the same problem and solved using adduser instead of useradd.






          share|improve this answer















          I had the same problem and solved using adduser instead of useradd.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Oct 4 '13 at 10:55









          slhck

          163k47451476




          163k47451476










          answered Oct 4 '13 at 10:43









          Daniele BrugnaraDaniele Brugnara

          1111




          1111

























              0














              adduser is a convenience script calling useradd with a few flags. If @Daniele is right than your issue either arise because your user doesn't have a shell assigned or it doesn't have a home directory assigned. Those two options can be corrected in /etc/passwd or by calling usermod. Also possible because you don't have a password assigned. That can be corrected by calling passwd USERNAME and can be checked in /etc/shadow. On the next user I suggest using the convenience script adduser or the appropriate flags, which are on the top of my head without checking and therefore not necessarily correct: useradd -m -p -s /bin/bash USERNAME






              share|improve this answer




























                0














                adduser is a convenience script calling useradd with a few flags. If @Daniele is right than your issue either arise because your user doesn't have a shell assigned or it doesn't have a home directory assigned. Those two options can be corrected in /etc/passwd or by calling usermod. Also possible because you don't have a password assigned. That can be corrected by calling passwd USERNAME and can be checked in /etc/shadow. On the next user I suggest using the convenience script adduser or the appropriate flags, which are on the top of my head without checking and therefore not necessarily correct: useradd -m -p -s /bin/bash USERNAME






                share|improve this answer


























                  0












                  0








                  0







                  adduser is a convenience script calling useradd with a few flags. If @Daniele is right than your issue either arise because your user doesn't have a shell assigned or it doesn't have a home directory assigned. Those two options can be corrected in /etc/passwd or by calling usermod. Also possible because you don't have a password assigned. That can be corrected by calling passwd USERNAME and can be checked in /etc/shadow. On the next user I suggest using the convenience script adduser or the appropriate flags, which are on the top of my head without checking and therefore not necessarily correct: useradd -m -p -s /bin/bash USERNAME






                  share|improve this answer













                  adduser is a convenience script calling useradd with a few flags. If @Daniele is right than your issue either arise because your user doesn't have a shell assigned or it doesn't have a home directory assigned. Those two options can be corrected in /etc/passwd or by calling usermod. Also possible because you don't have a password assigned. That can be corrected by calling passwd USERNAME and can be checked in /etc/shadow. On the next user I suggest using the convenience script adduser or the appropriate flags, which are on the top of my head without checking and therefore not necessarily correct: useradd -m -p -s /bin/bash USERNAME







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Feb 4 at 5:48









                  TheCommoner282TheCommoner282

                  34819




                  34819






























                      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.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f596556%2fcant-run-startx-a-non-root-user-in-kali-linux%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

                      Plaza Victoria

                      In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

                      How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...