ubuntu error found when loading /root/.profile

Upstreaming from https://bugzilla.wikimedia.org/show_bug.cgi?id=46913 :

This used to happen at the start of every Puppet run, because of the line "mesg n" in /root/.profile. The shell provisioner is actually invoked to fix the problem by changing it to "tty -s && mesg n". This fixes the problem for every subsequent run. Still, I'd like to prevent it from appearing even once.

Ubuntu could fix this by adding a check to .profile.

Also see https://bugs.launchpad.net/ubuntu/+source/xen-3.1/+bug/201884


msg n

With:

tty -s && mesg n

In file /root/.profile.


你可能感兴趣的:(ubuntu error found when loading /root/.profile)