acl.GetOwner(typeof(NTAccount))
- From: sirpooky@xxxxxxxxx
- Date: Wed, 26 Jul 2006 03:00:38 -0700
Hi All,
I have a file system watcher on a remote machine. When people create files/folders on the remote machine I need to see which user was responsible. As there are a number of users who are admins often when a file is created the following code shows BUILTIN\Administrators
FileSecurity acl = File.GetAccessControl(e.FullPath);
NTAccount user = (NTAccount)acl.GetOwner(typeof(NTAccount));
string UserName = user.Value;
I know there is a way to get the Domain\USerName of the user but I cant for the life of me remember. Anyone?
- Paul C
.
- Follow-Ups:
- Re: acl.GetOwner(typeof(NTAccount))
- From: Dominick Baier
- Re: acl.GetOwner(typeof(NTAccount))
- Prev by Date: Re: Forms Authentication - Sudden Redirect Failure on Login
- Next by Date: Re: acl.GetOwner(typeof(NTAccount))
- Previous by thread: Re: Using a mix of HTTP and HTTPS in ASP web applicati ...
- Next by thread: Re: acl.GetOwner(typeof(NTAccount))
- Index(es):