Author Topic: Locked out of my xubuntu install(s) [Solved]  (Read 2608 times)

0 Members and 1 Guest are viewing this topic.

Offline mikep

  • Sr. Member
  • ****
  • Posts: 316
  • Karma: 1
  • Gender: Male
  • Me again!
    • View Profile
    • Awards
Locked out of my xubuntu install(s) [Solved]
« on: October 22, 2018, 08:59:40 pm »
I'll abbreviate this or it's going to rival war and peace. Bottom line is as follows..

I bought an ssd, unplugged the hdd containing my dual-boot of Ubuntu and Xubuntu, installed the ssd. There followed some fiddling about because the ssd wasn't recognised and suddenly, neither was the sata DVD drive. So I ended up connecting both the ssd and the hdd and playing with the AHCI settings.

I then installed from a Ubuntu minimal install cd (because my PC won't boot from a DVD). I must have missed the option to choose Xubuntu desktop, because I ended up with just the Ubuntu core - no UI. So I ran sudo apt-get install xubuntu-desktop.

Whilst testing the new installation (which turned out to be corrupt - various things not working), I set it not to require a password at boot-up. And that's where it all went very wrong. On the next boot, it didn't go straight to the desktop as I expected. It offered me a dialog with my username, but nowhere to give a password. So I can't get back in. No problem - all I need to do is wipe the ssd and start again, right?

Wrong! because for some reason I can't even begin to understand, when I swap the ssd out and the hdd back in (ie: back to 'normal'), the original installation of Xubuntu, which used to go straight to the desktop, now also asks for a username but no password. If I select the 'other' account and type my username and password it keeps telling me the password is wrong, even though I know it's right!

There's data in the original Home folder I'd really rather not lose. Not critical, hence no backups, but a lot of stuff that's hard to replicate. I expected the old installation to remain untouched, and I can't understand how changes on the ssd have apparently affected the hdd.

Heeelp. Please!
« Last Edit: October 26, 2018, 11:14:31 pm by mikep »

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18147
  • Karma: 473
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Locked out of my xubuntu install(s)
« Reply #1 on: October 23, 2018, 06:07:52 pm »
At the login screen hit Ctrl+Alt+F2

Are you able to login in text mode ?
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline mikep

  • Sr. Member
  • ****
  • Posts: 316
  • Karma: 1
  • Gender: Male
  • Me again!
    • View Profile
    • Awards
Re: Locked out of my xubuntu install(s)
« Reply #2 on: October 23, 2018, 07:59:13 pm »
Yes! Mark, you're a genius.

Do normal terminal commands work in text mode? Is there something I can tweak to get back in with the UI? I'm not great with the command line, but I used to be fine with DoS, so I think I'll get by well enough to copy off the files I want..

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18147
  • Karma: 473
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Locked out of my xubuntu install(s)
« Reply #3 on: October 24, 2018, 02:43:44 pm »
Are you able to log into the Guest account ?

If I had to guess I'd say something in your home folder is borked, so bunging you into a login loop.

Are you up for creating a second user account to test this hypothesis ?

If so, log in in text mode .. then run:
Code: [Select]
groups
and
Code: [Select]
ls -l /home
and post back here the output.
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline mikep

  • Sr. Member
  • ****
  • Posts: 316
  • Karma: 1
  • Gender: Male
  • Me again!
    • View Profile
    • Awards
Re: Locked out of my xubuntu install(s)
« Reply #4 on: October 24, 2018, 09:12:44 pm »
Hello Mark,

I did get into the guest account. Also there are 2 other user accounts (which never get used). I can't log into them, either in text mode (login incorrect) or normally.

mike@xubuntu:~$ groups
mike adm cdrom sudo dip plugdev lpadmin nopasswdlogin sambashare vboxusers
mike@xubuntu:~$ ls -l /home
total 20
dr-x----- 2 helen helen 4096 Aug 16 2017 helen
drwx----- 34 mike mike 12288 Oct 21 23:42 mike
drwxr-xr-x 14 test test 4096 Aug 23 2017 test
mike@xubuntu:~$

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18147
  • Karma: 473
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Locked out of my xubuntu install(s)
« Reply #5 on: October 25, 2018, 12:17:04 am »
Okay log into the mike account in text mode

then run:
Code: [Select]
sudo useradd -s /bin/bash -m administrator -G adm,cdrom,sudo,dip,plugdev,lpadmin,sambashare,vboxusers
then run:
Code: [Select]
sudo passwd administrator
and when prompted enter a new password for the new administrator account .. you'll then be prompted to re-enter it.

Once you've done that, reboot.
Code: [Select]
sudo reboot
Once rebooted, see if you can now log onto the new account called "administrator" account with the new password you set for it.
« Last Edit: October 25, 2018, 12:19:00 am by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline mikep

  • Sr. Member
  • ****
  • Posts: 316
  • Karma: 1
  • Gender: Male
  • Me again!
    • View Profile
    • Awards
Re: Locked out of my xubuntu install(s)
« Reply #6 on: October 25, 2018, 04:53:05 pm »
Will do, Mark.

But first I want to copy all the data off onto an external drive, if possible. I'm looking into that now.

I'll be back...

M

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18147
  • Karma: 473
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Locked out of my xubuntu install(s)
« Reply #7 on: October 25, 2018, 09:44:57 pm »
Okay :)
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline mikep

  • Sr. Member
  • ****
  • Posts: 316
  • Karma: 1
  • Gender: Male
  • Me again!
    • View Profile
    • Awards
