Okay, this question was initially posted with hints that
/etc/skel might be part of the issue. I have since removed the contents of
/etc/skel, tried again and the issue still persists.
As I said in the initial post, I don't usually use multiple users on systems with graphical environments so I probably look like a total tool and I hope you can forgive the ignorance.
When creating a new user using
useradd -m -G client newuser I expect that user to login, through SDDM, and gain access to a graphical desktop environment just like the initial user can. However, when logging in with
newuser it just drops to a non-graphical shell.
Why is this happening to me? What have I missed?
I'll likely need to provide more info and config etc. Let me know where I should start.
Edit 1: Couple of errors to keep you going
startx after logging in as
newuser I receive the following:
Only console users are allowed to run the X server
X server already running on display 0:0 Another session manager is already running
This is despite logging in straight from boot so I know no other sessions are currently active.
Edit 2: The exact issue and answer
So, in all of my infinite wisdom I forgot to grep through the files for hardcoded filepaths.
There were loads. A monumental amount. Just about every file. Thanks to the link posted by C.W. below I remembered how to grep and sorted out the issue quickly with the following command:
cd /home/newuser && grep -rl 'testuser' . | xargs sed -i "s/testuser/newuser/g"
Is 10 a.m too early for a drink?