Re: temporary permission
From: Roger Abell (mvpNOSpam_at_asu.edu)
Date: 07/13/05
- Next message: Roger Abell: "Re: How can I get access to files and folders on my portable drive on other computers?"
- Previous message: Wong Tuck Wah: "RE: temporary permission"
- In reply to: Wong Tuck Wah: "RE: temporary permission"
- Next in thread: Wong Tuck Wah: "Re: temporary permission"
- Reply: Wong Tuck Wah: "Re: temporary permission"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 12 Jul 2005 23:22:33 -0700
I would suggest always using the /e switch in most normal uses of
cacls so that one edits and modifies the existing permissions instead
of replacing them.
The solution you propose will not work in login script, as the script
runs as the user (who would not have the permissions to grant themselves
permissions). The logoff script might work depending on just what
permissions the user had on the target NTFS area.
A startup script would have the permissions to grant the account
access, but it would not necessarily know which account - and
anyway, why not just manually do the one-time grant.
One could manually add the permissions for the user and also
program up a small task to run at a set time later to remove them.
-- Roger Abell Microsoft MVP (Windows Security) "Wong Tuck Wah" <WongTuckWah@discussions.microsoft.com> wrote in message news:84186C94-25C7-4772-9910-8474DE9A3C43@microsoft.com... > To have the permission remove after a certain time interval is not available > in native Windows OS, but if you only want them to remove when user logoff is > possible. How? > > To make this works, you need to be in AD environment so that GPO can be > applied. > > 1. Create a script which looks like the following and make it as the logon > script > echo y| cacls d:\<foldername> /t /g u1:c > (assume user is u1, permission can be r, w, c or f) > > 2. Create a script which looks like the following and make it as the logoff > script > cacls d:\<foldername> /e /r u1 > > This 2 scripts will grant the user, u1, change permission to the folder when > he logon the system. Once he logoff, the other script will remove the > permission set to him. > > HTH. > > > "Kish Jogia" wrote: > > > Hi > > > > Is it possible to give someone temporary permission to a folder, which will > > expire after a set time period or when they log off. > > > > Many thanks for the help. > > -- > > > > Kish > > > > E-Mail: kishjogia@yahoo.co.uk > > > > > >
- Next message: Roger Abell: "Re: How can I get access to files and folders on my portable drive on other computers?"
- Previous message: Wong Tuck Wah: "RE: temporary permission"
- In reply to: Wong Tuck Wah: "RE: temporary permission"
- Next in thread: Wong Tuck Wah: "Re: temporary permission"
- Reply: Wong Tuck Wah: "Re: temporary permission"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|