![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| | |||||||
| | Vista - Give a program access to C:\xxx\its-own-file.c |
| |
| 08-10-2009 | #1 |
| | Give a program access to C:\xxx\its-own-file.c Hello. Actually I'm using Windows 7, but I guess it's all most the same in Windows Vista and there's no newsgroup for 7's security yet. The problem is that I have an old-school program that creates its directory at a hard-corded directory in C's root (C:\xxx). Now, I don't want to run it with administrative privileges, I changed the directory's security permissions to (everyone - full control) and make them inherited to all its sub-directories. The program reads & writes fine with existing files. But the program creates a c file inside its directory and tries to let a C compiler on a network drive compile it. That’s when the problem comes in. It creates the c file all right, but the c compiler cannot read it (saying “permission denied”). If I turn UAC off, I don’t get errors, but I don’t want to turn it off. I’ve tried to give Full-Control to “Everyone”, “Creator Owner” and “my own account”, but the problem persisted. How can I change a specific folder’s (C:\xxx) permission settings so that no matter what program or account do whatever they want in that directory they can do it? |
| My System Specs |
| 08-11-2009 | #2 |
| | Re: Give a program access to C:\xxx\its-own-file.c RealCat wrote: Quote: > Hello. > Actually I'm using Windows 7, but I guess it's all most the same in > Windows Vista and there's no newsgroup for 7's security yet. The > problem is that I have an old-school program that creates its > directory at a hard-corded directory in C's root (C:\xxx). Now, I > don't want to run it with administrative privileges, I changed the > directory's security permissions to (everyone - full control) and make > them inherited to all its sub-directories. The program reads & writes > fine with existing files. But the program creates a c file inside its > directory and tries to let a C compiler on a network drive compile it. > That’s when the problem comes in. It creates the c file all right, but > the c compiler cannot read it (saying “permission denied”). > > If I turn UAC off, I don’t get errors, but I don’t want to turn it > off. I’ve tried to give Full-Control to “Everyone”, “Creator Owner” > and “my own account”, but the problem persisted. How can I change a > specific folder’s (C:\xxx) permission settings so that no matter what > program or account do whatever they want in that directory they can do > it? to the root of C:. As you well know, that is protected in both Vista and Windows 7. If you want to pursue this, post in the appropriate Win7's forum here: http://social.technet.microsoft.com/...egory/w7itpro/ AFAIK (and much to my chagrin), MS will not be creating NNTP newsgroups for Win7. Malke -- MS-MVP Elephant Boy Computers - Don't Panic! http://www.elephantboycomputers.com/#FAQ |
| My System Specs |
| 08-11-2009 | #3 |
| | Re: Give a program access to C:\xxx\its-own-file.c This is a workaround technique we use for Vista quite successfully and I imagine Win 7 would be the same. Are you sure its the c file that is giving the problem? If the c compiler is also legacy could it be attempting to create intermediate files in the 'current' path or some other inaccessible place? Does your code generator have any options for setting paths for the compilation? Some compilers may use environment variables to set paths. Cheers Doug Forster |
| My System Specs |
| 08-11-2009 | #4 |
| | Re: Give a program access to C:\xxx\its-own-file.c On Aug 12, 5:30*am, "Doug Forster" <nob...@xxxxxx> wrote: Quote: > This is a workaround technique we use for Vista quite successfully and I > imagine Win 7 would be the same. Are you sure its the c file that is giving > the problem? If the c compiler is also legacy could it be attempting to > create intermediate files in the 'current' path or some other inaccessible > place? Does your code generator have any options for setting paths for the > compilation? Some compilers may use environment variables to set paths. > > Cheers > Doug Forster Thanks. Actually the program itself was some complicated groups of scripts on Cygwin. The situation is a little bit complicated I created and edit a c file which is in D drive (in a Library) and I created a symbolic link to that in the program's data folder. (I used Link Shell Extension : http://schinagl.priv.at/nt/hardlinks...kshellext.html) Then the program copies that file into its working folder (C:\xxx) then tries to compile it. I deleted the symbolic link then used traditional copy of that file, then the permission problem didn't occur. That is, there were two solutions 1) turning off UAC, 2)Use traditional copy instead of symbolic link. But I still hope I could use both UAC and symbolic link, because symbolic link is convenient for I don't have to keep sync'ing and the two copies. |
| My System Specs |
| 08-12-2009 | #5 |
| | Re: Give a program access to C:\xxx\its-own-file.c Well we learn something every day. Never heard of symbolic links before but they look interesting. I see the author of the Link Shell Extension had some problems with UAC - maybe you should write to him and see if he can shed any light on the matter. Cheers Doug Forster |
| My System Specs |
![]() |
| Thread Tools | |
| |
| Similar Threads for: Give a program access to C:\xxx\its-own-file.c | ||||
| Thread | Forum | |||
| Access Denied to file backup program | Software | |||
| Give network access without giving access to the computer itself? | Vista networking & sharing | |||
| PLEASE GIVE US A NEW DIGITAL IMAGE EDITING SOFTWARE PROGRAM | Vista music pictures video | |||
| Give program permanent persmission to run. | Vista General | |||
| How to open a file for read/write access in Program Files directory | Vista security | |||