MOTD suggests to run an unrunnable command

Bug #1577528 reported by Alan Pope 🍺🐧🐱 🦄
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical System Image
Incomplete
Undecided
Unassigned

Bug Description

On a clean install of Ubuntu on a device, install the terminal app from the store and open it.
In the terminal we present the "motd" (message of the day) which says:-

"To run a command as administrator (user "root), use "sudo <command>".
See "man sudo_root" for details."

We ship neither the man page in question, nor the man program itself.

The MOTD for Ubuntu devices should be adjusted accordingly, preferably removing that message text.

Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

Which package is this coming from? is it terminal app specific?

Changed in canonical-devices-system-image:
status: New → Incomplete
Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :

It's part of bash.

debian/etc.bash.bashrc contains this section.

# sudo hint
if [ ! -e "$HOME/.sudo_as_admin_successful" ] && [ ! -e "$HOME/.hushlogin" ] ; then
    case " $(groups) " in *\ admin\ *|*\ sudo\ *)
    if [ -x /usr/bin/sudo ]; then
 cat <<-EOF
 To run a command as administrator (user "root"), use "sudo <command>".
 See "man sudo_root" for details.

 EOF
    fi
    esac
fi

Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

When do you see this, is it only the very first run of a shell? i.e. I am not seeing it
I think there are easy ways to suppress it entirely.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.