Skip to content

feat(cinnamon-settings-users): add user account rename support - #13953

Open
farhan11166 wants to merge 3 commits into
linuxmint:masterfrom
farhan11166:master
Open

feat(cinnamon-settings-users): add user account rename support#13953
farhan11166 wants to merge 3 commits into
linuxmint:masterfrom
farhan11166:master

Conversation

@farhan11166

@farhan11166 farhan11166 commented Aug 24, 2026

Copy link
Copy Markdown

Summary

Adds a Rename... action to Cinnamon Users and Groups.

The rename workflow:

  • Validates the new username
  • Checks for duplicate usernames
  • Warns about running processes and open sessions
  • Renames the login with usermod
  • Migrates the home directory
  • Renames a same-named private group
  • Updates /etc/subuid and /etc/subgid
  • Migrates the user crontab
  • Refreshes the users and groups lists
  • Displays errors when system commands fail

Testing

  • Python syntax check passed
  • GTK UI XML validation passed
  • git diff --check passed
  • Runtime testing on a real Cinnamon installation is pending(APolgies will try that in a weeks time my systems can take load of an addtional distro tried on vm but was lagging will do asap if possible anyone could check would be glad shall msotly work as i didnt meddle with other features jsut added an addtional one).

Known limitations

  • Docker configuration is not automatically migrated
  • Systemd user-unit configuration is not automatically rewritten
  • Arbitrary references to the old username in configuration files are not changed
  • Full runtime testing is still required with a disposable user account

This resolves majority of #13866 except the limitations mentioned above which could be implemented iteratively once this is merged

Add a username rename button and dialog.

- Validate new usernames
- Rename the login and move the home directory
- Rename same-named private groups
- Refresh users and groups after success
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant