Trying to create a 2nd login account. Getting error

My 1st account has been overheating & shutting off at an extremely high rate recently after I messed around with the terminal & installed some things, possible have some malfunctioning code installed, that is creating endless unseen feedback loop of errors, which causes high RAM/CPU, or a virus. My CPU usage is low, but temps are high. Maybe a hidden malicious program too. I need to create a 2nd account to see if this solves it,
as its overheating 50x times/quicker than it did 2 days ago.
Here is the error I get when I try to create a 2nd account:

How do i create a 2nd account?
(and yes, I will buy some thermal paste & clean the ventilation/fans)
Please help.
-Thanks!

From the screenshot, it looks like you are trying to create an admin account. Were you asked to enter your password when you tried to do that, or did you get the error directly (the error could be because of insufficient permissions).

Since the graphical appraoch doesn't seem to work, try it through the terminal. Open a terminal and type:

sudo adduser --gid 4 <username>

You will be prompted for the password for this user and some additional details that you can leave empty. You should be able to logout from your user and log back as the new user, which should have admin privileges.

Not sure if this will help with your overheating issue but if you don't experience anything once you are logged in as the new user, that might mean some startup application is running when you log as your original user. Although anything that managed to get itself installed like this will likely affect all users as well, but is worth a shot.

EDIT: While youare in the terminal, you can also try the following:

sudo cat /var/log/syslog | grep user | less 

This may show something interesting about the errors you were seeing.

2 Likes

@zenzen , Thank you very much, "sudo cat /var/log/syslog | grep user | less " is still loading/running, will post it when it's done.

Also I figured that programs didnt transfer to new users created.
I guess I was wrong? Is there anyway to create a new user that doesnt have any old programs & configurations from my main admin account?
I assume my main account is admin? although in my main one terminal still asks for my sudo password, idk.

@zenzen , could you please tell me what

"sudo cat /var/log/syslog | grep user | less "

does? so i can put it into my personal terminal & zorin notes?

@zenzen , also, how long should i let the

sudo cat /var/log/syslog | grep user | less

run for? It's been running for like 30 minutes & still says "waiting for data" at the end.

Sorry about that, I should've explained before telling you to run anything with elevated privileges...

It reads the contents of the file /var/log/syslog which as the name suggests contains a log of different system events. Then we process it using grep to narrow down the lines that contain the word "user" hopefully highlighting what went wrong when you tried to create the user. The final command, less will display the results in a so-called pager, to avoid cluttering your terminal session too much since this file can be quite lengthy indeed.

It's very strange that it takes more than a minute, and that's already pushing it, but I guess if there's a lot of text to process it could even hangup.
I assume that by the time you read this you've already close the terminal, and that's fine, it's perfectly safe to cancel it since it's only reading a file and not writing or changing anything (You can interrupt the process by presing Ctrl + C).

Let's try this instead: go ahead and attempt to create a new user in the exact same way as you did before where it shows you the error. Immediately after, open a terminal and run the following:

sudo tail -n 50 /var/log/syslog

This is very similar except it will only print the last 50 lines of the file, thus saving all the trouble of processing a potentially giant file. You can safely increase this number even further to 100, 200, 300, etc... but it should show up the latest events near the bottom, meaning the error regarding the new user creation attempt.
And while you are at it, just to confirm if the size of this file may have been an issue earlier you can do:

ls -lh /var/log/syslog

On a fairly new virtual machine after a few tests with creating users this is how it appears.

zenzen@zenzen:~$ ls -lh /var/log/syslog
-rw-r----- 1 syslog adm 368K mar 19 11:34 /var/log/syslog

This will print a single line showing the file in a bit more detail, most importantly right now the size of the file. It should normally be a few KBs in size, but sometimes when there are repeated errors this can grow a lot up to the Gb... which doesn't necessarily mean anything is wrong, but it could explain why it did get hung up earlier.

Normally installed programs are globally available (meaning that all users can access them) and new user accounts will also have access to them. Only files under the user's home folder are restricted to that user.

2 Likes

@zenzen ,I havent closed the terminal yet! :stuck_out_tongue:
You need to tell me how to save all these dang logs/terminal results! :stuck_out_tongue: before my laptop overheats :slight_smile:

