I want to rename my own username and directory without creating additional users with sudo privileges or switching to root. Is that possible from cli?
Asked
Active
Viewed 1,116 times
2 Answers
3
No, it isn't.
Usernames on a Linux system (as in most other general-purpose operating systems) are chosen exclusively by the system's administrator, unless they deliberately set up some kind of self-service system for that.
grawity
- 501,077
-2
If you have physical access, anything is possible.
Boot from installation media into some form of recovery or single-user mode, edit /etc/passwd etc. as required.
However with anything like this there's a real risk of messing up e.g. PAM-based authentication, SAMBA and so on if bypassing the programs set up to "do the job properly".