First of all thanks for the replies!
I looked a bit more into it and it seems I didn’t use the correct flags before. In my etc/skel/ there are the 4 files ‘.bashrc’, ‘.bash_logout’, ‘.bash_profile’ and ‘.mozilla’
Logout and profile seem to be identical to what spencer wrote, bashrc looks a bit different with
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific environment
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]
then
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
fi
export PATH
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
# User specific aliases and functions
The exact commands I used were
>useradd $user
>passwd $user
And it also shows said user in etc/passwd with
$user:x:1351:1351::/home/$user:/bin/bash
Funnily I just tried it again with a new test user and this time it worked, however the account I created previously still seems to have the same issues as before. I tried deleting the user and creating it again with ‘userdel $user’ however this leads to the message
[root@$pc etc]# useradd $user
useradd: warning: the home directory already exists.
Not copying any file from skel directory into it.
Creating mailbox file: File exists
And after setting a password, this user account still can’t log in and is just met with a black screen. After using userdel the /home/$user folder still exists with ‘.bash_history’, ‘.bash_logout’, ‘.bash_profile’ and ‘.bashrc’ in it and trying ‘rmdir /$user’ doesn’t work unfortunately because it’s not empty.
However, I was able to just create another, now working, account for said $user