Admin user and credentials?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Filehero
Posts: 2734
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Admin user and credentials?

Post by Filehero »

Hi,

finally I've come around to make significant progress with my new machine setup (what a hassle, never had hardware problems before, but this time .... :twisted: ).

After setting up the new system the initial credentials of my XYplorer temp folder hierarchy assigns full access for (group) administrators only (the old owner userd ids aren't known to the new windows installation, of course). My admin account/user by Windows standard is member of group "Administrators". When logged in as admin user and run a XY script which tries to write a log file located within these folder structure I got an Script error "permission denied". This can be overcome by restarting XYplorer elevated.

Why do I need to explicitly run XYplorer as admin with an account belonging to group administrators to get write access? Is this a Windows or an XYplorer thing?

Thanks,
Filehero

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Admin user and credentials?

Post by highend »

What happens if you double click on this folder from within Windows Explorer, do you
get the message "You don't currently have permission to access this folder"?
One of my scripts helped you out? Please donate via Paypal

Filehero
Posts: 2734
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: Admin user and credentials?

Post by Filehero »

highend wrote: ↑24 Nov 2018 10:24 What happens if you double click on this folder from within Windows Explorer, do you
get the message "You don't currently have permission to access this folder"?
No.

But this was the missing hint. When I open the file with Notepad++ from Windows Explorer saving a change makes Notepad++ wanting to restart in Admin mode as well. If add explicit full access rights for my admin user it works.

So it's a Windows thing. I thought I had understood the major parts for Windows' credential system. But I don't understand why the admin user doesn't get full access simply by its membership in 'administrators', this is whole purpose of groups.

/e: added a missing "o".

Post Reply