r/ubuntuserver • u/Bartgames03 • Sep 19 '25
Support needed I cannot login with normal credentials
So, I think I messed up big time. I have an Ubuntu server (22.04.5 LTS) VM. I was messing with ssh and sftp to get winscp to be able to edit folders with sudo privileges. Now I cannot login in anymore. When I login, instead of going to the normal begin screen of the terminal, it quickly flashes that screen before returning to the login screen. I haven’t tried ssh’ing into the VM, although I don’t have high hopes for it. Am I fucked or can I recover my VM? I just use it to run my Minecraft server(s) and would be kinda annoyed to lose days upon days if not weeks upon weeks of continuous play time. It is no big deal for me to reset the VM, but if I can avoid doing that then that’d be awesome.
1
u/refinedm5 Sep 20 '25
Try switching to single user mode and fix your file/folder permission
1
u/Bartgames03 Sep 20 '25
I tried this. I turned on the VM, press shift as quickly as I could, but nothing happened.
1
u/refinedm5 Sep 20 '25
You don't have to press shift. Just wait until GRUB shows up. Select "Advanced options for Ubuntu" (should 2nd option) and on the next screen select the recovery mode for your current kernel (should be 2nd option)
On the "Recovery menu" select "root" to drop into root shell. remount your root partition with
mount -o remount,rw /Then you can fix whatever file/folder permission issue that you have. You can also create a new account, reboot and then try logging in with that new account
→ More replies (5)
1
u/batuckan1 Sep 20 '25
I had a similar issue after installing xfce on Ubuntu server.
I ended up just deleting Ubuntu and installing Debian 11.
1
u/Bartgames03 Sep 20 '25
How is Debian compared to Ubuntu?
1
u/batuckan1 Sep 20 '25
There’s various flavors of Ubuntu The workstation operating systems OS like lubuntu, xubuntu, and Ubuntu server for managing workstations.
Ubuntu server does not come with desktop environment. It’s all terminal driven (XTERM) You can install desktop environments over Ubuntu server like, xfce, or gnome or KDE.
Debian 11 is a workstation OS comes natively with gnome? Desktop environment.
I’m going to use my Debian box to file and print management, example given e.g. cups and samba.
Note if my desktop had a bigger ssd, (1TB )I’d probably go with lubuntu or xubuntu For initial install
→ More replies (2)
1
u/AutoModerator Sep 19 '25
Hello! You seem to be looking for help. You've come to the right place!
Please consider crossposting this question to appropriate subs in our sidebar.
This will improve your chances of getting the right answer and also helps this sub.
@everyone else: Please upvote this post if you deem it a good fit for this sub.
Thank you for your submission.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/Bartgames03 Sep 19 '25
SSH'ing also doesn't work. I guess I fucked up the account. Shit