Page 1 of 2

Error Message when I click on "Go To Application"

PostPosted: 21. November 2022 08:55
by SMU
When I start up XAMPP, I see the following error message in the terminal.

"Running Firefox as root in a regular user's session is not supported. ($XAUTHORITY is /home/umair/.Xauthority which is owned by umair.)"

Whats going on? thanks

Re: Error Message when I click on "Go To Application"

PostPosted: 21. November 2022 15:14
by SMU
Will tell a few more things that could be relevant.

I run my Linux Mint using just one account - the administrator account. Could this be the cause of the problem?

when I enter "/opt/lampp/lampp status", I get the following on the terminal:

Version: XAMPP for Linux 8.1.10-0
Apache is running.
cat: /opt/lampp/var/mysql/Dell-Inspiron-5515.pid: Permission denied
rm: remove write-protected regular file '/opt/lampp/var/mysql/Dell-Inspiron-5515.pid'?
MySQL is not running.
ProFTPD is running.

will deeply appreciate any help from you guys. thanks. :)

Re: Error Message when I click on "Go To Application"

PostPosted: 22. November 2022 11:08
by Nobbie
SMU wrote:I run my Linux Mint using just one account - the administrator account. Could this be the cause of the problem?


Yes, that causes this error message.

Do not run a normal user with root priviliges, instead run with normal userid and use "sudo" if you need elevated rights for single commands. I am running Xampp on Linux Mint 21 flawlessly, as i have a normal user account (uid = 1000).

Re: Error Message when I click on "Go To Application"

PostPosted: 22. November 2022 15:15
by SMU
thanks for the reply, I will create a normal user account and see how it goes.....

Re: Error Message when I click on "Go To Application"

PostPosted: 22. November 2022 18:35
by SMU
nope, its not working, tried it, but the terminal gives the following error message.

"Sorry, user umair123 is not allowed to execute '/opt/lampp/lampp start' as root on Dell-Inspiron-5515."

any ideas?

Re: Error Message when I click on "Go To Application"

PostPosted: 22. November 2022 21:41
by Nobbie
Did you use "sudo"? And what is uid of "umair123"? How did you create that user?

I really wonder how to destroy Xampp on Linux Mint 21. Its a combination of most reliable Linux distributions and simply runs out of the box for many years. Maybe you should install Linux Mint and Xampp from scratch. Without fiddling around in the standard user settings. Just install everything normally.

Re: Error Message when I click on "Go To Application"

PostPosted: 23. November 2022 03:51
by SMU
umair123 is "normal" user, not administrator.

I entered this:
"sudo /opt/lampp/lampp start"

I then get this prompt:
"[sudo] password for umair123:"

If I enter the password for umair123 then I get
"Sorry, user umair123 is not allowed to execute '/opt/lampp/lampp start' as root on Dell-Inspiron-5515."

Re: Error Message when I click on "Go To Application"

PostPosted: 23. November 2022 04:04
by SMU
Nobbie wrote:And what is uid of "umair123"?


to check UID, I went into /etc which has the passwd file. perhaps this line is of interest.
umair123:x:1001:1002:SMU,,,:/home/umair123:/bin/bash

How did you create that user?

I went to "System Settings" and then "Users and Groups"
from here I created the new ordinary user account.

Re: Error Message when I click on "Go To Application"

PostPosted: 23. November 2022 05:51
by SMU
I think there is some setting that is preventing the ordinary user from using root privilege.

What do you think?

Re: Error Message when I click on "Go To Application"

PostPosted: 23. November 2022 10:48
by Nobbie
Maybe umair123 is not included in /etc/sudoers, so that he cannot "sudo". But the error message looks so strange, i dont know if one can configure the error message. But anyway, check if umair123 is in /etc/sudoers, if not, insert it.

Re: Error Message when I click on "Go To Application"

PostPosted: 23. November 2022 11:59
by SMU
I have checked the sudoers file that you pointed to. But I did not find any account name in there. Neither the admin name nor the ordinary user name.

However, I have changed umair123 to sudo user. With this user, I can open /etc as root. When I right click on the root folder and select "open as root", this folder opens with the message "elevated privileges" written on it.

and in the terminal when I type
groups
in front of the user umair123, I can also now see "sudo". So now I think that umair123 has root privilege and can in fact "sudo".

But even after doing this, I am getting the same error message when I open the GUI and click on "go to application":
Running Firefox as root in a regular user's session is not supported. ($XAUTHORITY is /home/umair123/.Xauthority which is owned by umair123.)

any more ideas?

Re: Error Message when I click on "Go To Application"

PostPosted: 23. November 2022 14:55
by Nobbie
When i enter "Running Firefox as root in a regular user's session is not supported." in Google i get tons of links.

Seems, there is no good solution for firefox. I am running Chrome as default browser and there is no problem with Xampp. But you may find a solution in Google for firefox, i did NOT check all answers. Last not least, i do not use "go to application" and neither the GUI. Simply start a browser and enter http://localhost

Re: Error Message when I click on "Go To Application"

PostPosted: 23. November 2022 19:06
by SMU
heres some deja vu :mrgreen:

https://community.apachefriends.org/f/viewtopic.php?f=17&t=77921&sid=6c4b56eb396602739f35b01143b22074

Re: Error Message when I click on "Go To Application"

PostPosted: 23. November 2022 19:59
by SMU
deleted firefox. The logic behind this unprecedented act was that with FF out of the way, the annoying error message will go away.

But this time around there is an even more horrifyingly cryptic message.

[5887:5887:1123/233956.104860:ERROR:zygote_host_impl_linux.cc(90)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.


If you visit the link in the error message, you will find that it is chrome thats now the problem.

Re: Error Message when I click on "Go To Application"

PostPosted: 23. November 2022 20:08
by SMU
Nobbie wrote:Last not least, i do not use "go to application" and neither the GUI. Simply start a browser and enter http://localhost


Oh OK, I am new to all of this PHP stuff, so I wouldn't know anything about it.

So I will never need to use this GUI then?