Page 1 of 1 1
Topic Options
#109841 - 2003-12-08 06:30 PM File permissions
dwysocki Offline
Fresh Scripter

Registered: 2001-06-15
Posts: 11
Loc: elgin,tx,us
If someone could help me with this one.

I am trying to set file permission on a directory and would like it to keep inheritable permissions from parrent.

Is there a way to check to see if the directory has it check and/or to check the box using a script.

shell "%comspec% /C cacls d:\users\$Filename /T /C /E /G students\$Filename:C < d:\scripts\yes.txt"
shell "%comspec% /C cacls d:\users_profiles\$Filename /T /C /E /G students\$Filename:C < d:\scripts\yes.txt"

Thanks
david@elginisd.net

Top
#109842 - 2003-12-08 06:45 PM Re: File permissions
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Don't have an answer for you, but a word of caution...
CACLS has a bug that can cause incorrectly ordered ACEs so you may want to look into using SubInAcl instead. There are a few threads on this board on this.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#109843 - 2003-12-08 08:21 PM Re: File permissions
dwysocki Offline
Fresh Scripter

Registered: 2001-06-15
Posts: 11
Loc: elgin,tx,us
I could only find one other instance. It was not very helpfull.

Could you send me some links.

Top
#109844 - 2003-12-08 08:32 PM Re: File permissions
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Not sure how you can only find one instance when searching the BBS for CACLS as there are a lot of hit if I try it. Anyway, see for example Tools for setting ACLs
_________________________
There are two types of vessels, submarines and targets.

Top
#109845 - 2003-12-08 11:16 PM Re: File permissions
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
If I search on subinacl, I get 31 hits in the last year alone!
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#109846 - 2003-12-09 03:24 AM Re: File permissions
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4572
Loc: USA
Thanks for the link back to FileACL. Very nice utility.
_________________________
(... better days ahead)

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.065 seconds in which 0.036 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org