0

The situation I'm thinking of is that something in /etc/profile or ~/.profile or ~/.login or similar is causing you to be logged out immediately or some other problem/mischief, and you're at a text-mode login: prompt and want to bypass any or all of those login scripts.

I've seen questions answering for remote logins, but I'd like to know if any methods exist for bypassing profile and/or login scripts when you log into a local console. For the sake of this discussion, let's assume that the machine doesn't have any form of remote access set up so you can't simply bash --noprofile over SSH and edit the files, and let's also assume you can't pull an init=/bin/sh sort of trick with the bootloader to edit the files.

Your Answer

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

Browse other questions tagged or ask your own question.