Re: Access to a user's Special Folders
- From: "Willy Denoyette [MVP]" <willy.denoyette@xxxxxxxxxx>
- Date: Tue, 22 Aug 2006 18:28:14 +0200
<wheels619@xxxxxxxxx> wrote in message
news:1156201660.917077.95490@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
| Sorry I wasn't more clear; trying to make the example generic; I meant
| AAA was the LocalSystem user. Is this user folder fixed? I would think
| you can change it per system(ie, user has an e:\ rather than a c:\).
|
Not sure what exactly is meant here by a "user folder".
Just let me explain my point...
Service accounts aren't interactive accounts, they don't have an
'interactive' profile (created by the system at first interactive logon), so
they don't have "My documents" and other related stuff on the File system.
What they have is an environment block and a minimal profile loaded, this
profile has a an Application Data entry which refers to the FIXED FS path
(except the drive letter) like: C:\Documents and
Settings\LocalService\Application Data or C:\Documents and
Settings\NetworkService\Application Data.
This path is returned by Environment.SpecialFolder.ApplicationData when
running as LocalService or NetworkService resp.
Creating a file under this path say:
C:\Documents and Settings\LocalService\Application Data\config.xml
will effectively create the file on the FS.
Note that the command shell will not show you the directories of these
pseudo accounts, they are only visible through the explorer shell.
An admin has access to the folder, so IMO it should be a problem to edit
config info in that folder.
Willy.
.
- References:
- Access to a user's Special Folders
- From: wheels619
- Re: Access to a user's Special Folders
- From: liko81
- Re: Access to a user's Special Folders
- From: wheels619
- Re: Access to a user's Special Folders
- From: Willy Denoyette [MVP]
- Re: Access to a user's Special Folders
- From: wheels619
- Access to a user's Special Folders
- Prev by Date: TabControl and ToolTips
- Next by Date: problem implementing IList and ICollection
- Previous by thread: Re: Access to a user's Special Folders
- Next by thread: Re: Temporarily saving data from several pages.
- Index(es):
Relevant Pages
|