• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Permissions and VirtualStore

Joined
Dec 27, 2008
Messages
587 (0.11/day)
System Name PC
Processor i5 2500k
Motherboard P8Z68-V PRO/GEN3
Cooling Fans
Memory DDR3-1600 (8GB)
Video Card(s) Sapphire Nitro+ RX 580
Storage HD103SJ
Display(s) XG2402
Case Xigmatek Midgard II
Power Supply PC Power & Cooling Silencer 750W
Using Jedi Knight: Jedi Academy as an example...

I installed JKJA to the default folder, save for shortening the folder name during the install process. I started a new game and navigated to where I believed the saves would be (C:\Program Files (x86)\LucasArts\Star Wars JKJA\GameData\base\saves). Finding nothing there, I looked online and discovered Windows 7 (Vista may also have this, I forget at the moment) keeps a folder called "VirtualStore" for those programs which can't write to their own folder due to permission issues; I'd like to avoid files of my choosing being placed in VirtualStore for the sake of organization and convenience.

My question is this: what is the most efficient and secure way to give permission to these programs so that they can write to their own folders? As I understand it, giving the default Admin (myself) full control of the Program Files folder would present somewhat of a security issue.

This is all I'm going to write for now, but I have other, more specific questions that will hopefully be answered along the way.

Thanks in advance!
 

Frick

Fishfaced Nincompoop
Joined
Feb 27, 2006
Messages
18,914 (2.86/day)
Location
Piteå
System Name Black MC in Tokyo
Processor Ryzen 5 5600
Motherboard Asrock B450M-HDV
Cooling Be Quiet! Pure Rock 2
Memory 2 x 16GB Kingston Fury 3400mhz
Video Card(s) XFX 6950XT Speedster MERC 319
Storage Kingston A400 240GB | WD Black SN750 2TB |WD Blue 1TB x 2 | Toshiba P300 2TB | Seagate Expansion 8TB
Display(s) Samsung U32J590U 4K + BenQ GL2450HT 1080p
Case Fractal Design Define R4
Audio Device(s) Line6 UX1 + some headphones, Nektar SE61 keyboard
Power Supply Corsair RM850x v3
Mouse Logitech G602
Keyboard Cherry MX Board 1.0 TKL Brown
VR HMD Acer Mixed Reality Headset
Software Windows 10 Pro
Benchmark Scores Rimworld 4K ready!
Run installation as admin maybe?
 
Joined
Dec 27, 2008
Messages
587 (0.11/day)
System Name PC
Processor i5 2500k
Motherboard P8Z68-V PRO/GEN3
Cooling Fans
Memory DDR3-1600 (8GB)
Video Card(s) Sapphire Nitro+ RX 580
Storage HD103SJ
Display(s) XG2402
Case Xigmatek Midgard II
Power Supply PC Power & Cooling Silencer 750W
Run installation as admin maybe?

This actually reminds me of a question I have; when I'm prompted by UAC to allow a program to install, is this comparable to selecting the setup file and running as administrator?
 
Joined
Jun 3, 2007
Messages
792 (0.13/day)
System Name Minerva / Remus
Processor i9 10900KF (5.1Ghz) / Ryzen 5600X
Motherboard Asus TUF Gaming Z490 / MSI 550 Pro
Cooling Corsair iCUE H150i / Air Cooler
Memory 64Gb Crucial Ballistix (3200) / 16GB Crucial Ballistix (3200)
Video Card(s) Asus Tuf 3070 Ti / Quadro P1000
Storage 16TB / 20TB
Display(s) Dell S2719DGF + HP z27 / Dell P22
Case Fractal Design 7 XL / MSi
Audio Device(s) Realtek HD
Power Supply Corsair HX750W Modular / Corsair CX550
Mouse Logitech G502 / G602
Keyboard Havit Kalih Blue Switch /
Software Win 10 Pro / Ubuntu 20.04
Benchmark Scores Suggestions.
Have you tried compatibility option. I had to enable that one as "Vista" to run Jedi Outcast for example.
 
Joined
Dec 27, 2008
Messages
587 (0.11/day)
System Name PC
Processor i5 2500k
Motherboard P8Z68-V PRO/GEN3
Cooling Fans
Memory DDR3-1600 (8GB)
Video Card(s) Sapphire Nitro+ RX 580
Storage HD103SJ
Display(s) XG2402
Case Xigmatek Midgard II
Power Supply PC Power & Cooling Silencer 750W
Have you tried compatibility option. I had to enable that one as "Vista" to run Jedi Outcast for example.

Hmm...I could give that a try. I don't know if that will allow for the saves to land in their proper folder, but it's worth a shot!
 

newtekie1

Semi-Retired Folder
Joined
Nov 22, 2005
Messages
28,472 (4.25/day)
Location
Indiana, USA
Processor Intel Core i7 10850K@5.2GHz
Motherboard AsRock Z470 Taichi
Cooling Corsair H115i Pro w/ Noctua NF-A14 Fans
Memory 32GB DDR4-3600
Video Card(s) RTX 2070 Super
Storage 500GB SX8200 Pro + 8TB with 1TB SSD Cache
Display(s) Acer Nitro VG280K 4K 28"
Case Fractal Design Define S
Audio Device(s) Onboard is good enough for me
Power Supply eVGA SuperNOVA 1000w G3
Software Windows 10 Pro x64
This is a tricky one.

Simply adding administrator to the security options would do nothing since the Administrators group should already have permission to write to pretty much every folder already, so any administrator should have write access.

However, this is an UAC issue almost certainly, since UAC prevents programs actually running with Administrator privileges, even if you run them under an Administrator account.

So the solution would be to go into the properties of the programs EXE, and going to the compatibility tab, and checking the box to always run the program as administrator. This will make sure the program has administrative privileges and can write to its own folder. You will get a UAC prompt every time you run the program though. Obviously this is safe if you know the program and trust it, obviously you don't want to do this with every program.
 
Joined
Dec 27, 2008
Messages
587 (0.11/day)
System Name PC
Processor i5 2500k
Motherboard P8Z68-V PRO/GEN3
Cooling Fans
Memory DDR3-1600 (8GB)
Video Card(s) Sapphire Nitro+ RX 580
Storage HD103SJ
Display(s) XG2402
Case Xigmatek Midgard II
Power Supply PC Power & Cooling Silencer 750W
This is a tricky one.

Simply adding administrator to the security options would do nothing since the Administrators group should already have permission to write to pretty much every folder already, so any administrator should have write access.

However, this is an UAC issue almost certainly, since UAC prevents programs actually running with Administrator privileges, even if you run them under an Administrator account.

So the solution would be to go into the properties of the programs EXE, and going to the compatibility tab, and checking the box to always run the program as administrator. This will make sure the program has administrative privileges and can write to its own folder. You will get a UAC prompt every time you run the program though. Obviously this is safe if you know the program and trust it, obviously you don't want to do this with every program.

This was a really informative post and actually addressed some other questions I had. It also provides me with the simplest and most efficient solution (as far as I know now, I haven't tested it yet).
 
Joined
Dec 27, 2008
Messages
587 (0.11/day)
System Name PC
Processor i5 2500k
Motherboard P8Z68-V PRO/GEN3
Cooling Fans
Memory DDR3-1600 (8GB)
Video Card(s) Sapphire Nitro+ RX 580
Storage HD103SJ
Display(s) XG2402
Case Xigmatek Midgard II
Power Supply PC Power & Cooling Silencer 750W
newtekie1's solution worked.

Thanks!
 
Top