How to add user ? SOLVED

Questions specific to the KDE DE go here
UncleSam
Posts: 41
Joined: 16 Apr 2016 20:03

How to add user ? SOLVED

Postby UncleSam » 15 Sep 2019 03:03

Decided to add a user account for bob in SolydK Buster:

Code: Select all

root@solydk:/home/sam# useradd bob
bash: useradd: command not found
Huh???!!! WTF???? OOPS!!! what's going on, here ?

User avatar
ilu
Posts: 2552
Joined: 09 Oct 2013 12:45

Re: How to add user ?

Postby ilu » 15 Sep 2019 14:53

Try

Code: Select all

sudo adduser bob
Or use the graphical interface, its called "Users and Groups" in XFCE and I'm sure there is a equivalent on KDE.

UncleSam
Posts: 41
Joined: 16 Apr 2016 20:03

Re: How to add user ?

Postby UncleSam » 15 Sep 2019 15:40

Code: Select all

root@solydk:/home/sam# adduser bob
bash: adduser: command not found

User avatar
Arjen Balfoort
Site Admin
Posts: 9337
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: How to add user ?

Postby Arjen Balfoort » 15 Sep 2019 16:41

That's because root hasn't got /sbin or /usr/sbin in the PATH variable.
Use "su -" instead of "su" if you don't want to use sudo.
Or add "export PATH=$PATH:/sbin:/usr/sbin" to /root/.bashrc


SolydXK needs you!
Development | Testing | Translations

UncleSam
Posts: 41
Joined: 16 Apr 2016 20:03

Re: How to add user ?

Postby UncleSam » 15 Sep 2019 18:35

I added export PATH=./:~/:~/bin/:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin to /root/.bashrc

That fixed the problem. useradd worked. I added another user account.

Thank you, Arjen. I am grateful you pointed out the importance of /usr/sbin/ to me.

I also saw the info. you added at /usr/share/solydxk/info Nice.

I did not know until now that su could take any arguments. I will further investigate this fact.

I have the new user account. I set the password as superuser, and saw no output from passwd. However, the new user was unable to log in using the password I gave passwd. I will have another look at this after lunch.

UncleSam
Posts: 41
Joined: 16 Apr 2016 20:03

Re: How to add user ?

Postby UncleSam » 15 Sep 2019 22:15

Okay, after more investigation, I figured out to add a new user and create a home folder associated with her new username.

Thank you again for your suggestions and your help.


Return to “KDE specific (SolydK)”

Who is online

Users browsing this forum: No registered users and 2 guests