-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Computer cmdlets should fail with error when not run via sudo on Unix #19824
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
Merged
daxian-dbw
merged 23 commits into
PowerShell:master
from
SteveL-MSFT:unix-computer-cmdlet
Jul 17, 2023
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
3e3a51c
Computer cmdlets should fail with error when not run via sudo on Unix
SteveL-MSFT 59aa58b
add tracing for test failure
SteveL-MSFT 97210bc
fix test to skip if running as root
SteveL-MSFT c34bbe0
add test tracing to see if running as root
SteveL-MSFT 9a6c5a6
change to use group id and add more traces
SteveL-MSFT df0337f
add back tracing of error
SteveL-MSFT 488877e
clear the error var
SteveL-MSFT 2553820
explicitly use out-string for error
SteveL-MSFT f9b68e4
add additional path to search for shutdown command, move error messag…
SteveL-MSFT c4c8870
trace if shutdown is found
SteveL-MSFT f78c1ee
add path to output
SteveL-MSFT cd1937c
update RunCommand for shutdown, remove unneeded string
SteveL-MSFT 72e4b99
Update src/Microsoft.PowerShell.Commands.Management/commands/manageme…
SteveL-MSFT 2426a18
Update src/Microsoft.PowerShell.Commands.Management/commands/manageme…
SteveL-MSFT c8fe455
Update src/Microsoft.PowerShell.Commands.Management/resources/Compute…
SteveL-MSFT 63daba6
address Ilya's feedback
SteveL-MSFT f9a04ba
change to using command discovery
SteveL-MSFT f347ffb
skip test if shutdown command is not available
SteveL-MSFT 6fd2b60
fix test
SteveL-MSFT 69f4c07
Update src/Microsoft.PowerShell.Commands.Management/commands/manageme…
SteveL-MSFT 702093c
Update src/Microsoft.PowerShell.Commands.Management/resources/Compute…
SteveL-MSFT 95594d7
address Dongbo's feedback
SteveL-MSFT 57808f5
Update src/Microsoft.PowerShell.Commands.Management/commands/manageme…
daxian-dbw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.