Runas

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mr. Novice

    Runas

    Hello,

    I work for a company where the server administrators have two login ID's.
    One without admin right that we use to log into our workstations and one with
    admin rights that we use to for server administration. A co-worker and I put
    together an app in VB.Net that lets us click a button to do things that
    require admin rights like opening certain applications. We use runas to open
    the app with our admin id's and then any option we select opens using the
    admin credentials. Everything works fine with the exception of opening a UNC
    path.

    process.start(e xplorer, "\\server\share ") 'does nothing

    process.start(" \\server\share" ) 'will open the UNC path, but not with
    the administrative credentials that the app runs under. We are prompted for
    credentials and when we enter the id and password that the app runs under the
    path is opened no problem.

    Has anyone seen this problem before, or have any suggestions?

    Thanks!!

    Chad


  • OHM \( One Handed Man \)

    #2
    Re: Runas

    Im taking a guess here; but it is possible that when you spawn another
    process this way, that the spawned process picks up the current windows
    principal not the Runas account used. You would be advised to attempt to
    also spawn a Runas for the internet explorer being started.

    process.start( "Runas explorer . . . . .

    --
    ( OHM ) - One Handed Man
    AKA Terry Burns - http://TrainingOn.net


    "Mr. Novice" <MrNovice@discu ssions.microsof t.com> wrote in message
    news:0875DDB1-8AB8-4A3D-9367-CCA8630DD14B@mi crosoft.com...[color=blue]
    > Hello,
    >
    > I work for a company where the server administrators have two login ID's.
    > One without admin right that we use to log into our workstations and one
    > with
    > admin rights that we use to for server administration. A co-worker and I
    > put
    > together an app in VB.Net that lets us click a button to do things that
    > require admin rights like opening certain applications. We use runas to
    > open
    > the app with our admin id's and then any option we select opens using the
    > admin credentials. Everything works fine with the exception of opening a
    > UNC
    > path.
    >
    > process.start(e xplorer, "\\server\share ") 'does nothing
    >
    > process.start(" \\server\share" ) 'will open the UNC path, but not with
    > the administrative credentials that the app runs under. We are prompted
    > for
    > credentials and when we enter the id and password that the app runs under
    > the
    > path is opened no problem.
    >
    > Has anyone seen this problem before, or have any suggestions?
    >
    > Thanks!!
    >
    > Chad
    >
    >[/color]


    Comment

    • Mr. Novice

      #3
      Re: Runas

      Great idea. We tried it and no luck. Any other suggestions?

      Chad

      "OHM ( One Handed Man )" wrote:
      [color=blue]
      > Im taking a guess here; but it is possible that when you spawn another
      > process this way, that the spawned process picks up the current windows
      > principal not the Runas account used. You would be advised to attempt to
      > also spawn a Runas for the internet explorer being started.
      >
      > process.start( "Runas explorer . . . . .
      >
      > --
      > ( OHM ) - One Handed Man
      > AKA Terry Burns - http://TrainingOn.net
      >
      >
      > "Mr. Novice" <MrNovice@discu ssions.microsof t.com> wrote in message
      > news:0875DDB1-8AB8-4A3D-9367-CCA8630DD14B@mi crosoft.com...[color=green]
      > > Hello,
      > >
      > > I work for a company where the server administrators have two login ID's.
      > > One without admin right that we use to log into our workstations and one
      > > with
      > > admin rights that we use to for server administration. A co-worker and I
      > > put
      > > together an app in VB.Net that lets us click a button to do things that
      > > require admin rights like opening certain applications. We use runas to
      > > open
      > > the app with our admin id's and then any option we select opens using the
      > > admin credentials. Everything works fine with the exception of opening a
      > > UNC
      > > path.
      > >
      > > process.start(e xplorer, "\\server\share ") 'does nothing
      > >
      > > process.start(" \\server\share" ) 'will open the UNC path, but not with
      > > the administrative credentials that the app runs under. We are prompted
      > > for
      > > credentials and when we enter the id and password that the app runs under
      > > the
      > > path is opened no problem.
      > >
      > > Has anyone seen this problem before, or have any suggestions?
      > >
      > > Thanks!!
      > >
      > > Chad
      > >
      > >[/color]
      >
      >
      >[/color]

      Comment

      • OHM \( One Handed Man \)

        #4
        Re: Runas

        OK, your Security setting in internet explorer will need to be set to
        Automatically log you on with the current username and password. Now if this
        doesent work, then it means that explorer is looking at the currently logged
        on ID when connecting to remote sites rather than using Runas.

        Try and take a look TOOLS | INTERNET OPTIONS | SECURITY | CHOOSE YOUR ZONE |
        SCROLL DOWN TO USER LOGON SETTINGS

        HTH

        --
        ( OHM ) - One Handed Man
        AKA Terry Burns - http://TrainingOn.net



        "Mr. Novice" <MrNovice@discu ssions.microsof t.com> wrote in message
        news:E9BC5DFD-3532-43F6-9B19-4B7A2ED652C8@mi crosoft.com...[color=blue]
        > Great idea. We tried it and no luck. Any other suggestions?
        >
        > Chad
        >
        > "OHM ( One Handed Man )" wrote:
        >[color=green]
        >> Im taking a guess here; but it is possible that when you spawn another
        >> process this way, that the spawned process picks up the current windows
        >> principal not the Runas account used. You would be advised to attempt to
        >> also spawn a Runas for the internet explorer being started.
        >>
        >> process.start( "Runas explorer . . . . .
        >>
        >> --
        >> ( OHM ) - One Handed Man
        >> AKA Terry Burns - http://TrainingOn.net
        >>
        >>
        >> "Mr. Novice" <MrNovice@discu ssions.microsof t.com> wrote in message
        >> news:0875DDB1-8AB8-4A3D-9367-CCA8630DD14B@mi crosoft.com...[color=darkred]
        >> > Hello,
        >> >
        >> > I work for a company where the server administrators have two login
        >> > ID's.
        >> > One without admin right that we use to log into our workstations and
        >> > one
        >> > with
        >> > admin rights that we use to for server administration. A co-worker and
        >> > I
        >> > put
        >> > together an app in VB.Net that lets us click a button to do things that
        >> > require admin rights like opening certain applications. We use runas to
        >> > open
        >> > the app with our admin id's and then any option we select opens using
        >> > the
        >> > admin credentials. Everything works fine with the exception of opening
        >> > a
        >> > UNC
        >> > path.
        >> >
        >> > process.start(e xplorer, "\\server\share ") 'does nothing
        >> >
        >> > process.start(" \\server\share" ) 'will open the UNC path, but not
        >> > with
        >> > the administrative credentials that the app runs under. We are prompted
        >> > for
        >> > credentials and when we enter the id and password that the app runs
        >> > under
        >> > the
        >> > path is opened no problem.
        >> >
        >> > Has anyone seen this problem before, or have any suggestions?
        >> >
        >> > Thanks!!
        >> >
        >> > Chad
        >> >
        >> >[/color]
        >>
        >>
        >>[/color][/color]


        Comment

        Working...