Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have several user accounts on a machine my mother uses most of the time. How can I sort the users so that her account shows up first in the list?

share|improve this question
10  
Ask her to change her name to AAAAAA. I'm sure she isn't too attached to her current name. –  msw Sep 18 '10 at 12:01
6  
I was hoping for a more elegant solution. –  ParanoiaPuppy Sep 18 '10 at 12:13

5 Answers 5

up vote 2 down vote accepted

I had the same problem, so I did an inquiry:

gdm simple greeter uses ConsoleKit for obtaining the list of users. you can check the list (in the gdm order) by running:

$ ck-history --frequent --seat='Seat1'
user1    148
user2    145
gdm      143

if 'Seat1' is not working, enter seat values from 'ck-list-sessions'.

I do not know of a way to hand edit the ck-history list, but you can easily increase the frequency number for a logged in user e.g. by running (when user2 is logged in):

$ for n in `seq 1 10`; do echo exit|ck-launch-session; done

the numbers will change to

$ ck-history --frequent --seat='Seat1'
user2    155
user1    148
gdm      143

and the login screen user list will be reordered in the same way.

share|improve this answer

The login screen doesn't simply sort by name. In fact, in lucid, the default login screen sorts first by usage frequency, and by display name as a fallback. So your mother will show up first after a few times.

share|improve this answer
3  
I'll try to have some patience then. –  ParanoiaPuppy Sep 21 '10 at 13:32

That can't be the whole of it. The default user on my machine is one that has never logged in, while the user I use every day for the past year is down at number three.

share|improve this answer

I'm having a similar problem on 10.10 running Unity. I've filed a bug.

share|improve this answer

In response to both Gilles and Arancaytar's solutions: they might both be right. I had the same problem as Arancaytar. The account I logged into most frequently was strangely at the bottom of the list. But after reading Gilles solution, I tried logging in not by clicking on my name in the user list, but by clicking on "Others", manually typing my username, and then my password. After that I logged out to check, and my name was on the top of the user list. It seems like the login screen, for some strange reason, only records the frequency of logins when you manually enter your username. I haven't confirmed this definitely though.

In short, for those still having problems, do this:

  1. Log out.
  2. Don't log in by clicking your name in the list.
  3. Click on "Others" instead.
  4. Log in by manually entering your username.
  5. Log out to check if your name is now on top of the list.
  6. If not, repeat step 4 a few more times, and hopefully it'll work.

Comment to say if this is successful for anyone else who still has problems!

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.