Results 1 to 8 of 8

Thread: I did startx as root and now I can't log in to my account.

  1. #1
    Join Date
    May 2013
    Beans
    4

    I did startx as root and now I can't log in to my account.

    I ran sudo startx and my computer freaked out so I shut it down and when I turned it back on it didn't log me on automatically. When I put my password in it just goes black for a second then makes the drum sound and puts me back to the log in screen. Can someone tell me how to fix this?

  2. #2
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: I did startx as root and now I can't log in to my account.

    Please check out: http://psychocats.net/ubuntu/graphicalsudo

    Make sure that all the config ( dot ) files in your home directory are owned by your user.

  3. #3
    Join Date
    May 2013
    Beans
    4

    Re: I did startx as root and now I can't log in to my account.

    How do I do that? 0.0

  4. #4
    Join Date
    Apr 2012
    Beans
    7,154

    Re: I did startx as root and now I can't log in to my account.

    You should be able to log in to a text console via one of the virtual terminals (Ctrl-Alt-F1 thru F6). Then check the ownership on your .Xauthority and .ICEauthority files

    Code:
    ls -l ~/.{ICE,X}authority
    If either one is owned by root instead of you, either change it back

    Code:
    sudo chown user:user ~/.Xauthority
    where user is replaced by your actual username or simply delete it (they get regenerated as required)

    Code:
    rm -f ~/.Xauthority
    Changing ownership needs 'sudo' whereas deleting doesn't so is usually easier - but make sure you get the command exactly right so as not to delete anything else.

  5. #5
    Join Date
    May 2013
    Beans
    4

    Re: I did startx as root and now I can't log in to my account.

    Quote Originally Posted by sisco311 View Post
    Please check out: http://psychocats.net/ubuntu/graphicalsudo

    Make sure that all the config ( dot ) files in your home directory are owned by your user.
    How do I do that?

  6. #6
    Join Date
    May 2013
    Beans
    4

    Re: I did startx as root and now I can't log in to my account.

    Quote Originally Posted by steeldriver View Post
    you should be able to log in to a text console via one of the virtual terminals (ctrl-alt-f1 thru f6). Then check the ownership on your .xauthority and .iceauthority files

    Code:
    ls -l ~/.{ice,x}authority
    if either one is owned by root instead of you, either change it back

    Code:
    sudo chown user:user ~/.xauthority
    where user is replaced by your actual username or simply delete it (they get regenerated as required)

    Code:
    rm -f ~/.xauthority
    changing ownership needs 'sudo' whereas deleting doesn't so is usually easier - but make sure you get the command exactly right so as not to delete anything else.
    thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  7. #7
    Join Date
    Oct 2010
    Location
    Buffalo, New York
    Beans
    514
    Distro
    Ubuntu 14.10 Utopic Unicorn

    Re: I did startx as root and now I can't log in to my account.

    Quote Originally Posted by ryanstoner333 View Post
    How do I do that?
    Hi, Ryanstoner.

    How do you do what? There is lots of information in the link you just quoted. We don't know which part of the text you're having problems with.

    Will you give us the output of this command? Please use CODE tags to make your output easy to read such as I'm doing below:

    Code:
    $ find ~/ -user root 2>/dev/null
    Please run the command in a terminal window. You can get a terminal window by:

    (Hit) Ctrl-F2 > (type) gnome-terminal > (press) ENTER

    That key sequence will give you a terminal. Type in the command quoted in the code below and give us the output. From the output we can tell you which files are screwed up.
    edit: I see there were new posts while I was typing my message and someone has helped you to resolve your issue. Please consider contributing back to the community by marking this topic as Sovled. This way someone else having a similar issue can easy find this resolution.

    -- L. James

    --
    L. D. James
    ljames@apollo3.com
    www.apollo3.com/~ljames
    Last edited by apollothethird; November 29th, 2013 at 06:46 PM.

  8. #8
    Join Date
    Oct 2014
    Beans
    1

    Re: I did startx as root and now I can't log in to my account.

    Quote Originally Posted by ryanstoner333 View Post
    thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou thankyou !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    I just now had this same problem and changing the ownership of Xauthority worked so I feel the need to say thanks to both of you. Also, I didnt know you could use {} for multiple words simultaneously like that. That was a neat thing to learn

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •