Acces Denied???

A place to post your WML questions and answers for multiplayer/single player scenarios.

Moderators: Forum Moderators, Developers

Acces Denied???

Postby Ndnkid1234 » February 8th, 2010, 12:06 am

Ok so I have C++ text editor (I am running on Windows) but whenever I try to save a modded file it tells me acess denied and contact administrator. Am I just completely inept or is there something I have to do to Edit? Please Help!!!
Ndnkid1234
 
Posts: 2
Joined: February 7th, 2010, 9:40 pm

Re: Acces Denied???

Postby Gambit » February 8th, 2010, 1:18 am

Vista? You can't edit things in Program Files even while logged in as the administrator. Second most retarded security feature ever (first being "compatability files").

Install Wesnoth to My Documents to get around it. Honestly though I can't think of why (or how) you'd be editing the source after it's been installed.

Are you sure it's C++ and not WML you're trying to edit?
User avatar
Gambit
Loose Screw
 
Posts: 2445
Joined: August 13th, 2008, 3:01 pm
Location: Dynamica

Re: Acces Denied???

Postby Zarel » February 8th, 2010, 1:27 am

Gambit wrote:Vista? You can't edit things in Program Files even while logged in as the administrator. Second most retarded security feature ever (first being "compatability files").

Well, you can, it's just lots harder. You have to run Notepad or whatever other texteditor as administrator.

What's "compatibility files"?
Try Warzone 2100, a FOSS real-time strategy game! | I prefer the CC-0 license.
User avatar
Zarel
 
Posts: 933
Joined: July 15th, 2009, 8:24 am
Location: Minnesota, USA

Re: Acces Denied???

Postby Gambit » February 8th, 2010, 1:58 am

Some files are placed in a virtual store. Example:
C:\Users\Gambit\AppData\Local\VirtualStore\Program Files (x86)\Sauerbraten
However the program (in this case sauerbraten) still sees them as being in
C:\Program Files (x86)\Sauerbraten

Before I learned of this it produced some extremely annoying results. I'd be saving or loading a file in a program and it would be there in that program's dialog box. But when I browsed to the same folder in Windows Explorer it wasn't there! It wasn't hidden and it wasn't special system hidden. It just wasn't there. Went back through the program again and copied a direct link to the file. Pasted it into Windows Explorer and got "could not find file".

Then I noticed a box at the top that says "Compatability Files". Clicking that button takes you to the virtual store's copy of your folder.

It prevents applications (except those that are run as the adiministrator) from writing data to the Program Files folder, but it still lets them think that they have. The program is happy, most users are happy, and some sort of security is maintained.
User avatar
Gambit
Loose Screw
 
Posts: 2445
Joined: August 13th, 2008, 3:01 pm
Location: Dynamica

Re: Acces Denied???

Postby Zarel » February 8th, 2010, 4:45 am

Gambit wrote:It prevents applications (except those that are run as the adiministrator) from writing data to the Program Files folder, but it still lets them think that they have. The program is happy, most users are happy, and some sort of security is maintained.

And what's wrong with that?
Try Warzone 2100, a FOSS real-time strategy game! | I prefer the CC-0 license.
User avatar
Zarel
 
Posts: 933
Joined: July 15th, 2009, 8:24 am
Location: Minnesota, USA

Re: Acces Denied???

Postby Gambit » February 8th, 2010, 1:34 pm

I'm not most users. :P

Also nobody on the internet so far has come up with an explanation as to what "sort of security" is maintained. I can't imagine what the problem is. Program Files is not some holy bastion. It's one of my most visited and altered folders.
User avatar
Gambit
Loose Screw
 
Posts: 2445
Joined: August 13th, 2008, 3:01 pm
Location: Dynamica

Re: Acces Denied???

Postby Anonymissimus » February 8th, 2010, 7:14 pm

Ndnkid1234 wrote:Ok so I have C++ text editor (I am running on Windows) but whenever I try to save a modded file it tells me acess denied and contact administrator. Am I just completely inept or is there something I have to do to Edit? Please Help!!!

The C++ source is usually not there, it's compiled into wesnoth.exe (and maybe some dlls and other files). Unless you've downloaded the source, you're editing extension wml.

It prevents applications (except those that are run as the adiministrator) from writing data to the Program Files folder, but it still lets them think that they have. The program is happy, most users are happy, and some sort of security is maintained.

omg, this is even worse than vista-word. They do it to take a Linux concept but simulate the familiar windows behavior. Linux doesn't lie to you...
A Simple Campaign: bare minimum of a campaign, intended for wml starters; download from the add-ons server please
Dwarven Kingdom: single player campaign; author
A Gryphon's Tale: single player campaign; abandoned
Anonymissimus
Code & WML Contributor
 
Posts: 805
Joined: August 15th, 2008, 8:46 pm
Location: Germany

Re: Acces Denied???

Postby Zarel » February 9th, 2010, 1:06 am

Gambit wrote:I'm not most users. :P

Also nobody on the internet so far has come up with an explanation as to what "sort of security" is maintained. I can't imagine what the problem is. Program Files is not some holy bastion. It's one of my most visited and altered folders.

Yeah, Program Files is not some holy bastion, it's only where all your programs are stored, and thus the most important place a virus needs to infect if it wants to survive.

And Windows is also working on being more multiuser. If you store your data to Program Files, what if you don't want some other user to see it?

Anonymissimus wrote:omg, this is even worse than vista-word. They do it to take a Linux concept but simulate the familiar windows behavior. Linux doesn't lie to you...

No, Vista does the exact same thing.
Try Warzone 2100, a FOSS real-time strategy game! | I prefer the CC-0 license.
User avatar
Zarel
 
Posts: 933
Joined: July 15th, 2009, 8:24 am
Location: Minnesota, USA

Re: Acces Denied???

Postby Gambit » February 9th, 2010, 1:22 am

Zarel wrote:
Gambit wrote:I'm not most users. :P

Also nobody on the internet so far has come up with an explanation as to what "sort of security" is maintained. I can't imagine what the problem is. Program Files is not some holy bastion. It's one of my most visited and altered folders.


Right so all the virus has to do is run itself as administrator. Which could be done by having a macro hit the enter key really really fast before the user notices the popup.
User avatar
Gambit
Loose Screw
 
Posts: 2445
Joined: August 13th, 2008, 3:01 pm
Location: Dynamica

Re: Acces Denied???

Postby Zarel » February 9th, 2010, 2:37 am

Gambit wrote:Right so all the virus has to do is run itself as administrator. Which could be done by having a macro hit the enter key really really fast before the user notices the popup.

You know, UAC would be kind of useless if that were actually possible. What UAC does is open a VM that macros can't touch, and then ask if you want to elevate to admin inside that VM. It's architected decently well. Microsoft does have a team of security specialists, you know.
Try Warzone 2100, a FOSS real-time strategy game! | I prefer the CC-0 license.
User avatar
Zarel
 
Posts: 933
Joined: July 15th, 2009, 8:24 am
Location: Minnesota, USA

Re: Acces Denied???

Postby Gambit » February 9th, 2010, 12:18 pm

-did not know that-

Microsoft does have a team of security specialists, you know.

Yes I like the new recruits. I just wish they could think of a different way to handle this particular case.
User avatar
Gambit
Loose Screw
 
Posts: 2445
Joined: August 13th, 2008, 3:01 pm
Location: Dynamica

Re: Acces Denied???

Postby Zarel » February 9th, 2010, 1:07 pm

Gambit wrote:-did not know that-

It's also the reason why it takes so long for UAC to start up and ask if you want to allow an action. It's starting up a mini-VM, which takes a while. Gets annoying when you're trying to do stuff fast, which is why most users hated UAC in Vista.

Gambit wrote:Yes I like the new recruits. I just wish they could think of a different way to handle this particular case.

I don't know; is there a better way? No other OS saves anything in their equivalent of Program Files, either.
Try Warzone 2100, a FOSS real-time strategy game! | I prefer the CC-0 license.
User avatar
Zarel
 
Posts: 933
Joined: July 15th, 2009, 8:24 am
Location: Minnesota, USA


Return to WML Workshop

Who is online

Users browsing this forum: No registered users and 2 guests