Locked out of my user account

Nils Kassube kassube at gmx.net
Thu Jun 19 06:06:06 UTC 2014


Mariano Jara Melagrani wrote:
> On 18/06/14 18:31, C de-Avillez wrote:
> > On Wed, Jun 18, 2014 at 4:20 PM, Mariano Jara Melagrani
> > <mjaramelagrani at gmail.com> wrote:
> >> Hi Nils, I've just checked them and there are three of them with
> >> root
> >> as the owner.
> >> 
> >> drwxr-xr-x   7 root    root      4096 ene 22 19:09 ..
> >> -rw-------   1 root    root      4984 jun 13 17:46 .viminfo
> >> -rw-------   1 root    root       284 jun 13 17:28 .Xauthority
> >> 
> >> Should I change the ownership of the last two ones? I don't recall
> >> ever changing them to root.
> > 
> > You can just delete the .Xauthority file, it will be recreated. It
> > was probably created because you ran something like 'sudo startx'.
> > 
> > For the .viminfo file... chown it back to you.
> 
> Hi C de-Avillez, I did as you said and that fixed it. I'm back in now!

Great.

> I wonder how .Xauthority could have gotten owned by root? I know I
> haven't done it (at least not conscientiously).

I suppose that you once have started a GUI application with sudo instead 
of gksudo or kdesudo. Than such a bad thing can happen.


Nils





More information about the ubuntu-users mailing list