Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Program Accessing File Only

Reply
Thread Tools Display Modes

Program Accessing File Only

 
 
Mack
Guest
Posts: n/a

 
      11-11-2007
I have a program that needs to view a certain file that has current
data in it. Both administrators and standard users use the program,
but standard users do not need to have access to this file. How can
allow only the program to access the file but not the standard user.

I have tried making the file viewable by only administrators, then
marked the program to run in administrator mode. This will work accept
when a standard user opens the program it requires them to enter in an
administrator password to open the program.

Any help would be appreciated!

 
Reply With Quote
 
 
 
 
Rick Rogers
Guest
Posts: n/a

 
      11-11-2007
Hi Mack,

You can't have it both ways. If the user accounts need to work with that
file for the program to run, you need to allow them access to it (via
permissions). If you limit it to read only, or read and execute (depending
on need), but not alter/modify/full, then they should be able to use it
without the ability to make changes. If the program needs to write to the
file while running, then you don't have this option.

--
Best of Luck,

Rick Rogers, aka "Nutcase" - Microsoft MVP
http://mvp.support.microsoft.com/
Windows help - www.rickrogers.org
My thoughts http://rick-mvp.blogspot.com

"Mack" <> wrote in message
news: ups.com...
>I have a program that needs to view a certain file that has current
> data in it. Both administrators and standard users use the program,
> but standard users do not need to have access to this file. How can
> allow only the program to access the file but not the standard user.
>
> I have tried making the file viewable by only administrators, then
> marked the program to run in administrator mode. This will work accept
> when a standard user opens the program it requires them to enter in an
> administrator password to open the program.
>
> Any help would be appreciated!
>


 
Reply With Quote
 
Mack
Guest
Posts: n/a

 
      11-11-2007
On Nov 11, 2:48 pm, "Rick Rogers" <r...@mvps.org> wrote:
> Hi Mack,
>
> You can't have it both ways. If the user accounts need to work with that
> file for the program to run, you need to allow them access to it (via
> permissions). If you limit it to read only, or read and execute (depending
> on need), but not alter/modify/full, then they should be able to use it
> without the ability to make changes. If the program needs to write to the
> file while running, then you don't have this option.
>
> --
> Best of Luck,
>
> Rick Rogers, aka "Nutcase" - Microsoft MVPhttp://mvp.support.microsoft.com/
> Windows help -www.rickrogers.org
> My thoughtshttp://rick-mvp.blogspot.com
>
> "Mack" <estatebar...@gmail.com> wrote in message
>
> news: ups.com...
>
> >I have a program that needs to view a certain file that has current
> > data in it. Both administrators and standard users use the program,
> > but standard users do not need to have access to this file. How can
> > allow only the program to access the file but not the standard user.

>
> > I have tried making the file viewable by only administrators, then
> > marked the program to run in administrator mode. This will work accept
> > when a standard user opens the program it requires them to enter in an
> > administrator password to open the program.

>
> > Any help would be appreciated!


Is there any way to have the program run as system for a standard
user?


 
Reply With Quote
 
Rick Rogers
Guest
Posts: n/a

 
      11-11-2007
Hi,

Not and maintain user safety and system stability. Might as well run Win98
(and don't get me wrong, I loved that OS).

--
Best of Luck,

Rick Rogers, aka "Nutcase" - Microsoft MVP
http://mvp.support.microsoft.com/
Windows help - www.rickrogers.org
My thoughts http://rick-mvp.blogspot.com

"Mack" <> wrote in message
news: oups.com...
> On Nov 11, 2:48 pm, "Rick Rogers" <r...@mvps.org> wrote:
>> Hi Mack,
>>
>> You can't have it both ways. If the user accounts need to work with that
>> file for the program to run, you need to allow them access to it (via
>> permissions). If you limit it to read only, or read and execute
>> (depending
>> on need), but not alter/modify/full, then they should be able to use it
>> without the ability to make changes. If the program needs to write to the
>> file while running, then you don't have this option.
>>
>> --
>> Best of Luck,
>>
>> Rick Rogers, aka "Nutcase" - Microsoft
>> MVPhttp://mvp.support.microsoft.com/
>> Windows help -www.rickrogers.org
>> My thoughtshttp://rick-mvp.blogspot.com
>>
>> "Mack" <estatebar...@gmail.com> wrote in message
>>
>> news: ups.com...
>>
>> >I have a program that needs to view a certain file that has current
>> > data in it. Both administrators and standard users use the program,
>> > but standard users do not need to have access to this file. How can
>> > allow only the program to access the file but not the standard user.

>>
>> > I have tried making the file viewable by only administrators, then
>> > marked the program to run in administrator mode. This will work accept
>> > when a standard user opens the program it requires them to enter in an
>> > administrator password to open the program.

>>
>> > Any help would be appreciated!

>
> Is there any way to have the program run as system for a standard
> user?
>
>


 
Reply With Quote
 
roy69
Guest
Posts: n/a

 
      11-11-2007

What is the program and data file in question?


--
roy69

- Core 2 Quad Q6600
- Abit IP35 Pro
- 4 x 1GB OcUK PC2-6400 C5 800 MHZ Duel Channel
- Leadtek GeForce 8800 GTS 640MB GDDR3 CiBox TFT 22" Widescreen LCD
Panel. 1680 x 1050
- Creative X-Fi 7.1 PCI-E
- Antec 900 Ultimate Gaming Case
- Creative Inspire 7.1 T7900 Speakers
 
Reply With Quote
 
Jimmy Brush
Guest
Posts: n/a

 
      11-11-2007
Hello,

In Windows, programs cannot be assigned privileges. There is no
administrative way to do this, other than by running the program in another
user account, but this opens up a can of worms... the user can use the
credentials for the other user account to exceed their own privileges. Even
if you attempt to hide the other user account's credentials, the user can
use the UI in the program to elevate their privilege (for example, the user
could run a program from the save as/open dialog box, which will then run as
the higher-privileged user).

The correct solution here is not an administrative one but a programmatic
one.

One possible solution: The application could be architected so that the part
of it that needs to work with the protected data runs as a service running
under a system account, with the permissions on the file giving only the
service account access to it. The part of the application that is ran by
users/administrators should then talk to the service when it needs to work
with the file, and the service should then work with the file on the
application's behalf. The service could then control who has access to what
actions/information based on whether the program talking to it is an admin
or not.

--
- JB
Microsoft MVP Windows Shell/User

"Mack" <> wrote in message
news: ups.com...
>I have a program that needs to view a certain file that has current
> data in it. Both administrators and standard users use the program,
> but standard users do not need to have access to this file. How can
> allow only the program to access the file but not the standard user.
>
> I have tried making the file viewable by only administrators, then
> marked the program to run in administrator mode. This will work accept
> when a standard user opens the program it requires them to enter in an
> administrator password to open the program.
>
> Any help would be appreciated!
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing file from disc Girlystevedave Windows Vista File Management 4 02-01-2008 11:13 AM
program not associated with file Gil McD Windows Vista Mail 3 08-17-2007 07:26 PM
Accessing File Network Sharing, Windows is Not Responding (At All).. Gunady Windows Vista General Discussion 2 07-09-2007 05:45 AM
Accessing an Encrypted File Paul Windows Vista Security 2 06-21-2007 06:04 PM
Accessing Vista log file "Microsoft-Windows-TaskScheduler/Operatio Soumitra Banerjee Windows Vista File Management 0 02-17-2007 01:42 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59