TLDR: We should remove the sudo hint from /etc/bash.bashrc What is it?:
If the user is in sudo or admin group and $HOME/.sudo_as_admin_successful does not exist, we show a message to read `man sudo_root` https://git.launchpad.net/ubuntu/+source/bash/tree/debian/etc.bash.bashrc#n84 Sudo program creates this file on first successful sudo run on Ubuntu. History: I was able to trace it back to 2006 https://git.launchpad.net/ubuntu/+source/bash/tree/debian/changelog#n2375 My guess is `sudo hint` change was introduced to help users get acquainted with sudo (after some confusion and complaints on ubuntuforums). The history of this page goes back to 2005: https://help.ubuntu.com/community/RootSudo I found a reference to sudo patch: https://git.launchpad.net/ubuntu/+source/sudo/tree/debian/changelog#n2309 ================== debian/patches/ubuntu-sudo-as-admin-successful.patch: adjust sudo.c so that if the user successfully authenticated and he is in the 'admin' group, then create a stamp ~/.sudo_as_admin_successful. Our default bash profile checks for this and displays a short intro about sudo if the flag is not present ================== At some point, this was merged upstream https://github.com/sudo-project/sudo/commit/6d0395ee687f64144983446d140a68b45d2c557d in 2021, it was made configurable upstream https://github.com/sudo-project/sudo/issues/56 Why are we discussing it now?: sudo-rs does not create this file. https://bugs.launchpad.net/ubuntu/+source/rust-sudo-rs/+bug/2120249 Proposal: I think this change has served us well and users are familiar with sudo now. A sudo user is created by default not just on Ubuntu but on a variety of distributions. 1. We should drop the sudo hint block in /etc/bash.bashrc. 2. Create a page (sudo) on Ubuntu Server docs https://documentation.ubuntu.com/server/ and move some content there. (I was going to create a page for sudo-rs as sudo providor anyways) The alternate is we introduce this feature to sudo-rs and carry the delta. Please let me know if you have any concerns. I am planning to raise an MP next week. Regards Ravi -- ubuntu-devel mailing list ubuntu-devel@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel