erol.name
  • Linux
  • Windows
  • Retro gaming
  • C64
  • Mobile
  • Raspberry Pi

erol.name

Tag: login

Posted on 17. 09. 201418. 04. 2017

Log each command in bash history after execution

Put this into ~/.bashrc file of your account (if the file does not exist, you create it):

shopt -s histappend
PROMPT_COMMAND="history -a;$PROMPT_COMMAND"

In order for this to start working you need to log out and in again.

Posted on 16. 10. 200718. 04. 2017

Linux root login hack

After you tried to log in with root user three times and got the message “maximum number of log ins exceeded” you have to restart the computer.

On the GRUB menu, press “E” once to enable edit, and press “E” again on the kernel line to edit it. Near the end of this line change value “ro” to “rw” and add “init=/bin/bash” at the end of this line.

Now boot into Linux and you will have root shell access where you can change the password or do whatever you please.

Recent Posts

  • Sort du output by folder size
  • Mount Nextcloud as drive in Windows WebDAV
  • Check MD5 hash of file in Windows 10 from command line
  • MusicBrainz Picard Plex naming script
  • Change DPI to 125% in Gnome

Recent Comments

  • simone on Manually add files and folders to ownCloud
  • erol on How to additionally clean-up Kodi MySQL database from unwanted entries
  • John on How to additionally clean-up Kodi MySQL database from unwanted entries
  • jackd on Switch axis in pifba retropie emulator configuration
  • polv on Select and hide unmounted drive icons from Xfce desktop

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
© 2007-2024 by Erol Tahirović