Definitely close it then. It probably just froze at this point. If it doesn't respond with Ctrl + C or the X icon on the top right, try to open the System Monitor (you can still interact with the rest of the system, right?) and find something like "gnome-terminal" and shut it down from there (right-click -> Kill).

Its not frozen it appears, tell me what to type to get it to save its logs, thats what u want right? to look at its log results?
I've had it open for hours now waiting to figure out what to do.

I think it's working fine, the only "problem" is that the less command is interactive, meaning that it will take over the terminal until you close it, while allowing you to scroll up and down to read it's contents. Are you able to do this?

If you want to save this to a file you can redirect the output like so:

sudo cat /var/log/syslog | grep user > filename

See if this works, it should contain only the lines where there's a mention of "user".

As for what to look for, I have no idea since I've never seen this error before, but there should be some mention of error while creating user and hopefully show some helpful detail that can lead to the root cause.

1 Like

@zenzen , thank you, when i type in "sudo cat /var/log/syslog | grep user > filename" it gives me this:
image

To be on the safe side and void confusion, I think it's probably best to start over from the beginning: close all terminal windows, reproduce the error by attempting to create a new user as you did before, then try to read the last 50~100 lines of this file as shown before. You can even dump the results to a file:

sudo tail -n 100 /var/log/syslog > log_results
2 Likes

@zenzen , this is the result of "sudo tail -n 50 /var/log/syslog"

