this post was submitted on 13 Aug 2025
11 points (86.7% liked)

Linux Mint

2702 readers
24 users here now

Linux Mint is a free Linux-based operating system designed for use on desktop and laptop computers.

Want to see the latest news from the blog? Set the Firefox homepage to:

linuxmint.com/start/

where is a current or past release. Here's an example using release 21.1 'Vera':

https://linuxmint.com/start/vera/

founded 4 years ago
MODERATORS
 

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...)

you are viewing a single comment's thread
view the rest of the comments
[–] DuckyLoco404@lemmy.world 1 points 2 days ago* (last edited 2 days ago) (1 children)

I got to the "select cipher" step.

I assume I should select whichever cipher was used originally.

How do I find out which one was used?

I doubt I would have deviated from the default during setup, and i assume AES would have been said default, in which case I should pick that?

What should I do?

[–] just_another_person@lemmy.world 1 points 1 day ago (1 children)

Just try whatever, or look up the docs for your distro. If you need this info and you don't have it, you're at the end of the road.

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

I intend to run the command again and try selecting aes in hope that that's what it would've used, however I'm still really unclear on the guide... look at the code section of step 4--

At the line where one would input a number from 1 to 6 to make a selection, "aes" is placed where I'd assume the inputted number would be, and then a sentence starts abruptly at the end of that word

"

Selection [aes]: aesNavigate to the target file or folder

Right click the file or folder

"

And it then follows as a series of instructions

Is this a part of the guide?? Is this an output from the terminal??

Since I can't access the internet on my mint instance (for other technical reasons) and I haven't set up hibernation, I have to quit the process to return to my windows instance in order to ask another question or query a search engine.

(When the terminal starts doing more active processes, killing said processes to return to my windows instance seems like it easily has potential to break something important, so...)

I just want to make sure I'm clear on the actual steps that have to be completed before running the command again.

What additional steps follow after selecting a cipher?

Which parts of the code in step 4 are part of the terminal output, and which aren't?

(Sorry I'm asking so many questions-- I just don't wanna fuck it up further; I wanna be sure to do it right)

[–] just_another_person@lemmy.world 1 points 1 day ago (1 children)

If it's encrypted, and you can't mount it, then you can't fuck it up, can you? Make the file read-only, and mount it as read-only if you're that scared.

I don't know what other steps you're talking about. Look up the docs.

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

The main point here, and my main question, is as follows:

At the line where one would input a number from 1 to 6 to make a selection, "aes" is placed where I'd assume the inputted number would be, and then a sentence starts abruptly at the end of that word

"

Selection [aes]: aesNavigate to the target file or folder

Right click the file or folder

"

And it then follows as a series of instructions

Is this a part of the guide?? Is this an output from the terminal??

As in, there is a great deal more text below the "Select cipher:" block in the code section of step 4. It doesn't just go straight to "Mounted eCryptfs".

Much of said text seems like it must be additional steps in the process, either as text the terminal will output or as text the author of the guide has inserted into the code box. Otherwise what is it? It would seem odd for the terminal to just output it as non-interactive information while processing and mounting the drive, given that it seems to be a series of instructions, as I said.


[from the code box in step 4 of [HOWTO: Recover files from encrypted ecryptfs home directory]:]

Selection [aes]: aesNavigate to the target file or folder

Right click the file or folder

Select Properties

Click on the Permissions tab

Click on the Access files in the Others section

Select key bytes:

1[)] 16https://images.examples.com/wp-content/uploads/2018/03/Travel-Packing-Check-List.pdf.zip

2[)] 32

3[)] 24

[-] Enter your [b]Mount Passphrase[/b] when p

Selection [16]: 16

Enable plaintext passthrough (y/n) [n]: n

Enable filename encryption (y/n) [n]: y

Filename Encryption Key (FNEK) Signature [3c4b10f3dcadf302]: 0d690d0b3dafaee3

[–] just_another_person@lemmy.world 1 points 23 hours ago (1 children)
[–] DuckyLoco404@lemmy.world 1 points 20 hours ago (1 children)

Uh... Ok

Does that mean you don't know what the guide is talking about? The bits I recognise as seeming to be outputs from the terminal asking one to select an option though... Surely I need to know what to select when those come up? For instance I can decipher that presumably these selection prompts will appear during the process:

Select key bytes:

  1. 16

  2. 32

  3. 24

Enable plaintext passthrough (y/n) [n]:

Enable filename encryption (y/n) [n]:

The guide selects 16 for the key bytes, n for "Enable plaintext passthrough", and y for "Enable filename encryption"

What am I supposed to select when/if these prompts appear?

Do the options selected have to match the ones used originally?

With the y/n prompts, does the "[n]" in each mean that is the default? If so, that would presumably have been used originally, and thus should it be my selection...?

Then, is there also a default key bytes value that would have been auto-selected during setup?

I'm not really sure what "🤷" exactly means in this context, given the amount of variability as to what you may be shrugging about specifically, and the nature and context of the situation

Idk if that means you have absolutely no idea what I should do here or not

[–] just_another_person@lemmy.world 1 points 20 hours ago (1 children)

I'm not at your machine. Your notes and questions aren't making sense. Nothing I can do here.

[–] DuckyLoco404@lemmy.world 1 points 18 hours ago (1 children)

But what do you mean by "Your notes and questions aren't making sense"? If you don't understand any of what I'm asking, feel free to ask me what I mean, or point out something that doesn't make sense. You're allowed to ask questions yourself, you know.

[–] just_another_person@lemmy.world 1 points 18 hours ago (1 children)
[–] DuckyLoco404@lemmy.world 1 points 16 hours ago

If you're not gonna answer the questions or explain why you can't help or whatever I'll just give up I guess.

Anyway, I went and ran through the selection prompts, winging it and putting in the values I presume to be the ones used, and found that I do in fact seem to need the FNEK, which is obtained in step 3 of the guide. It seems relatively easy and straightforward to obtain, so I'll just do that later, input it where prompted, and see where that goes.

Thanks anyway