How to execute all sudo commands without password

Поділитися
Вставка
  • Опубліковано 17 вер 2024
  • ***You need to consider any security consequence of allowing a sudo command execute without a password.
    Some times you may need to run a command with root privileges, but you do not want to type a password using sudo command. This can be achieved by editing /etc/sudoers file.
    sudo cp /etc/sudoers /root/sudoers.bak
    sudo visudo
    your_username ALL=(ALL) NOPASSWD:ALL
    For ex- mayur ALL=(ALL) NOPASSWD:ALL
    mayur is my username
    Subscribe our channel for more tech stuff.
    Our Facebook Page - / easytechstudios
    Instagram - / easytechstudios

КОМЕНТАРІ • 13

  • @MEGHANANAMBURU
    @MEGHANANAMBURU 6 місяців тому +2

    Thank you so much for making this video. It helped me a lot. I am struggling to solve this from around 3 days. It got solved by performing the steps you shown in this video.❤

  • @XBEAST321
    @XBEAST321 Рік тому +2

    Thank You So Much Works LIke a Charm

  • @aishwaryakulalaxmi8271
    @aishwaryakulalaxmi8271 3 роки тому +1

    Thanks a lot it worked

  • @jordanh9520
    @jordanh9520 Рік тому +3

    Might as well be logged in as root, bad security practice

    • @EasyTechStudios
      @EasyTechStudios  Рік тому

      Yes it is not a best practice but helps in troubleshooting in sandbox env

  • @radheyazunjur8702
    @radheyazunjur8702 Рік тому

    root name will be ec2 instance name or dockerhub name?

  • @inklihpse870
    @inklihpse870 4 роки тому

    user cant execute

  • @flexzone6369
    @flexzone6369 5 років тому

    pls for the password

    • @AlexGower
      @AlexGower 4 роки тому

      It should be the password of the user you are currently using... Only you will have that.

    • @مهندالمهدي-ي7و
      @مهندالمهدي-ي7و 4 роки тому

      Alex Gower i just wondering Alex what is the password phrase? I attempting to install ROZ but it doesn’t work I faced password problem please help me !

    • @AlexGower
      @AlexGower 4 роки тому

      مهند المهدي whatever the root user default password is set to or for example if you are using digital ocean they email you the password