Mar 19 06:55:15 username123-Dell-System-Inspiron-N411Z nemo.desktop[1186944]: CHECK <0>
Mar 19 06:55:15 username123-Dell-System-Inspiron-N411Z nemo.desktop[1186944]: ######ThumbLoaderThread :: forever : 346e5d0
Mar 19 06:55:15 username123-Dell-System-Inspiron-N411Z nemo.desktop[1186944]: ** start condition wait
Mar 19 06:55:15 username123-Dell-System-Inspiron-N411Z nemo.desktop[1186944]: ## Check folder
Mar 19 06:55:15 username123-Dell-System-Inspiron-N411Z nemo.desktop[1186944]: ## Check companion 0
Mar 19 06:55:15 username123-Dell-System-Inspiron-N411Z nemo.desktop[1186944]: ## Check companion ok 0
Mar 19 06:55:15 username123-Dell-System-Inspiron-N411Z nemo.desktop[1186944]: ## OPEN DB FOLDER ok 0
Mar 19 06:55:15 username123-Dell-System-Inspiron-N411Z nemo.desktop[1186944]: ## UPDATE DB FOLDER ok 4
Mar 19 06:55:15 username123-Dell-System-Inspiron-N411Z nemo.desktop[1186944]: ## OPEN FOLDER ok 4
Mar 19 06:55:15 username123-Dell-System-Inspiron-N411Z nemo.desktop[1186944]: ## updateLabel 4
Mar 19 06:55:15 username123-Dell-System-Inspiron-N411Z nemo.desktop[1186944]: ## updateLabels ok 4
Mar 19 06:55:15 username123-Dell-System-Inspiron-N411Z nemo.desktop[1186944]: ThumbLoaderThread :: stop()
Mar 19 06:55:15 username123-Dell-System-Inspiron-N411Z nemo.desktop[1186944]: SORT the list...
Mar 19 06:55:15 username123-Dell-System-Inspiron-N411Z nemo.desktop[1186944]: STD::SORT... 0
Mar 19 06:55:15 username123-Dell-System-Inspiron-N411Z nemo.desktop[1186944]: STL::SORT... 0
Mar 19 06:55:15 username123-Dell-System-Inspiron-N411Z nemo.desktop[1186944]: SORT the list... 0
Mar 19 06:55:15 username123-Dell-System-Inspiron-N411Z nemo.desktop[1186944]: SORT the list... 0
Mar 19 06:55:15 username123-Dell-System-Inspiron-N411Z nemo.desktop[1186944]: ## OPEN FOLDER done 5
Mar 19 06:55:15 username123-Dell-System-Inspiron-N411Z nemo.desktop[1186944]: setCurrentFilename </home/username123/Pictures/Screenshot from 2023-03-19 06-54-47.png>
Mar 19 06:55:15 username123-Dell-System-Inspiron-N411Z nemo.desktop[1186944]: ########################################
Mar 19 06:55:15 username123-Dell-System-Inspiron-N411Z nemo.desktop[1186944]: ############### UPDATE MENU ############
Mar 19 06:55:15 username123-Dell-System-Inspiron-N411Z nemo.desktop[1186944]: ########################################
Mar 19 06:55:15 username123-Dell-System-Inspiron-N411Z nemo.desktop[1186944]: LOADQCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 255, 255, 255, 178'
Mar 19 06:55:15 username123-Dell-System-Inspiron-N411Z nemo.desktop[1186944]: QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 0, 0, 0, 255'
Mar 19 06:55:18 username123-Dell-System-Inspiron-N411Z tracker-store[1185494]: OK
Mar 19 06:55:18 username123-Dell-System-Inspiron-N411Z systemd[1270]: tracker-store.service: Succeeded.
Mar 19 06:55:39 username123-Dell-System-Inspiron-N411Z systemd[1]: systemd-hostnamed.service: Succeeded.
Mar 19 07:02:23 username123-Dell-System-Inspiron-N411Z wpa_supplicant[549]: wlp2s0: WPA: Group rekeying completed with 4c:c5:3e:6e:3a:49 [GTK=CCMP]
Mar 19 07:04:17 username123-Dell-System-Inspiron-N411Z systemd[1270]: vte-spawn-fe79dd32-2490-4fd3-ae8d-9c6e353d06de.scope: Succeeded.
Mar 19 07:04:17 username123-Dell-System-Inspiron-N411Z systemd[1270]: gnome-terminal-server.service: Succeeded.
Mar 19 07:09:50 username123-Dell-System-Inspiron-N411Z systemd[1270]: Started Application launched by gnome-shell.
Mar 19 07:09:51 username123-Dell-System-Inspiron-N411Z /usr/libexec/gdm-x-session[1345]: (II) modeset(0): EDID vendor "SEC", prod id 21569
Mar 19 07:09:51 username123-Dell-System-Inspiron-N411Z /usr/libexec/gdm-x-session[1345]: (II) modeset(0): Printing DDC gathered Modelines:
Mar 19 07:09:51 username123-Dell-System-Inspiron-N411Z /usr/libexec/gdm-x-session[1345]: (II) modeset(0): Modeline "1366x768"x0.0 69.30 1366 1414 1446 1462 768 773 778 790 +hsync -vsync (47.4 kHz eP)
Mar 19 07:09:51 username123-Dell-System-Inspiron-N411Z /usr/libexec/gdm-x-session[1345]: (II) modeset(0): Modeline "1366x768"x0.0 48.22 1366 1414 1446 1526 768 773 778 790 +hsync -vsync (31.6 kHz e)
Mar 19 07:09:58 username123-Dell-System-Inspiron-N411Z dbus-daemon[456]: [system] Activating via systemd: service name='net.reactivated.Fprint' unit='fprintd.service' requested by ':1.146' (uid=1000 pid=1230437 comm="gnome-control-center " label="unconfined")
Mar 19 07:09:58 username123-Dell-System-Inspiron-N411Z systemd[1]: Starting Fingerprint Authentication Daemon...
Mar 19 07:09:58 username123-Dell-System-Inspiron-N411Z dbus-daemon[456]: [system] Successfully activated service 'net.reactivated.Fprint'
Mar 19 07:09:58 username123-Dell-System-Inspiron-N411Z systemd[1]: Started Fingerprint Authentication Daemon.
Mar 19 07:10:28 username123-Dell-System-Inspiron-N411Z systemd[1]: fprintd.service: Succeeded.
Mar 19 07:10:51 username123-Dell-System-Inspiron-N411Z accounts-daemon[1233464]: adduser: Please enter a username matching the regular expression configured
Mar 19 07:10:51 username123-Dell-System-Inspiron-N411Z accounts-daemon[1233464]: via the NAME_REGEX[_SYSTEM] configuration variable. Use the `--force-badname'
Mar 19 07:10:51 username123-Dell-System-Inspiron-N411Z accounts-daemon[1233464]: option to relax this check or reconfigure NAME_REGEX.
Mar 19 07:11:03 username123-Dell-System-Inspiron-N411Z systemd[1270]: Started Application launched by gnome-shell.
Mar 19 07:11:03 username123-Dell-System-Inspiron-N411Z dbus-daemon[1288]: [session uid=1000 pid=1288] Activating via systemd: service name='org.gnome.Terminal' unit='gnome-terminal-server.service' requested by ':1.492' (uid=1000 pid=1234096 comm="/usr/bin/gnome-terminal.real --window " label="unconfined")
Mar 19 07:11:03 username123-Dell-System-Inspiron-N411Z systemd[1270]: Starting GNOME Terminal Server...
Mar 19 07:11:03 username123-Dell-System-Inspiron-N411Z dbus-daemon[1288]: [session uid=1000 pid=1288] Successfully activated service 'org.gnome.Terminal'
Mar 19 07:11:03 username123-Dell-System-Inspiron-N411Z systemd[1270]: Started GNOME Terminal Server.
Mar 19 07:11:04 username123-Dell-System-Inspiron-N411Z systemd[1270]: Started VTE child process 1234132 launched by gnome-terminal-server process 1234104.
Mar 19 07:11:04 username123-Dell-System-Inspiron-N411Z systemd[1270]: gnome-launched-org.gnome.Terminal.desktop-1234085.scope: Succeeded.

1 Like

@zenzen , I've created this OS only a few days ago, this is the result of "ls -lh /var/log/syslog"

"-rw-r----- 1 syslog adm 616K Mar 19 07:11 /var/log/syslog"

1 Like

Ok so first of all, your username is "username123" so obviously it was being "filtered" when you run the grep user command earlier, meaning that every single line was being output :joy: Not relevant, just an interesting remark.

Secondly I see there's these three lines:

Mar 19 07:10:51 username123-Dell-System-Inspiron-N411Z accounts-daemon[1233464]: adduser: Please enter a username matching the regular expression configured
Mar 19 07:10:51 username123-Dell-System-Inspiron-N411Z accounts-daemon[1233464]: via the NAME_REGEX[_SYSTEM] configuration variable. Use the `--force-badname'
Mar 19 07:10:51 username123-Dell-System-Inspiron-N411Z accounts-daemon[1233464]: option to relax this check or reconfigure NAME_REGEX.

