Linux - sudo Command Intro

Ғылым және технология

Find code and diagrams at: www.EliTheComputerGuy.com
In order to do many tasks you have to escalate your privileges using the “sudo” command. This is like UAC in Windows. The idea is that to make major changes to the OS there is an additional security level so if an administrator forgets to logout of a session a hacker cannot simply have full access to the system.
To use sudo simply type it before a command, and then enter your password when requested.
If you try to open a file that requires sudo the failure can be very confusing to new users.
The default timeout for sudo password request is 15 minutes
There is a lot to sudo beyond what was discussed in the video: manpages.ubuntu.com/manpages/b...

Пікірлер: 66

  • @jayvuillermin1414
    @jayvuillermin1414 Жыл бұрын

    Been watching your videos for over 10 years. Love your work mate, thank you

  • @movingforwardwithahad317
    @movingforwardwithahad3174 жыл бұрын

    Thank You for the awesome presentation. Really helps grasp the big picture for those who are less software inclined.

  • @jaimecarranza2509
    @jaimecarranza25094 жыл бұрын

    I have 2 years watching your channel and I just like it. Please keep it UP, you are the man. You sounds like a Cbt nuggets trainner to me.

  • @brandonfarfan1978
    @brandonfarfan19782 жыл бұрын

    Thanks for the sudo lesson and showing us vim too.👍

  • @lgrfbs
    @lgrfbs4 жыл бұрын

    I like MC (Midnight Commander) under Linux for file works and edit files. This was a good video!

  • @raybuck4285
    @raybuck42854 жыл бұрын

    thanks ....really having a better understanding thru your teachings....

  • @fakefirstnamefakelastname8305
    @fakefirstnamefakelastname83054 жыл бұрын

    At this point we could just shout “SUDO UNGROUND ME” to our parents to get ungrounded

  • @dilanhoshyar8511
    @dilanhoshyar85114 жыл бұрын

    Thanks Eli ..., what is different between su and sudo? !

  • @MeghanLovesIceSkating
    @MeghanLovesIceSkating4 жыл бұрын

    Do you have a podcast? If so, where?

  • @davidkafka2452

    @davidkafka2452

    4 жыл бұрын

    Check out The Daily Blob on his Failed Normal channel.

  • @oris3067
    @oris3067 Жыл бұрын

    Thanks for the $SUDO lessons buddy, i think we taking over the market now cos SUDO is now available on MEXC, one of the best CEX. Am gonna stake my accumulated portion there and take over the space 🚀🚀

  • @splash_csc8593
    @splash_csc85934 жыл бұрын

    Eli? Are you gonna come back with daily blobs? God I miss the blobs! I loved them so so much! Can you not do them on your website? Anyhow, I miss ya bro! Have a great day! Peace!

  • @eirikmurito
    @eirikmurito3 жыл бұрын

    Does the meaning of the word server change depending on the context?

  • @lsgam2061
    @lsgam20614 жыл бұрын

    My two cents. If you're a noob, just use nano instead of vim. It's more easy to use and user friendly and almost as powerful as vim. And when you feel more comfortable using a command line editor try to learn vim.

  • @kadialydiaby7338
    @kadialydiaby73384 жыл бұрын

    Hello Bob !! can you make some videos on shell Scripting?

  • @magotelecom
    @magotelecom2 жыл бұрын

    Thanks for the video. I can use my root pwd in linux when I download sw in Synaptic Package Manager but when I use sudo in terminal, the root pwd is being rejected. How can I fix it pse?

  • @debeeriz
    @debeeriz4 жыл бұрын

    you should always use visudo to edit the sudoers file, because if you make a mistake it tells you

  • @baileyharrison1030

    @baileyharrison1030

    4 жыл бұрын

    and if you don't want to use vi you can always put 'export EDITOR='nano' for example in your .bashrc

  • @debeeriz

    @debeeriz

    4 жыл бұрын

    @@baileyharrison1030 thanks for that, i dont like vi or nano so i will try that with xed

  • @lolisbetternthan4785
    @lolisbetternthan47854 жыл бұрын

    By the way, is there another text editor that works for Ubuntu server, similar to Gedit? Im talking about the keyboard shortcuts. Vim and Nano are a bit non user friendly.

  • @Ayyy-lmao

    @Ayyy-lmao

    4 жыл бұрын

    harden up and get used to it

  • @HungryGuyStories

    @HungryGuyStories

    4 жыл бұрын

    @@Ayyy-lmao That's not helpful. Way back in the stone age, I wanted to switch to Linux, but vi was torture for me to use. Everyone I asked told me to "suck it up and learn it." Attitudes like that kept me from switching to Linux for years. Nowadays, you can get a multitude of text editors for Linux that are compact enough that you can keep on a thumbdrive hanging on your keyring for when you have to work on some server you've never used before.

  • @HungryGuyStories

    @HungryGuyStories

    4 жыл бұрын

    @lolis betternthan I'm not familiar with Gedit, but I like Text Editor. If you hover over all the dropdown menus, it shows you the shortcuts for each command. It came installed with Mint but you can prolly get it for Ubuntu using apt. (though, personally, I like Nano)

  • @NoEgg4u

    @NoEgg4u

    4 жыл бұрын

    @@HungryGuyStories "vi" is a picnic compared to the "ed" editor. I forgot how to use "ed", and I have no plans to punish myself, again.

  • @baileyharrison1030

    @baileyharrison1030

    4 жыл бұрын

    @@HungryGuyStories You can always use nano though. That shits about as ez as it gets. Control O to save, Control X to quit, the rest is just straight typing what you want and arrow keys to navigate.

  • @RealNaps
    @RealNaps4 жыл бұрын

    You thought me php, thanks alot Eli, i now make 8 figures annually

  • @DrBenway97

    @DrBenway97

    3 жыл бұрын

    I'm sorry but I find this very hard to believe. Are you telling me you make over $10,000,000 per year because you know php? Where do you live?

  • @HK-sw3vi

    @HK-sw3vi

    3 жыл бұрын

    @@DrBenway97 in his fantasy world

  • @bruhhhhh718

    @bruhhhhh718

    2 жыл бұрын

    what currency

  • @effortlesssecurity2772
    @effortlesssecurity27724 жыл бұрын

    really good!!!

  • @aditya2000
    @aditya20004 жыл бұрын

    Nice video

  • @nickkettering6093
    @nickkettering60933 жыл бұрын

    im just dabbing, just wiped an old laptop to zorin 15 and just self learning code ig. thanks, ill remember this.

  • @caseywinters3021
    @caseywinters30213 жыл бұрын

    Since I’m white arnt my privileges already fully escalated?

  • @caseywinters3021

    @caseywinters3021

    3 жыл бұрын

    @@andrewlee4353 coca cola says don’t be a super user

  • @KowboyUSA
    @KowboyUSA4 жыл бұрын

    Su-Su-Sussudio

  • @freshdoug

    @freshdoug

    3 жыл бұрын

    What I think every time I see sudo.

  • @cybermember2939
    @cybermember29394 жыл бұрын

    Thn y we need sudo we can do all work by directly using root user , because every user can use sudo and do change then wat is the use of root user.

  • @Bearleaux

    @Bearleaux

    4 жыл бұрын

    You don't want people as the root user all the time. Every user can technically type sudo then a command but if they're not in the sudoers file it will reject the command and log it. If you're on your own system and don't care about a command line mistake or if you're learning on a VM and can easily redeploy if you kill it, root user away my friend. However as I'm sitting here in puTTY monitoring the server I'm definitely not logged in as a root user. If something pops up and I need to make changes I'll sudo my way through it. It's also helpful for production environments to use sudo because in a log I can see exactly what someone does. If they are allowed to log in as root, you see root doing everything instead of user-"x".

  • @cybermember2939

    @cybermember2939

    4 жыл бұрын

    @@Bearleaux thx bro.

  • @andrewsegarini9511
    @andrewsegarini95114 жыл бұрын

    Sussudio = Substitute Super User

  • @MirkWoot
    @MirkWoot4 жыл бұрын

    id wish, that when within the time limit, you shouldn't need to type sudo infront of everything again, for that period.

  • @technicalgurujidot3415
    @technicalgurujidot34154 жыл бұрын

    Say something sir!

  • @vapornate
    @vapornate4 жыл бұрын

    sudoo vs sudoe

  • @christopheralthouse6378
    @christopheralthouse63784 жыл бұрын

    I have Linux Mint running in VirtualBox...it's essentially Ubuntu made to look more like Windows...I'm having an issue where the "sudo" command is not doing as it should, I have updates waiting to install but they won't install because even when I go into the Terminal and use the "sudo" command and give it the password, it comes back saying I don't have the permissions to perform the command! I'm the only account on there, it is the administrator...WHY IS IT DENYING MY PERMISSIONS?!

  • @knightninja8714

    @knightninja8714

    4 жыл бұрын

    It might be better to post in a forum where they answer questions like yours and post whats happening on your screen.

  • @sl0w_rv3rb

    @sl0w_rv3rb

    4 жыл бұрын

    add your user to the sudoers

  • @NoEgg4u

    @NoEgg4u

    4 жыл бұрын

    @Christopher Althouse, in the /etc directory, there is a file named "sudoers". In that file, there should be a line that reads: root ALL=(ALL:ALL) ALL Repeat that line, but change the "root" to the name of your login. For example, if your login is Christopher, then the line should read: Christopher ALL=(ALL:ALL) ALL When done, you should have both lines. It should look like this: root ALL=(ALL:ALL) ALL Christopher ALL=(ALL:ALL) ALL If you are not able to edit the /etc/suoders file, well, then that is another problem. If you know your Linux Mint's root password, then you can run: su root When prompted, enter your root password. You will then be able to do the above. If you do not know your root password, then you will probably need to boot into single user mode, and do the above. But that is too much to go into, especially since you will probably succeed without needing to do this step. Cheers!

  • @baileyharrison1030

    @baileyharrison1030

    4 жыл бұрын

    Is your user account in the 'wheel' group? I believe that is the default sudo group in ubuntu.

  • @technicalgurujidot3415
    @technicalgurujidot34154 жыл бұрын

    I'm your diehard fan.im PALLAB from india.i don't know too much about networking but I really wanted to learn it through you.can you please teach me .I wanted to be your great student also a great followers.pls pls sir I request to you . please teach me.for this I will do anything whatever you will say.pls don't let me down.please please.really I wanted to be like you.

  • @nattybuffalodread
    @nattybuffalodread3 жыл бұрын

    sudo beer

  • @nicholaslepp1502
    @nicholaslepp15024 жыл бұрын

    i know apt git update lol

  • @bbolin711
    @bbolin7114 жыл бұрын

    Freeipa+sudo

  • @frizzleskillet18
    @frizzleskillet183 жыл бұрын

    Imagine thinking sudo means subsistute user do. --this comment was posted by the super user do gang.

  • @technicalgurujidot3415
    @technicalgurujidot34154 жыл бұрын

    Please sir please

  • @DDBAA24
    @DDBAA244 жыл бұрын

    History Lesson of the day , The original UNIX meaning of SUDO , is absolutely superuser-do, I watched the entire interview with the creator and he explains the command in depth, how it came to be. This inteview kzread.info/dash/bejne/fpV12c5seLGblNY.html its called 'Inventing the SUDO command with Bob Coggeshall'. When you create a new user you wont even be able to use 'sudo' unless you add it to the group 'usermod -a -G sudo username' Then you should set the password 'sudo passwd' . When logging in you may not get a BASH shell you may get '/bin/sh' . A lot of commands will not work , change shells with 'sudo chsh -s username /bin/bash' $~ sudo echo your-user-name ALL=(ALL) NOPASSWD: ALL >> /etc/sudoers , if the spaces aren't right it will break 'sudo' You CAN do this with the NANO editor its not necessary to use VIM. 'sudo nano /etc/sudoers' . By adding this to the END of the file you will never have to type the sudo password in ever again. Although you will still have to elevate your privileges by the redundant typing of the 'sudo' command. Which you shouldn't change at least your reminding yourself your executing a command with ROOT , be careful. You can go a step further and never have to type sudo giving your user complete ROOT privileges (not recommended) .

  • @bashdudy
    @bashdudy4 жыл бұрын

    almost 20 minutes to explain what root privilege means. geez

  • @jameschurch1697

    @jameschurch1697

    4 жыл бұрын

    I don't understand people like you COMPLAINING, ELI teaches FREE. Those of you with so much experience shouldn't watch his lessons/channels . There are people that really enjoy the fact that he takes the time to explain in a slow manner .

  • @baileyharrison1030

    @baileyharrison1030

    4 жыл бұрын

    If you're used to the unix environment it will be really difficult to relate to someone learning this stuff for the first time. There are loads of random things which confuse beginners and the fact Eli is clarifying them will safe people a lot more time than the 20 minutes they spent watching the video.

  • @bashdudy

    @bashdudy

    4 жыл бұрын

    @@jameschurch1697 its to slow im sorry, i love Eli videos and i actually learn alot from most of them, but taking a subject that supposed to be so basic and digging it out so much is an overkill. he supposed to explain the linux architecture and combine it with the sudo function. its not a good way to explain systems with analogies its just wont work

  • @maso8061
    @maso80614 жыл бұрын

    1. use visudo for sudoers 2. please be more professional on youtube movies...

  • @elithecomputerguy

    @elithecomputerguy

    4 жыл бұрын

    ???

  • @elithecomputerguy

    @elithecomputerguy

    4 жыл бұрын

    Dear sir... I am a proud moron with a webcam... if you want “professional” Louis Rossmann is for you... I have no doubt he can show you how to solder the Sudo command properly...

  • @FirstnameLastname-fy7bl

    @FirstnameLastname-fy7bl

    4 жыл бұрын

    Ma So typical Linux snob “please be more professional “ >> please be boring. Why does someone have to be boring to educate? Linux fails because of the mentality of most of its hardcore users who hate on everyone. When I think of Linux I see arrogant pricks who get fired from foundations.

  • @StuWilloughby
    @StuWilloughby3 жыл бұрын

    Let's be totally honest here. The Linux user experience is just plain awful. Beyond a joke really. You're shackled with so many facets of computing from yesteryear (most now half a century old) and just no longer fit for purpose. Having to memorize page upon page of abbreviated commands, which is nigh on impossible unless you are using them on a daily basis as a sysadmin. Throw in a fairly toxic elitist community and...well, you get my point.

  • @kadialydiaby7338
    @kadialydiaby73384 жыл бұрын

    Hello Bob !! can you make some videos on shell Scripting?

Келесі