this post was submitted on 13 Aug 2025
19 points (95.2% liked)

Linux

57373 readers
806 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS
 

cross-posted from: https://lemmy.world/post/34365607

Hi fediverse,

I'm hoping someone can give me some advice on an issue that means I can't access the main user account on my Linux Mint (Cinnamon) operating system.

Context:

I'm using a dual boot setup of windows and mint on my laptop. I use mint (or used to, when I could access my user) for pretty much anything that doesn't require things* only my windows instance has. (*things such as support for video games that support windows but not linux, for example)

When creating my main user account, I made a mistake in the username. It was irritating enough for me to want to change it, and as doing so seemed like it should have been fine, I settled upon three guides and ended up (mostly?) just following this one:

https://www.linuxuprising.com/2019/04/how-to-change-username-on-ubuntu-debian.html

I cant remember all of what happened anymore, but I have the following screenshots, along with the stuff I do remember.

(note: red blocks represent the new username, blue blocks represent the old username)

At the used-by-process error, I first tried following the guide precisely, then hoped that "PID" was Process ID, and that the guide expected me to put the ID that usermod stated after "PID", and tried doing that.

Idk if that fvcked something up...

Then I guess I fixed that somehow, idk if I did so by restarting and logging in only as tempuser, or if I had already done that and fixed it some other way.

Anyway I meant to run each line of the command separately to avoid stuff going wrong, but accidentally did both at once. I hoped it'd be fine anyway.

Then stuff happened I guess.

Anyway,

I cant remember much more but I know that I tried to log back in as my main user account and I found out that:

  1. The username had been successfully changed.
  2. I could not log into my main user account.

Imputing the correct username and password was successful, and acted like it was logging me in as usual. Then after the usual black screen, it just throws me back to the login window.

This still happens.

I went through a fair bit of internet searching, followed some advice. All that most people were saying was to check how much disk space you have left - and to not keep timeshift snapshots on the same drive as your OS.

(this is one such post, and (I think) the only one I found that I definitely recognise from the previous searching: https://www.reddit.com/r/linuxmint/comments/15revgg/cant_stay_logged_in_keeps_going_back_to_login/)

I did ctrl-alt-f1 and ran df -h, and deleted most of the timeshift snapshots I had (I think I had maybe 6 and deleted 4 or 5).

Here's the output of df -h that I think is from after I deleted the timeshifts:

Idk what to do, hope someone can advise.

(TL;DR: tried to change username on mint, now whenever I try to log in to the user it throws me back to the login window after the usual black screen. Hope this suffices for a summary...)

top 4 comments
sorted by: hot top controversial new old
[–] gnuhaut@lemmy.ml 1 points 3 days ago

First, check if you can login, with your new user, on the Linux console (i.e. Ctrl-Alt-F1 through F7). If you can, the username change probably went through correctly. Report back if you cannot login via console or you get warnings/errors.

Your login session does automatically terminate if the session process for Cinnamon exits, booting you back to GDM (or whatever login manager you have). So probably the Cinnamon session process, started by GDM, craps out for some reason. The reason is probably, I suspect, that it cannot access or cannot find some file it wants to open.

Check ~/.xsession-errors, it might tell you what went wrong.

Also check the permissions of your home folder, the files in your home folder, and check if you correctly set up the symbolic link from /home/olduser to /home/newuser as the guide suggests.

[–] Rivalarrival@lemmy.today 6 points 4 days ago* (last edited 4 days ago) (1 children)

Check permissions on your home folder. Make sure everything is owned by your new username.

I had a separate partition mounted on /home on my old system. I remounted the same partition at /home on the new system, and got the same bootloop issue. The problem was that the old permissions were for 1001:1001, not (newuser):(newuser). Had to log into a TTY and chown (newuser):(newuser) -R /home/(newuser) to get everything working.

[–] DuckyLoco404@lemmy.world 1 points 4 days ago (1 children)

[see:https://lemmy.world/post/34365607/18768530]

[–] DuckyLoco404@lemmy.world 1 points 4 days ago

I tried logging in with tempuser and remembered that I have no idea how to access the files on my main user. In the file manager the home folder for said user isn’t accessible, and I assume that’s because I set it to be encrypted when setting it up. Thus I can’t access the files to copy them over to a new user or anything. Also, I assume I wouldn’t be able to rename the homedir as such, and don’t know where to start checking or changing user settings and permissions and such.