Results 1 to 7 of 7
  1. #1
    4 Star Lounger
    Join Date
    Jan 2002
    Location
    Brookings, South Dakota, USA
    Posts
    449
    Thanks
    0
    Thanked 0 Times in 0 Posts

    save form as an admin (VB/VB.NET)

    Hi All,
    I've searched, but obviously (to me at least) I don't know what to ask.
    I need to be able to allow a networked user, who would have Read Only rights, to be able to save a file to a folder on a network file and print server. In other words, when they click on a <SAVE> button, their rights would be elevated to Write until the file has been saved and then have their rights be "devalued", as it were, to be Read Only again. Never would they be allowed Delete permissions.
    Thank you.
    <IMG SRC=http://www.wopr.com/w3tuserpics/gdrezek_sig.jpg>
    "Those who dance are considered insane by those who can't hear the music" - George Carlin

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: save form as an admin (VB/VB.NET)

    This is a subject I'm not an expert in, so I may be way off, but it seems a difficult requirement to me.
    1) The application would probably have to trigger an application running on the server with Admin permissions, for the app itself runs with the user's permissions, and the user obviously cannot assign Write permission to him/herself.
    2) When the network admin grants me access to a network folder, he always tells me that it takes a while for the permission to percolate through the system, and usually I have to reboot before I "see" the permission.

  3. #3
    4 Star Lounger
    Join Date
    Jan 2002
    Location
    Brookings, South Dakota, USA
    Posts
    449
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: save form as an admin (VB/VB.NET)

    Hi Hans,
    1) That is right, the Admin (or the one with Admin rights) does have the App running as such.
    2) Since this would be extremely time and resource prohibitive, is there a way that mayhaps the user could save this file as if (s)he was an admin and not fiddle with the users rights at all?

    Thanks.
    <IMG SRC=http://www.wopr.com/w3tuserpics/gdrezek_sig.jpg>
    "Those who dance are considered insane by those who can't hear the music" - George Carlin

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: save form as an admin (VB/VB.NET)

    > is there a way that mayhaps the user could save this file as if (s)he was an admin ... ?

    Huh? So any user can play Admin?

  5. #5
    4 Star Lounger
    Join Date
    Jan 2002
    Location
    Brookings, South Dakota, USA
    Posts
    449
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: save form as an admin (VB/VB.NET)

    Sorry, that was a bit vague......
    In code behind the button, do a Save As, kinda like using an ADO connection string....

    filename: mylab
    User ID: myadmin
    password: password

    ....by "imitating" a user with Admin rights?
    <IMG SRC=http://www.wopr.com/w3tuserpics/gdrezek_sig.jpg>
    "Those who dance are considered insane by those who can't hear the music" - George Carlin

  6. #6
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: save form as an admin (VB/VB.NET)

    I don't know how to do it, but the setup could perhaps be
    1) User app saves file in network folder where user has modify permissions.
    2) Network app (running with admin permissions) is somehow triggered to move file to folder where user doesn't have write permission.
    Hopefully someone else will have more specific suggestions.

  7. #7
    4 Star Lounger
    Join Date
    Jan 2002
    Location
    Brookings, South Dakota, USA
    Posts
    449
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: save form as an admin (VB/VB.NET)

    Thanks Hans,
    I'll use that as a starting point and see what I can do from there.
    <IMG SRC=http://www.wopr.com/w3tuserpics/gdrezek_sig.jpg>
    "Those who dance are considered insane by those who can't hear the music" - George Carlin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •