Quantcast
Channel: openSUSE Forums
Viewing all articles
Browse latest Browse all 40713

LEAP 15.1 KDE : Fully create new user from admin script (graphical environment).

$
0
0
Hello.

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"

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.

Viewing all articles
Browse latest Browse all 40713

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>