Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Mar 24 '10 at 4:33

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

add comment

2 Answers 2

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
add comment

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
add comment

Your Answer

 
discard

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