I vaguely remember that there's a file where you can enforce certain naming rules for the system usernames. Can't remember where it was but I'm pretty sure that if you try to create a user with a different name other than "2nd" it should work. Try something like testaccount or something like that.

2 Likes

@zenzen , haha, thats funny, yeah, the "user" thing really messed things up i guess, no wonder your initial command was running for like over an hour. haha

Okay, so it worked, i think it just didnt like that i entered in the number 2, i think it doesnt like numbers. You know, linux honestly disappoints me, poor design, if it were windows or Apple, it would simply tell me: "you cant use numbers in an account name". Makes no sense.

1 Like

That is just what I thought when I saw "2nd" in earlier post. :wink:

2 Likes

Yeah... I should've thought of that :sweat_smile:

Some error messages do leave a lot to be desired, true that. Not always the case thought, and I believe (but I'm not sure) one of the reasons is that Linux was mainly focused to be used by system administrators and these error messages can sometimes expose sensitive information that you don't always want to be showing to anyone.

1 Like

@zenzen I have to choose a linux based OS, because i need to use an all open source OS(not programs tho). What other linux OS's are more user friendly than Zorin?
I've had a lot of unnecessary problems with Zorin that i wouldnt even have had with Windows 7. What other linux OS's are easier to use? what PopOS maybe?? Linux Mint? Cinnamon? Ubuntu? how similar is ubuntu with Zorin? openSUSE? EndeavourOS? vanillaOS?

Maybe i should just stick with Zorin, idk.

@zenzen , thanks for teaching me about the "ls -lh /var/log/syslog" trick/solution.

What about a scenario like this? (LINK) would your ls -lh solution solve this one too hypothetically speaking?

"High Xorg CPU usage"
"I noticed that as I switched to a console tty ( ALT + F1 or F2, ..., F6 ) during some gdm/lightdm service restart, there were a lot of error messages scrolling down the screen. Note, that I had only switched to ALT + F1, I had not logged in yet.

The messages were reporting that my usb tv-tuner card was not properly initialised. These messages kept scrolling on and on as if the system was stuck in an infinite loop trying continuously to initialise the tv card (and of course failing every time). "