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

Add the vtysh command with newly added "-n" option for multi asic to the read_only_cmds #5845

Merged
merged 2 commits into from
Nov 10, 2020

Conversation

arlakshm
Copy link
Contributor

@arlakshm arlakshm commented Nov 6, 2020

Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan [email protected]

- Why I did it
In multi asic platforms the "show ip bgp summary" commands is not available for user with read only privileges, so fix this the vtysh command with the new "-n" option, added for multi asic platforms, needs to be added to the READ_ONLY_COMMANDS list in the sudoers files

- How I did it
Add the command vtysh -n [0-9] -c show * to list of READ_ONLY_COMMANDS in the sudoers files

- How to verify it
Verify show ip bgp summary is working for user accounts with read-only privilages

- Which release branch to backport (provide reason below if selected)

  • 201811
  • [X ] 201911
  • 202006

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

…the read_only_cmds

Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <[email protected]>
@arlakshm arlakshm requested a review from jleveque November 6, 2020 20:33
files/image_config/sudoers/sudoers Outdated Show resolved Hide resolved
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <[email protected]>
@arlakshm arlakshm merged commit 2b41f6b into sonic-net:master Nov 10, 2020
abdosi pushed a commit that referenced this pull request Nov 10, 2020
…the read_only_cmds (#5845)

In multi asic platforms the "show ip bgp summary" commands is not available for user with read only privileges, so to fix this the vtysh command with the new "-n" option, added for multi asic platforms, needs to be added to the READ_ONLY_COMMANDS list in the sudoers files. Added the command vtysh -n [0-9] -c show * to list of READ_ONLY_COMMANDS in the sudoers files in this commit.

Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <[email protected]>
@arlakshm arlakshm deleted the sudoer_change branch January 28, 2021 01:27
santhosh-kt pushed a commit to santhosh-kt/sonic-buildimage that referenced this pull request Feb 25, 2021
…the read_only_cmds (sonic-net#5845)

In multi asic platforms the "show ip bgp summary" commands is not available for user with read only privileges, so to fix this the vtysh command with the new "-n" option, added for multi asic platforms, needs to be added to the READ_ONLY_COMMANDS list in the sudoers files. Added the command vtysh -n [0-9] -c show * to list of READ_ONLY_COMMANDS in the sudoers files in this commit.

Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants