How to use sudo su root | sudo no password | visudo

Поділитися
Вставка
  • Опубліковано 17 вер 2024

КОМЕНТАРІ • 35

  • @CausticAscarite
    @CausticAscarite 5 років тому +3

    change user not to use password for sudo things AT ALL ? :0

    • @ChrisTitusTech
      @ChrisTitusTech  5 років тому +2

      Yes, this is why I made a disclaimer about doing this. It isn't secure, much like disabling UAC in windows isn't secure. However, I do it for convenience at home and would never do that in a work environment.

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

      @@ChrisTitusTech I have probably mislistened.. True enough

  • @diogenes_of_sinope
    @diogenes_of_sinope 5 років тому +5

    Hey Chris, an experienced user can edit sudoers with any editor but, as for the beginners, the recommended and safer way to edit sudoers is via: sudo visudo. This will prevent them from commiting syntax errors because if you put a single comma in a wrong place, you can break sudo and then they are going to have troubles restoring it.

  • @teamvigod
    @teamvigod 5 років тому +2

    Good tip and advice. Thanks. When I would do server admin I normally would ssh in as root (using private key always). I'd very rarely login as non-root account. On desktop in home environment will use your tip because installing packages and entering PW is a PIA everytime! Also if somebody does install as root and can't access as user they can always chown the file/folder.

  • @TheC0wboyWay
    @TheC0wboyWay 4 роки тому +1

    Thanks for the help! I've saved the link to this video in my browser. I started using computers in the DOS days, so Terminal is familiar to me. Even some of the commands are the same; just the modifiers are different.

  • @MrHRScrc
    @MrHRScrc 5 років тому +1

    Thank you Chris, I use this today . I have a new PC and I install Debian 10 (Buster) stable fresh :)

  • @koreyg5279
    @koreyg5279 4 роки тому +1

    this guy is so helpful to new linux users. what a nice guy. not a pretentious linux deuche

  • @iComment87
    @iComment87 4 роки тому +1

    Bro, how have you got PhotoShop on there? Is that WINE or something else?

  • @secinject814
    @secinject814 3 роки тому

    Do you mean you have to type your sudo pswd *every* time you used it? because if I have a terminal window that I typed the sudo password in, even if use sudo again it won't prompt me for a pswd for at least 15-25mins. In that terminal window.

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

    @Chris Titus Tech OK I have a question for you. In an enterprise environment, how do i manage user sudo rights from a Windows Active Directory? I'm guessing that I need to set X commands to only be run by DOMAIN group, then add users to that group from ADUC. is that the best way to do this? editing SUDO directly for each user on each box is cool if you only have 3 boxes. but if you have 50 boxes......... o my.

  • @dijuevangeline6880
    @dijuevangeline6880 2 роки тому

    In der Beschreibung wird deutsch geschrieben und dann ist das komplette Video auf Englisch, was soll der Mist

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

    When I even type ''sudo su'' I always get to the point where I have to type my password in. When I type it in the correct way it says ''(my username) is not in sudoers file. This incident will be reported.'' Like, what do I actually do as I am new to linux. Even if I run your command ''sudo nano /ect/sudoers'' I still get the same thing when I type in my password.

  • @simonleferink1248
    @simonleferink1248 4 роки тому +1

    Love this intro music man, you have a link?

  • @ChrisTopher-wl6pd
    @ChrisTopher-wl6pd 5 років тому

    HO LEE CHIT! YOU DA MAN!... er... YOU DAEMON!

  • @SloppyPuppy
    @SloppyPuppy 2 роки тому

    Good video, but for me, thanks, but no thanks. I'd rather type it in 20k times, the benefits are big for the effort that is comparatively small. I suppose changing that with a script in Path and forcing a script to return to default on boot is a valid solution. Requiring you to compromise your security only while installing packages.

  • @mbk0mbk
    @mbk0mbk 5 років тому +1

    I am tempted to do it more. Cuz I am g-root.!!!

  • @gooddeedsleadto7499
    @gooddeedsleadto7499 2 роки тому

    What is the meaning of sudo -u oracle -i?

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

    How you highlight commands like "ALL" to red color?

  • @Nsfwstar
    @Nsfwstar 5 років тому +1

    Thx for the advice!!

  • @amparorod2000
    @amparorod2000 3 роки тому

    What about without sudo?

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

    Thank you this really helped me. That was fast and easy.

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

    Nice concise explaination.

  • @bama2619
    @bama2619 2 роки тому

    thank you. Good explanation

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

    Wow anyone doesn't need to hack your PC just login and run and exploit with sudo.

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

      Yup, I would never do this in a business environment. However for a Home Desktop Environment, I don't mind sacrificing security for the convenience.

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

      @@ChrisTitusTech yeh you said that in video but what if someone wipe your drive or steal the personal files. No hard feeling btw just curious.

    • @ChrisTitusTech
      @ChrisTitusTech  5 років тому +2

      @@mbk0mbk I think if a hacker is able to get access to your PC in the first place that is a major security concern. Personally, anything I keep directly on my PC that has personal information is encrypted and even if it was stolen, good luck trying to decrypt it. Also, I don't keep things like tax returns and very sensitive spun up on live media all the time. I bounce around a bunch between work and home, so I make it a point that I can pretty much wipe out any PC and not have to worry about it.

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

      @@ChrisTitusTech ok that's nice . What will you suggest if someone wants to lock down the PC from BIOS, bootloader to DISK itself?

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

      @@mbk0mbk For this I'd recommend a security conscience distribution, like TAILS. Password on BIOS, eliminate GRUB screen to prevent root password reset, and full drive encryption. That is for the tinfoil hat people out there, bank system administrators, and folks with more sinister intentions. I don't fit any of that criteria so I won't be doing this anytime soon 😀