no d inrogers
open-menu closeme
nav_home Home
nav_tags Tags
nav_categories Categories
nav_archives Archives
nav_about About
English Português
  • Change visudo editor

    calendar January 30, 2022 nav_categories Tech nav_tags linux nav_tags sudo nav_tags vim nav_tags nano

    By default, Ubuntu uses nano for editing visudo.

    Nano is the linux editor for Windows administrator . . . don't use it!

    To change it to something else, such as vim:

    sudo update-alternatives --config editor
    There are 4 choices for the alternative editor (providing /usr/bin/editor).
    
      Selection    Path …

    Read More
  • Password-less sudo

    calendar January 25, 2022 nav_categories Tech nav_tags linux nav_tags sudo

    While never a good idea to enable this in a production, or multi-user system, on a lab system, not needing to type in a password when running sudo makes life a lot easier.

    • To enable password-less sudo:

      sudo visudo
      
    • Add this to the bottom of the file, assuming your username is tom:

      tom ALL=(ALL) NOPASSWD: ALL
      
    • If we …

    Read More
  • Password-less sudo

    calendar January 20, 2021 nav_categories Tech nav_tags linux nav_tags sudo

    Horrible idea in a production box, but great idea for a single user lab system.

    To accomplish this, we'll use the visudo command, which edits the /etc/sudoers file in a safe manner, aka, protect you from seriously messing up your system.

    sudo visudo
    

    At the bottom of that file, add (assuming your username is tom, …

    Read More

©2019 -   |  www.nodinrogers.com
Powered by Hugo and based off of the Hugo Clarity theme

to-top