Click here to get back home

Setting Audit Permissions Differently for Each User

 HomeNewsGroups | Search | About
 microsoft.public.windows.server.security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Setting Audit Permissions Differently for Each User Will 12-26-2006
Get Chitika Premium
Posted by Roger Abell [MVP] on December 30, 2006, 11:02 pm
Please log in for more thread options
>> Hi Will,
>>
>> Jesper is quite correct in his response.
>>
>> You may be able to accomplish this objective more simply than
>> defining a group with all accounts except System however, if
>> your users are members of Users (or Domain Users and hence
>> of Users).
>>
>> I notice that System does not have Users in its token but does
>> have Authenticated Users, Administrators, and Everyone.
>
> How do you enumerate the user groups that SYSTEM belongs to?
>

Same as with any other account, via one of a few ways; ex.
once logged in as the account, use whoami /all is most simple.

>
>> Now, for this to work, you would need to have Interactive and
>> Authenticated Users removed from Users (I routinely remove
>> Interactive and Authenticated Users from Users anyway).
>>
>> So, if you just either made sure that each individual admin account
>> was member of Users (or Domain Users), or if you defined a group
>> that mirrored Administrators, and used these in place of Everyone
>> then you would not be auditing for System via those and could
>> avoid the duplications Jesper indicated.
> I've never been crazy about Authenticated Users as a concept as it
> embraces
> too many totally different things and just makes it harder to figure out
> what is or is not controlled in an ACL.

Authenticated Users was one of the worse inventions ever
to come along and change the NT permission landscape.

Actually it (to me) makes it easier to figure what is or is not
controlled by an ACL, since its use basically is saying (I do
not know specifics so I give and say any can). Its use as a
member in Users everywhere is a cop-out, pure and simple,
from the days with MS believed it sufficient and appropriate
to set things based solely upon requirement that they would
work, like the old Everyone Full Control default on drive
partitions. In order to effect control over what is allowed
to whom one must go about erasing this (ex. client systems
in deployment allow only the set of users tasked to use that
group of machines).
(OK - I will moderate that critique slightly. The addition of
Authenticated Users was itself not bad, as it originated to allow
making grants that did not include anonymous accesses. It is
the only slightly later abuse of it by adding it to Users and by
making use of it directly in ACLs all over the place that is
what deserves prior comment.)

> The only problem in your approach is you would need to think through what
> other kinds of access were previously covered by Authenticated Users and
> provide for those another way. For example, Domain Computers, Domain
> Controllers, Computers from Trusted domains, etc.

That is so for DCs.
For service point member servers or client systems I have
to remove those two in order to exert control over what
account can access the machine. If I break an access that
is fine, as that is the intent.

>
> It would sure be nice if Microsoft would publish a way to build a
> comprehensive list of all entities that might interact with a computer so
> we
> could control at that level when we want to.
>

The entity list is pretty simple.
If it is a DC every machine and user access it.
If it is not a DC, and there are none of the layered products on
it (i.e. Exchange, IIS, SMS, etc.), then no machine or domain user
must access it (none is required to in order to remain happy) so
back things down to no accesses and add the needed from there.




Posted by Will on December 31, 2006, 3:02 am
Please log in for more thread options
> > How do you enumerate the user groups that SYSTEM belongs to?
>
> Same as with any other account, via one of a few ways; ex.
> once logged in as the account, use whoami /all is most simple.

How am I supposed to login interactively as SYSTEM? There is probably
some hacker trick to do that, but I don't know it.

--
Will



Posted by Roger Abell [MVP] on December 31, 2006, 8:51 am
Please log in for more thread options
>> > How do you enumerate the user groups that SYSTEM belongs to?
>>
>> Same as with any other account, via one of a few ways; ex.
>> once logged in as the account, use whoami /all is most simple.
>
> How am I supposed to login interactively as SYSTEM? There is probably
> some hacker trick to do that, but I don't know it.
>

Probably the most commonly used way is to schedule cmd.exe to
run interactively a couple minutes into the future via the at command.
Of course, one may then start what is wanted from the cmd prompt.



Posted by Will on December 31, 2006, 9:33 pm
Please log in for more thread options
> >> > How do you enumerate the user groups that SYSTEM belongs to?
> >>
> >> Same as with any other account, via one of a few ways; ex.
> >> once logged in as the account, use whoami /all is most simple.
> >
> > How am I supposed to login interactively as SYSTEM? There is probably
> > some hacker trick to do that, but I don't know it.
> >
>
> Probably the most commonly used way is to schedule cmd.exe to
> run interactively a couple minutes into the future via the at command.
> Of course, one may then start what is wanted from the cmd prompt.

I did try that trick with the command Net user %username% but apparently
that environment variable does not fill correctly. Which command works
while logged in as SYSTEM?

--
Will



Posted by Roger Abell [MVP] on January 1, 2007, 10:47 am
Please log in for more thread options
>> >> > How do you enumerate the user groups that SYSTEM belongs to?
>> >>
>> >> Same as with any other account, via one of a few ways; ex.
>> >> once logged in as the account, use whoami /all is most simple.
>> >
>> > How am I supposed to login interactively as SYSTEM? There is
>> > probably
>> > some hacker trick to do that, but I don't know it.
>> >
>>
>> Probably the most commonly used way is to schedule cmd.exe to
>> run interactively a couple minutes into the future via the at command.
>> Of course, one may then start what is wanted from the cmd prompt.
>
> I did try that trick with the command Net user %username% but apparently
> that environment variable does not fill correctly. Which command works
> while logged in as SYSTEM?
>
Well, that is an interesting question.
As far as I know any command except explorer.exe or one with an
explict deny in the permissions on needed files would work.
When I try "net user system" in a cmd prompt as system I am told
that the name could not be found (but of course I am told the same
thing from any other account). Are you sure you included /interactive?



Similar ThreadsPosted
Setting Audit from CLI March 6, 2007, 8:42 pm
How to Audit windows 2003 folder secrity setting change? January 5, 2006, 10:13 pm
Help setting Windows permissions (policy?) April 26, 2006, 1:06 pm
Setting Metabase File Permissions November 27, 2007, 6:29 pm
Setting Permission to user to start a service October 19, 2006, 4:11 am
Audit when a user copies a file September 16, 2008, 8:44 am
Looking for best practices for setting up secure user home directory file structure October 6, 2006, 8:47 pm
audit folder access, exclude user November 27, 2007, 5:14 pm
windows user permissions April 3, 2007, 10:30 pm
User folders permissions. June 7, 2007, 3:40 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap