Ubuntu: How to skip StartUp and/or .profile on log-in?



Question:

Is there a login option to skip processing the .profile and Startup Applications? I basically have a script in there that's hanging the system upon log-in. The filesystem is encrypted and I don't have the passphrase and there are no other root users. So I'd like to login in as the user but without processing the script in .profile or Startup Applications.


Solution:1

You were asking for direct and quick access to root user. Try recovery mode option in grub. It perfectly fine for you.

In recovery mode open, prompt-shell

It will looks like text-user-interface like terminal


Solution:2

Just stumbled onto a great solution for me, as described in ".profile ran into an infinite loop."
Log in from a console (Control-Alt-F1) and ^C the script.
Evidently the script was only hanging the GUI, not the system. So technically this didn't avoid running the script, but it let me stop it and remove it from the .profile to restore the GUI login functionality.
Thanks AskUbuntu!


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »