Hello.
When creating a new user (with administrative rights) :
At this step, only /etc/skel is copied to user's home.
.config, .local, .... are not yet installed.
Initialization is finished by script(s) when the user log for the first time.
Currently I run two scripts.
After running the first script, I log out , then I log in as the new user so the user configuration complete, then log out, then log in as myself.
Then I run the second script to finished user configuration.
Is there a way to run the kde first log in script as the new user without quitting my script ?
Any help is welcome.
When creating a new user (with administrative rights) :
Code:
useradd --create-home --comment "$WORK_USER" "$WORK_USER"
passwd "$WORK_USER"
usermod -aG vboxusers "$WORK_USER"
.config, .local, .... are not yet installed.
Initialization is finished by script(s) when the user log for the first time.
Currently I run two scripts.
After running the first script, I log out , then I log in as the new user so the user configuration complete, then log out, then log in as myself.
Then I run the second script to finished user configuration.
Is there a way to run the kde first log in script as the new user without quitting my script ?
Any help is welcome.