8
1
I have a need to launch Xubuntu as a root user for a stand-alone demo system.
Whether I use the auto-login feature from lightdm
, or when logging in via "Other" > "root" when prompted, I always get the following response:
Error found when loading /root/.profile
mesg: ttyname failed: Inappropriate ioctl for device
As result the session will not be configured correctly.
You should fix the problem as soon as feasible.
After clearing the popup box above, the system performs as expected with the ROOT user.
Here are the contents of /etc/lightdm/lightdm.conf
:
[Seat:*]
autologin-guest=false
autologin-user=root
autologin-user-timeout=0
I have seen other similar issues online relating to Vagrind, and that the issues was solved with some of the latest updates, but this still seems to be happening on Xubuntu 16.04
https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1584488
How to solve `ttyname failed: Inappropriate ioctl for device` in Vagrant?
Most forums state that this message is erroneous and should not be displayed. Is there anyway to launch Xubuntu automatically as root while avoiding this erroneous popup?
(1) Did you try the answers from the [SU] question that you linked to? (2) The error message *says* that an error was found when loading
– Scott – 2017-08-16T19:43:47.667/root/.profile
. Have you looked at that file? We might have a better chance of answering your question if you post the contents of that file. (If it’s too long to post, look for the words “mesg
” and “tty
” and post relevant excerpts.) Please do not respond in comments; [edit] your question to make it clearer and more complete.