Unity is running as administrator

hello dear community i have a problem with my unity when i start my projekt i cant work it

i show you the error

9132271--1267840--unity fehler.png

This isn’t error.
It is just a warning.

Why you want to run with administrator privileges?
Technically should be ok to do so.
But you see the massage, so you can take responsibility by your own.

There have been reports of it happening on it’s own due to UAC.

https://discussions.unity.com/t/918277

1 Like

Yes it’s a bug. See here.

2 Likes

I’m not trying to run Unity.exe with admin privelleges, it’s automatically elevated to that when i run it. It could be sthng with with my Win10 settings. Run as admin box is not checked on Unity.exe properties. So are you saying that there are no drawbacks for using Unity like this other than the annoying warning messages?

I tried setting the UAC settings to “Always Notify”, it didn’t work out for me. So i think my options for the moment are:
-Using the current build anyway and wait for the next build
-Installing a previous build
-Upgrading to Win11 bcs my brother has Win11 and he didn’t get this problem

Judging from the comments i see on internet, there’s not much to worry about that warning message

The admin privileges are for reason, to prevent users, or 3rd party applications do any changes, or harmful operations on the system.

Unity shouldn’t be any harmful, if considering Unity as trusted application. Unity has reputation to loose, if start doing some dogy stuff on system files.

Yet I don’t recall Unity been trying modifying my system files after being installed. So seems on that front pretty safe.
But no application should be trusted with your life.

Unless someone has something of concerns, or against, Unity should be pretty ok, to run with admin privileges.
I wouldn’t be trusting, however assets from asset store, or git repos, if you download them.

1 Like

It’s not base Unity you have to be worried about. It’s also bugs in code in your project (be it third party, or your own code). For instance, take this pretty “innocuous” piece of code:

[SerializeField]
private string m_TempFolderName;

void CleanupTempFiles()
{
     var tempPath = Path.GetTempPath() + "/" + m_TempFolderName;
     Directory.Delete(tempPath, true);
}

Let’s say you forget to set m_TempFolderName in the inspector and run this code. Path.GetTempPath() may return “C:\Windows”: https://learn.microsoft.com/en-us/dotnet/api/system.io.path.gettemppath?view=net-7.0&tabs=windows

If Unity isn’t running as admin, it will just fail. If Unity is running as admin, it will trash your system.

4 Likes

Good valid point.

yeah, but is there a working fix for the bug? So far i haven’t seen one. It doesn’t look very great on Unity’s part to say"We made the new build of Unity with a serious bug and we don’t take any responsibility if your project is lost and your system is trashed, also we don’t have any intention of fixing this bug." Not a great practice of customer satisfaction if you ask me. The warning i get already tells me that it can trash my system. As Unity, either show users a solution or patch the bug.

1 Like

See Unity Issue Tracker - "Restart Unity as a standard user" button when running Unity as admin sometimes fails to work

We talked about it here, I asked you some questions: Unity says it is opening with administrator privileges, but nothing seems to be causing this

I also posted some more troubleshooting steps here: Disable "Unity is running as administrator" popup warning - News & General Discussion - Unity Discussions

1 Like

Sry i haven’t noticed your answer at the other topic until you write about it here. I read all the forum topics about the issue. Only info i got from those topics is to changing the UAC settings to always notify and reboot which didn’t work for me. Run as administrator box is unchecked both on Unity Hub abd Unity.exe. It was never checked in the first place. I also never right click and select run as adminitrator option. I did nothing to run those programs as administrator. I use Windows 10 Pro. I have only one windows user account and that is an admin account. If any of those infomations may help

2 Likes

I have the same issue. I updated to 2022 LTS and now I have this warning all the time, since I am using an admin account. Do I really have to make another account, just for Unity?

1 Like

No, having an admin account has nothing to do with it. Please see this thread for troubleshooting: https://forum.unity.com/threads/unity-says-it-is-opening-with-administrator-privileges-but-nothing-seems-to-be-causing-this.1438489

Windows is a bit of an oddball. On Windows XP and older the admin account was the actual admin, but on Vista and newer the admin account is hidden and inaccessible because it’s being driven by UAC. You’re actually on a standard account in the admin user group which allows you to run apps as admin but it won’t do that by default.

i’ve tried all of them but it still running in administrator mode. I’ve even tried 2023 version but nothing chanced.

Can you list the things you tried? And also a screenshot of task manager with the Elevated column showing?

Ofcourse, btw i fixed it by creating another windows user without administrator mode.
nebuchednezar had the same issue looks like but im using licenced windows. Anyway for fixation here is what i’ve done;

As you can see in task manager, some of them yes (“Evet”) and some of them no (“Hayır”)

9676490--1379270--upload_2024-3-2_23-10-49.png

also i’ve lowered and maxed it a lot times and restarted a lot but nothing changed. (User Account Control Settings)

9676490--1379273--upload_2024-3-2_23-19-23.png

9676490--1379267--upload_2024-3-2_23-3-10.png
9676490--1379267--upload_2024-3-2_23-3-10.png
9676490--1379273--upload_2024-3-2_23-19-23.png

System didn’t allowed me to upload another SS so i will contunie from here,

Run as administor unchecked.

9676508--1379282--upload_2024-3-2_23-26-6.png

As i said i fixed it with creating another windows user so it’s not a problem for me anymore. But i hope it will help you to find the issue so new gen programmers will not face this problem :slight_smile:

(sorry for the Google translation)
Good morning,
To solve this problem, it’s simple, it all depends on Widows’ UAC. If you have disabled UAC with third-party software (e.g. Winaero Tweaker):
1 - Reactivate UAC mode with the software used.
2 - Restart your computer.
3 - Launch from the control panel “Control Panel\All Control Panels\Security and Maintenance”
4 - Left-click on “Change User Account Control settings”.
5 - Place the slider on the highest level, reboot, start a Unity project, close it, restart.
6 - Return to the UAC control panel, place the slider at minimum, restart.
Et voilĂ  !

Greetings

Message original en Français :

Bonjour,
Pour résoudre ce problème, c’est simple, tout dépend de l’UAC de Widows. Si vous avez désactivé l’UAC avec un logiciel tiers (par exemple Winaero Tweaker) :
1 - Réactiver le mode UAC avec le logiciel utilisé.
2 - Redémarrez votre ordinateur.
3 - Lancez à partir du panneau de configuration “Panneau de configuration\Tous les Panneaux de configuration\Sécurité et maintenance”
4 - Cliquez à gauche sur « Modifier les paramètres du contrôle de compte d’utilisateur ».
5 - Placez le curseur sur le niveau le plus élevé, redémarrez, lancez un projet Unity, fermez-le, redémarrez.
6 - Retournez dans le panneau de configuration UAC, placez le curseur au minimum, redémarrez.
Et voilĂ  !

Salutations

3 Likes