vim .profile
replace
mesg n
to:
if `tty -s`; then
mesg n
fi
No Dogmats, No Rules, only Knowledge
1) First of all login your account
2)Open terminal (Alt +Ctrl +T)
3)Set Root user Password
technhit@technhit-virtual-machine:~$sudo passwd root [sudo]password for technhit: Enter UNIX password: Retype UNIX password: passwd:password updated successfully technhit@technhit-virtual-machine:~$
4) Now open file 50-ubuntu.conf with nano command.
technhit@technhit-virtual-machine:~$sudo nano /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
5)Now Add the following line to the end of file:
greeter-show-manual-login=true
6) Press Ctrl +X then press Y to exit
7)Now restart your system and login as root.