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

preview_player
Показать описание
This video goes over how to use sudo su root or use sudo no password to avoid getting prompted all the time. It covers why people new to Linux like to use sudo su and why this messes up their installs.

Commands:
Switch to Root user
# sudo su

Change your user to auto elevate without password in sudo visudo
# sudo visudo
-----APPEND either of the following------
--CHANGE USER----- myuser ALL=(ALL) NOPASSWD:ALL
--CHANGE GROUP-- %usergroup ALL=(ALL) NOPASSWD:ALL

Support My Work
-----------------------------------------------------------------------------------

Other Places to Find Me
-----------------------------------------------------------------------------------

DISCLAIMER: This video and description contain affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This helps supports the channel and allows us to continue to make videos like this. Thank you for your support! .

Рекомендации по теме
Комментарии
Автор

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

CausticAscarite
Автор

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.

diogenes_of_sinope
Автор

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.

teamvigod
Автор

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.

TheCwboyWay
Автор

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

koreyg
Автор

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

MrHRScrc
Автор

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

iComment
Автор

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.

secinject
Автор

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.

andersbalhgren
Автор

@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 o my.

HIROX
Автор

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

rockdie
Автор

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

gooddeedsleadto
Автор

Love this intro music man, you have a link?

simonleferink
Автор

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

mbkmbk
Автор

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

dijuevangeline
Автор

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

ChrisTopher-wlpd
Автор

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.

SloppyPuppy
Автор

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

thepyrosalesmanvideoplayba
Автор

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

mbkmbk