Code Monkey home page Code Monkey logo

runas's Introduction

runAs

runas .NET Core Global Tool NuGet JetBrains incubator project

The runas .NET Core Global Tool allows to run a dotnet process under a specified user account. This tool is compatible with any dotnet CLI commands but the most obvious scenario is running dotnet tests:

  • to install the runas tool, run the command line dotnet tool install -g dotnet-runas

  • run tests under a specified user account like dotnet runas -u:username -p:password test

  • to uninstall the runas tool, run the command line dotnet tool uninstall -g dotnet-runas

For Windows operation system it is possible to specify elevated permissions and other parameters.

🚧 For Linux and OSX operation systems username and password paramers are available.

When building, testing, and deploying an application with TeamCity, you may need to run a build under a specific user account, different from the one used to run the build agent. The teamcity-runas plugin can be used to run TeamCity build steps under a specified user account on Windows, Mac or Linux.

runAs tool for windows NuGet JetBrains incubator project

The runAs tool provides the ability to run a Windows process under a specified Windows user account.

Downloads

runas's People

Contributors

burnasheva avatar julia-alexandrova avatar nikolaypianikov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

runas's Issues

It's not working with EXCEL.EXE under Windows 10 version 2004

I am trying to use runAs tool to run EXCEL.EXE as another user, and it fails while being under Windows 10 version 2004. ( works on 19xx versions )

This is the output I got:

C:\Program Files (x86)\Microsoft Office\root\Office16>JetBrains.runAs.exe -u:probanduela -p:chapuza -s:show  EXCEL.EXE
JetBrains RunAs x64 1.0.0.061
Copyright (C) 2017 JetBrains. All rights reserved.
Runs a process under the specified windows user account.

Argument(s): -u:probanduela -p:***** -s:show EXCEL.EXE

Settings:
        user_name:              probanduela
        domain:                 .
        working_directory:      C:\Program Files (x86)\Microsoft Office\root\Office16
        exit_code_base:         -100000
        integrity_level:        auto
        inheritance_mode:       auto
        show_mode:              show
        self_testing:           0
        executable:             EXCEL.EXE
        command_line_args:

Error: Una sesi¾n de inicio especificada no existe. Es posible que haya finalizado.

CreateProcessWithLogonW returns the Win32 error 0x00000520.

Also tried runing runAs with psexec to be on a LocalSytem account, and error is similar but with CreateProcessAsUser :

C:\Program Files (x86)\Microsoft Office\root\Office16>JetBrains.runAs.exe -u:probanduela -p:chapuza -s:show  EXCEL.EXE
JetBrains RunAs x64 1.0.0.061
Copyright (C) 2017 JetBrains. All rights reserved.
Runs a process under the specified windows user account.

Argument(s): -u:probanduela -p:***** -s:show EXCEL.EXE

Settings:
        user_name:              probanduela
        domain:                 .
        working_directory:      C:\Program Files (x86)\Microsoft Office\root\Office16
        exit_code_base:         -100000
        integrity_level:        auto
        inheritance_mode:       auto
        show_mode:              show
        self_testing:           0
        executable:             EXCEL.EXE
        command_line_args:

Error: Una sesi¾n de inicio especificada no existe. Es posible que haya finalizado.

CreateProcessAsUser returns the Win32 error 0x00000520.

What I am doing wrong? as I said, this have been working on previous Windows versions.

runAs tool using Psexec

hello, i tried to understand how to use runAs with psexec but i always get:
"Starting cmd on X ...n X...ing to Y...
cmd exited on Y with error code 0.

and i didnt get the shell.

i'm using command:

JetBrains.runAs.exe -p:[PASS] -u:[DOMAIN][USER] PsExec.exe [Destination IP] cmd

thanks.

runas /netonly

My Service Account doesn’t have an interactive logon type privilege. So when I run this tool I get “Logon failure: the user has not been granted the requested login type at this computer.” Is there a work around that issue?

When I run Windows runas /netonly everything works but it doesn’t wait for child process completion.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.