Skip to content

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

Merged
lguohan merged 1 commit intosonic-net:masterfrom
taoyl-ms:taoyl/sudo_lecture
Jun 21, 2018
Merged

[aaa/sudoer] Modify sudo lecture message to be more informational#1800
lguohan merged 1 commit intosonic-net:masterfrom
taoyl-ms:taoyl/sudo_lecture

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 requested review from jleveque and lguohan June 19, 2018 21:26
@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 <[email protected]>
noaOrMlnx pushed a commit to noaOrMlnx/sonic-buildimage that referenced this pull request Nov 24, 2025
…-net#1800)

Code sync sonic-net/sonic-buildimage:202411 => 202412

```
*   814e269 (HEAD -> code-sync-202412) r12f 251112:2050 - Merge remote-tracking branch 'base/202411' into code-sync-202412
|\
| * 7c2e2f8 (base/202411) Liu Shilong 251112:1704 - [ci] Migrate agent pool from sonicbld-1es to sonicso1ES-amd64 (sonic-net#24502)
| * bb2625e mssonicbld 251106:1712 - [submodule] Update submodule sonic-gnmi to the latest HEAD automatically (sonic-net#24418)
| * b6a493b Liu Shilong 251101:0243 - [build] Update debian snapshot mirror to upgrade redis-server version (sonic-net#24320)
```
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