-
Notifications
You must be signed in to change notification settings - Fork 397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change userland to my own username and group name. #2062
Comments
If you didn't already find your solution, here you are. You need to change the files in the following locations manually after using the command you specified: /etc/shadow, /etc/gshadow, /etc/group, /etc/passwd Quick Warning In /etc/group, In regards to your home dir, Finally, |
How to use this template:
Any line that begins with '#' is a header. Please leave the headers in as is, and fill in the information they suggest
below them. These templates are here to help us resolve your issue as quickly as possible. Leaving requested information out
of your issue will cause our issue template bot to request that your post be reformatted. If a header doesn't seem relevant
to your issue, either write 'N/A' or something similar below the header or consider using a different template.
Describe the issue you are having.
This started when I tried to add my username with the command "sudo adduser my_username". Although I could add a user, I couldn't start a Debian Desktop session where I logged in with that username. So then I hit on changing the userland username and group name to my own username and group name. I ran "sudo usermod -l my_username" followed by "sudo groupmod -n my_group". After that, "echo $USER" and "echo $GROUP" produced "my_username" and "my_group". The new username and group appeared correct in /etc/passwd and /etc/group, respectively. My home directory was still /home/userland, but when I checked the ownership of the home directory, it showed that the directory was owned by my_username and my_group.
Everything looked okay until I exited UserLAnd. When I restarted UserLAnd and attempt to restart the Debian session, it hung with a circling session start icon and never let me start up the desktop. So then I reinstalled Debian and repeated the above process, but this time I renamed the home directory to /home/my_username and made sure the directory was correct in /etc/passwd. Again I exited and again I attempted to restart Debian. Again the session hung.
Describe how your task behaves in a regular Linux environment
I am running xfce 4.16 on Debian 11 (bullseye) and UserLAnd 24.04.04 on the latest update of Android 14. I am on a Lenovo P12 Pro Tablet with keyboard pack. If I do not change the username or group name, the Debian Desktop starts up normally.
The text was updated successfully, but these errors were encountered: