473,830 Members | 2,031 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Win32::Perm Usage for special permissions

Hello all.

On a file or folder object in Windows 2000/2003, it is possible to
edit the standard Change, RW etc permissions and give "special"
permissions. These special permissions do things like allow/deny
"Create Folders/Append Data" and such.

What I am looking to do is use a script that I have that walks a
directory to set permissions on a specific subfolder that is found 4-6
levels deep (depending on where it is located) for one group where
they will have access to read and modify files but not create a
subdirectory. According to a Microsoft KB article, this requires
setting the permission on each folder individually. Since there are
over 5000 folders, I'd like to do it programmaticall y.

What I don't know, though, is can Win32::Perm (or any other module,
for that matter) set the granular permissions that 2000/2003 offer. I
want to remove the "Create Folders/Append Data" right on these
folders, but leave read ad write access, as per this KB article.

So, is it possible, and if so, any ideas on what the function would
be?

Any help would be GREATLY appreciated.

Thank you.

Howard
Jul 19 '05 #1
1 3478
Howard

Your best resource for this is the Win32 Perl Programming: The
Standard Extensions, 2nd edition, available from Roth Consulting
(www.roth.net). It is also available on safari.

This is a complex subject but I finally understood enough of it to add
a component to my web CMS to set folder and file permissions at any
level, singly or recursively. The result is end users can restrict
access to web pages or individual documents on a remote file system,
requiring members to authenticate via NTLM.

Best regards
geraldo
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
105850
by: Dave | last post by:
Hi, I have done some research, trying to Clear The Screen in java code. The first option was the obv: system.out.print("\n\n\n\n\n\n\n\n\n\n\n\n"); then i heard about this method: System.out.print((char)27 + "[2J");
0
2646
by: Charles LaCour | last post by:
I am looking for a way to list and possibly change the permissions on file shares on Win2K servers via a perl script. I have tried using Win32::OLE to access ADSI objects for the shares but there is no permissions listed. I have looked at Win32NetResource and that has no more info than I can get via ADSI. I have also looked at Win32::lanman and I did not find anything in there
0
3339
by: Markus Poehler | last post by:
Hi my program should run on terminal server. I open Acrobat process and I have to kill them at some points in my application. This fails cause of insufficient rights on terminal server. the lines: Dim p As New Process For Each p In Process.GetProcesses If LCase(p.ProcessName) = "acrord32" Then 'p.Kill()
1
2257
by: Troy | last post by:
Is there a way in Visual Basic to determine when a user has explicit rights to a directory and when they have rights due to inheritance?
5
3322
by: Christian Traber | last post by:
Hi! just playing with tablespaces... - moved a existing table to a new tablespace - tried to move it back to default tablespace (ALTER TABLE accounts SET TABLESPACE pg_default;) Got the following error in logfile:
1
1130
by: Daniel | last post by:
when my C# service impersonates a secondary account does the secondary account need any special permissions? what are they?
6
39986
by: Fred W. | last post by:
When my application starts I need to check folder permissions to ensure they have "Full Control" before I let them proceed on. How can I check this permission. Thank you, Fred
4
3687
by: Adam Benson | last post by:
Hi, We have an app which, every now and then, has very high CPU usage. Profiling under perfmon shows it to be thread #3 which is running at >=95%. I took a process dump and looked at thread #3 in WinDbg and it's a thread called ".NET SystemEvents" The stack trace looks like this : 0:003!ClrStack -all
0
909
by: vijayasb | last post by:
Hi, I have 2 solutions to get CPU usage of a Process. In one i am using Performance Counters and in the second i am using Win32 API GetProcessTimes(). When i execute the my application using Performance counter, my application itself takes 70 - 80 % CPU and some memory but when i execute my application using Win32 API GetProcessTimes() , my application takes zero% CPU usage and no memory , but the result i get it late i.e. the CPU usage of...
0
9641
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10522
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10197
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9310
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7740
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6944
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4408
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3956
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3072
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.