I had a problem with my root account on Ubuntu 14.04. when I login by using root account, I received this error:

Error found when loading /root/.profile: stdin: is not a tty
As a result the session will not be configured correctly. You should fix the problem as soon as feasible
  • Why login with the root account? sudo or gksudo etc can do all you need from a regular account
    – Xen2050
    Dec 15 '14 at 8:31
  • have you edited any bash file in root folder? Dec 15 '14 at 16:06
  • please refer to here http://docs.fabfile.org/en/1.4.3/faq.html and try all three approches to solve the same proglem Dec 15 '14 at 16:08


stdin: is not a tty due to mesg n instead of tty -s && mesg n in .profile

Try the said method to add tty -s && in front of the line mesg n and see if it helps. The difference is, in case your problem is also caused by the mesg n in yout profile.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.