Forum

WSL Version - Add u...
 
Notifications
Clear all

WSL Version - Add user.

7 Posts
2 Users
0 Reactions
0 Views
Posts: 4
Topic starter
(@mattias-vinberg)
Active Member
Joined: 1 year ago
[#97]

Working on to get Openmamba to work whit WSL and thats is done.

How do a add a user... This is not working...

adduser adolf
passwd adolf

and how do i install kde 6 via terminal ?

Rest i think i will fix =)

Regards,
Mattias Vinberg


6 Replies
Posts: 212
Admin
(@silvan)
Member
Joined: 12 years ago

Hello,
the command to add a user in openmamba is  useradd. See also man useradd.

You need to install KDE Plasma 6 because you used rootfs-base for the installation`? The command is:

sudo dnf install desktop-base-kde

If you need the graphical login manager also sudo dnf install sddm may be needed.


Reply
Posts: 4
Topic starter
(@mattias-vinberg)
Active Member
Joined: 1 year ago

User Fixed =) and i have a working WSL version

--------------------------------------------

Do this as root user...

dnf install nano sudo systemd

---------------------------------------------

Do this as root user...

Set password for root and add user.

Paste one by one in Console and change <username> to your name.

passwd
useradd -m -g users -G wheel -s /bin/bash <username>
echo "%sudo ALL=(ALL) ALL" >/etc/sudoers.d/Wheel
passwd <username>
usermod -aG wheel <username>

---------------------------------------------

Do this as root user…

Open this file via Terminal and add: nano /etc/wsl.conf

[user]
default=adolf <-- change to your user.

[boot]
systemd=true

---------------------------------------------

Do this as root user…

Open this file via this line in terminal

EDITOR=nano visudo

and add your username under root like this.

root ALL=(ALL) ALL
adolf ALL=(ALL) ALL

---------------------------------------------

Reboot OpenMamba - Reboot OpenMamba - Reboot OpenMamba - Reboot OpenMamba

---------------------------------------------

Login as normal user and update all!

sudo dnf update

---------------------------------------------


Reply
Posts: 4
Topic starter
(@mattias-vinberg)
Active Member
Joined: 1 year ago

There is some more lines but i will make an guide =)


Reply
Posts: 212
Admin
(@silvan)
Member
Joined: 12 years ago

Good. User can just be added to the sysadmin group to give root permissions with sudo, adding to this group is also recommended for polkit policies.


Reply
Page 1 / 2
Share: