Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have fedora installed in my system. I know the password but i forgot the user name. I can access through terminal but i don't no how to login through gui. Please help me.

share|improve this question

migrated from Mar 24 '10 at 4:33

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

With cat /etc/passwd you can see all the users on the system. With id you can see what your current user/group is.

share|improve this answer
No, /etc/passwd may well not contain the account, and may not be used at all on some systems. – bignose Mar 24 '10 at 6:43
Unless the user is using network authentication exclusively, the /etc/passwd file will show all local users in Fedora. – TuxRug Apr 20 '11 at 5:43
@bignose: true enough. My answer is not valid for all unix/linux systems and depends on the rest of your config. But with a normal fresh install of fedora, it usually holds ;) – Wolph Apr 20 '11 at 9:09
@TuxRug: indeed, but I wouldn't expect that from an out-of-the-box fedora install – Wolph Apr 20 '11 at 9:09

Use getent passwd to see all accounts that exist on the host.

Use who to see which accounts are currently logged in to a terminal on the host.

Use id to see which account owns the current shell process.

share|improve this answer
I did not know about the getent and id commands. I'll have to try them next time I'm on my linux system. – TuxRug Apr 20 '11 at 6:02

You must log in to answer this question.