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

[aaa/sudoer] Modify sudo lecture message to be more informational #1800

Merged
merged 1 commit into from
Jun 21, 2018

Conversation

taoyl-ms
Copy link
Contributor

- What I did
Currently, when a user with RO permission tries to sudo, the Linux default sudo lecture message will be prompted as following:

user_ro@sonic-9:/home/admin$ sudo ls

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

[sudo] password for user_ro:
Sorry, try again.

This PR changes it into a more sonic-specific one:

user_ro@sonic-9:/home/admin$ sudo ls

Make sure your account has RW permission to current device.
Otherwise sudo requests will be rejected.

[sudo] password for user_ro:
Sorry, try again.

@taoyl-ms taoyl-ms changed the title Modify sudo lecture message to be more informational [aaa/sudoer] Modify sudo lecture message to be more informational Jun 19, 2018
@qiluo-msft
Copy link
Collaborator

Is it possible to show the groups which allowing sudo, instead of 'RW permission to current device'?

@taoyl-ms
Copy link
Contributor Author

It's controlled by AAA server. We don't have that information locally on the device.

@@ -0,0 +1,4 @@

Make sure your account has RW permission to current device.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest reword: Make sure your account has RW permissions for the current device.

@lguohan lguohan merged commit b745c0b into sonic-net:master Jun 21, 2018
theasianpianist pushed a commit to theasianpianist/sonic-buildimage that referenced this pull request Feb 5, 2022
…less of session status at session CONFIG DB removal (sonic-net#1800)

* Detach dst ip from routeorch lpm calculation regardless of mirror session status
Signed-off-by: Wenda Ni <wonda.ni@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants