Solved

set permission of certain directory in NT

Posted on 2000-02-24
4
233 Views
Last Modified: 2010-04-02
how to use vc++ programming to set
the permission of certain director to administrator only. the hardisk is FAT ?
0
Comment
Question by:ttssiong
  • 2
  • 2
4 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 100 total points
ID: 2557986
If the FS is FAT, you're lost, as it does not store any security related information...

See
http://msdn.microsoft.com/library/devprods/vs6/visualc/vcsample/vcsmptakeownsample.htm

on how to do that programmatically.
0
 

Author Comment

by:ttssiong
ID: 2560470
if like that, is there any alternatives
that can set a file that only can be read by certain user only ???
0
 
LVL 86

Expert Comment

by:jkr
ID: 2561116
Only on NTFS - sorry if you don't like this kind of answer, but FAT simply doesn't store security information...
0
 

Author Comment

by:ttssiong
ID: 2561191
that's ok
u had given me the good url
thanks
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question