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;
}
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
migrated from stackoverflow.com May 17 '13 at 0:40
This question came from our site for professional and enthusiast programmers.
add a comment |
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
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
add a comment |
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
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
linux xfce
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
add a comment |
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
add a comment |
2 Answers
2
active
oldest
votes
I had the same problem and solved using adduser
instead of useradd
.
add a comment |
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
I had the same problem and solved using adduser
instead of useradd
.
add a comment |
I had the same problem and solved using adduser
instead of useradd
.
add a comment |
I had the same problem and solved using adduser
instead of useradd
.
I had the same problem and solved using adduser
instead of useradd
.
edited Oct 4 '13 at 10:55
slhck
163k47451476
163k47451476
answered Oct 4 '13 at 10:43
Daniele BrugnaraDaniele Brugnara
1111
1111
add a comment |
add a comment |
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
add a comment |
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
add a comment |
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
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
answered Feb 4 at 5:48
TheCommoner282TheCommoner282
34819
34819
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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