application settings and least privilege users

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Justin Creasy

    #1

    application settings and least privilege users

    Hello, I am trying to add the ability to save my applications settings
    for each user. I was just wondering what the best method is to do this.
    The only requirement is that any user account (user, power user, admin)
    will have this capability. I would also prefer to have some measure of
    security, but if need be I can use my own methods to handle this.

    I am currently writting the setting information to the "applicatio n
    data/all users" folder and I'm getting complaints from beta testers
    that this is not working for user and power user accounts. Should I
    continue to use application data and maybe do something different, or
    should I use the registry or maybe Isolated Storage?

  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: application settings and least privilege users

    Justin,

    Isolated storage is a good idea, because you can scope it on the user
    level, so you should have no problems there.

    I also believe in .NET 2.0 there is a way that you can create user
    settings in your config file. Check the System.Configur ation namespace for
    the classes/attributes that are prefixed with "user". There are a few code
    samples that should help you pull it all together.

    The advantage of isolated storage over the config settings is that the
    files with the users preferences (or whatever you store) will all be in
    separate files which should only be accessible to the users that they were
    meant for (or an administrator who has rights), whereas with the config
    file, I believe all the settings are in one file (I could be wrong here).

    Hope this helps.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "Justin Creasy" <justin.creasy@ gmail.com> wrote in message
    news:1138137441 .622723.87100@g 44g2000cwa.goog legroups.com...[color=blue]
    > Hello, I am trying to add the ability to save my applications settings
    > for each user. I was just wondering what the best method is to do this.
    > The only requirement is that any user account (user, power user, admin)
    > will have this capability. I would also prefer to have some measure of
    > security, but if need be I can use my own methods to handle this.
    >
    > I am currently writting the setting information to the "applicatio n
    > data/all users" folder and I'm getting complaints from beta testers
    > that this is not working for user and power user accounts. Should I
    > continue to use application data and maybe do something different, or
    > should I use the registry or maybe Isolated Storage?
    >[/color]


    Comment

    Working...