Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JEA for non IT technician ? #9752

Closed
tlsalex opened this issue May 29, 2019 · 5 comments
Closed

JEA for non IT technician ? #9752

tlsalex opened this issue May 29, 2019 · 5 comments
Labels
Issue-Question ideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a Resolution-Duplicate The issue is a duplicate.

Comments

@tlsalex
Copy link

tlsalex commented May 29, 2019

OK ,this is my second time to ask the same question which is about how to let a normal user to run an app or cmdlet that require elevated rights.

Now I know how to define an JEA in a system. I will use bellow steps run a desired app(external command)

Enter-PSSession -ComputerName WS-FN -ConfigurationName finance_admins.
money.exe
invoice.exe

But if the user is not an IT technician , she is just a normal user from finance dept.
Should I just tell her type the first command , then type the app name to run it ?

It is not convenient at all.

However, in linux , we can use chmod to make an app always run as the owner of that file , let's say the owner is root .
chmod u+s /path/to/file/or/executable

Then other normal users just run it without any steps. this way is very convenient and handy.

Any good ideas ?

@tlsalex tlsalex added the Issue-Question ideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a label May 29, 2019
@bpayette
Copy link
Contributor

@tlsalex Hmmm - wouldn't wrapping the commands in a small script suffice? The user would run money.ps1 which would take care of all the JEA magic resulting in a very simple straightforward experience.

@tlsalex
Copy link
Author

tlsalex commented May 31, 2019

@bpayette , thank you. But in other case, for some security reason ,PowerShell is disabled via policy by security team , and a non IT technician user sometimes need to run some apps that required elevated rights, I look for a way to solve this situation for a long time , RUNAS is my current solution , but it not the best solution when we compare it with chmod u+s in linux

@MovGP0
Copy link

MovGP0 commented Jun 9, 2019

You can digitally sign the script to make it work.

However, if you don't have access to the private certificate of your company, or PowerShell is disabled, then you need to talk with the Administrators.

@bpayette
Copy link
Contributor

@tlsalex To be clear, setuid is an operating system feature not a shell feature. You could try opening a bug on Windows itself to get the kernel team to add setuid support but that seems unlikely given that setuid is broadly considered a security risk. As @MovGP0 suggests, a better option would be to talk to the Admin team and see why they are blocking PowerShell.

@iSazonov
Copy link
Collaborator

Dup #11343

@iSazonov iSazonov added the Resolution-Duplicate The issue is a duplicate. label Jan 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Question ideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a Resolution-Duplicate The issue is a duplicate.
Projects
None yet
Development

No branches or pull requests

4 participants