Re: Locked out of my xubuntu install(s)
« Reply #8 on: October 25, 2018, 11:16:19 pm »
Been struggling half the day with the command line and a live cd to no avail. Damned if I can work out how to copy off the data. I can see it in text mode but I can't find or mount anything to copy it to.

With the live cd I can see the whole hard drive but haven't got permission to access any of the users in the Xubuntu partition.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18147
  • Karma: 473
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Locked out of my xubuntu install(s)
« Reply #9 on: October 26, 2018, 03:41:13 pm »
Boot to a Xubuntu LiveUSB, then start the file manager with elevated permissions:
Code: [Select]
sudo thunar
Now you should have permission (at least in that file manager instance)



Or use a Peppermint LiveUSB .. then right-click the folder and select "Open as Root".
« Last Edit: October 26, 2018, 03:43:07 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline mikep

  • Sr. Member
  • ****
  • Posts: 316
  • Karma: 1
  • Gender: Male
  • Me again!
    • View Profile
    • Awards
Re: Locked out of my xubuntu install(s)
« Reply #10 on: October 26, 2018, 11:13:45 pm »
Hello Mark,

You've cracked it again! I'm back into the original installation, having set up the administrator account as you suggested. It worked like a charm. Then I reset the password for my own account and am now able to access that too.

I'd already copied off my data via the command line, which I managed to get to grips with this morning. I'm enjoying the command line. Reminds me of my old DoS days (once an old DoS-er, always an old DoS-er).

When I tried the thunar thing, I still got a 'permission denied' message. That may be something to do with the fact that I used a Lubuntu livecd, so I had to use PCManFS instead of thunar? Seems unlikely, but I can't think of any other reason - except that the whole episode is a bit of a mystery considering it began with me installing Xubuntu on a new SSD with the old hdd disconnected..

Anyway, at least I'm now back to square one, with data intact. And I thought the SSD would save me time, not cost me hours of banging my head on the desk!

The next challenge will be to try to clone the Xubuntu half of a dual-boot onto the SSD... I expect I'll be back quite soon!

Thanks again for your help. Greatly appreciated.

M

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18147
  • Karma: 473
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Locked out of my xubuntu install(s) [Solved]
« Reply #11 on: October 27, 2018, 12:53:58 pm »
Yeah in Lubuntu you'd need to run:
Code: [Select]
sudo pcmanfm
or just highlight the folder the go to

Tools > Open as Root

Anyway, glad you got it sorted :)
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal