0

I forgot the username in which I had my data. When I went to user data management, this came.

User Manager screenshot

I remember the password but not username, so I don’t know how to log into that. I am new to Linux, I use Kubuntu 17.04. I didn't do anything by myself as I was afraid of deleting more data.

enter image description here

  • 2
    Welcome to Ask Ubuntu! Your question has several issues. Please read How to Ask and edit your question according to it. Especially, make your question title specific. Please also note the version 17.04 has passed EOL, so the question might be closed due to that. However, please add the output of the command ls -l /home using edit and apply code formatting. Also note your current user. Do you use disk encryption? – Melebius Aug 13 '18 at 12:43
  • 1
    " but not username" Open a terminal. The user name is shown when you do ls -l /home/ – Rinzwind Aug 13 '18 at 12:44
  • 4
    It looks like you have auto-login enabled. Open a terminal you see something like username@hostname where username is your username or type whoami. That will print out your username. – Kev Inski Aug 13 '18 at 12:44
1

I'll make my comment an answer.

It looks like you have auto-login enabled, which is good in that case ;-)

  • Open a terminal (press CTRL+ALT+T)
  • You now see something like username@hostname where username is your username

  • If your prompt does not look like this for any reason (modified .bashrc, ...) type in the opened terminal whoami. This will print out your username.

If you want the username from a not logedin user:

  • Open a terminal
  • execute ls /home/. This will list the home directory, which has a folder for each user.
  • well am logined in different user , not the one in which i have my data – Sahil Sharma Aug 13 '18 at 13:03
  • please see my edit. I added the command from @Melebius – Kev Inski Aug 13 '18 at 13:09
  • 1
    @SahilSharma does not matter. Use the method I provided in the previous comment. all usernames, by default, have a /home/ with the username. – Rinzwind Aug 13 '18 at 13:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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