Linux Security - Configuring SUDO Access

Поделиться
HTML-код
  • Опубликовано: 9 янв 2025

Комментарии •

  • @stillchaos
    @stillchaos 3 года назад +3

    I know you hear this. So I just want to thank you for your work. It has been the most valuable teaching tool.

  • @HackerSploit
    @HackerSploit  4 года назад +1

    Timestamps:
    0:00 Introduction to the series
    2:14 Video starts
    You can register for part 2 of this series here: event.on24.com/eventRegistration/EventLobbyServlet?target=reg20.jsp&partnerref=website&eventid=2649692&sessionid=1&key=FDD7D40926383C11B3392509222D8368®Tag=1558905&sourcepage=register

  • @UxRandom
    @UxRandom 4 года назад

    To lock down sudo even further you could take these two steps:
    Another thing you could do is log all your sudo commands to a separate log file as by default sudo gets logged to syslog files
    You can enter the following below in your visudo
    Defaults log_host, log_year, logfile="/var/log/sudo.log"
    ^ This will create a log file in /var/log called sudo.log and will log what user and what time on what host executed what command
    example:
    Oct 17 13:07:08 2020 : admin : HOST=mitchell : TTY=pts/2 ; PWD=/var/log ;
    USER=root ; COMMAND=/bin/cat sudo.log
    Oct 17 13:06:43 2020 : admin : HOST=mitchell : TTY=pts/2 ; PWD=/var/log ;
    USER=root ; COMMAND=/usr/bin/apt update
    Admin would be the user who executes the command.
    Then simply just cat /var/log/sudo.log to view the contents of the log
    You could also:
    Configure sudo to not allow users to switch to root or any another account. but Instead, configure sudo to allow users to run specific commands as the users they need to operate as, while still having root disabled.
    For eg: There’s a need for a user to install software. Allow them to run only RPM or APT or YUM as root without even switching to the root user as shown below:
    Entered in the sudo config file:
    usernameHere ALL =(ALL) PASSWD : /usr/bin/apt-get, /usr/bin/yum, /bin/rpm
    This would allow said user to run sudo apt-get, sudo yum and sudo rpm without any password but would not allow any other commands!
    in case a user types a wrong password, sudo will display insults on the terminal with the insults parameter. Enter this into your visudo file to enable insults on wrong password attemps:
    Defaults insults
    Also thx HS, Very informative video

  • @radheysenpai7427
    @radheysenpai7427 4 года назад

    Man these are all what I learned manually from linux Bible, but sir your teaching was fantastic 😍😍

  • @canYOUhandle
    @canYOUhandle 3 года назад +1

    I watch all in one breath@!! Great man!

  • @dhruvshyam1809
    @dhruvshyam1809 4 года назад +3

    Sir, i thanks you to providing such valuable content. all the content uploaded on this channel is awesome, and i also learnt a lot from this channel. sir i request you to start a series on privileged escalation as many of us know how to exploit machines but face trouble when we try to escalate our privileges
    I would love to hearing from you 🙏

  • @notpublic7149
    @notpublic7149 4 года назад +2

    Yup, I love this series. Yes.

  • @ivank.734
    @ivank.734 4 года назад

    Aleksis thank u for your video channel!
    These are super important things which we all must know!

  • @dronpatel6552
    @dronpatel6552 4 года назад

    You are great man,you are doing great work I really really appreciate your work your are doing ❤️
    Love your bro from INDIA 🇮🇳

  • @fluidman777
    @fluidman777 3 года назад +2

    Thank you, selfless man!

  • @marlo_stanfield4410
    @marlo_stanfield4410 3 года назад

    Damn this is good stuff. And especially for RUclips. Thanks for creating this great content

  • @MrChurchie73
    @MrChurchie73 3 года назад

    very nice video...
    would love to see a more in-depth video specifically on configuring sudoers and using sudoers.d to manage privileged commands a user can run. thanks for this one though.

  • @overland3962
    @overland3962 4 года назад

    Thank you for all your great content!!!

  • @andrewbuckau5792
    @andrewbuckau5792 Год назад

    7:55 root has to use sudo command?!? wat... I think usermod ( /sbin/ ) just isn't in $PATH. ??

  • @Liberator_OO1
    @Liberator_OO1 9 месяцев назад

    Good evening sir,
    Sir I want to convert my chromebook714 - 1W - 390Y but it is required to enable Sudo if I want to bypass the VT2 terminal.

  • @mynealways509
    @mynealways509 4 года назад

    Thanks hackersploit, not sure what i did but obviously missed 1 through 5, could you pls send through this missing series... Greatly appreciated , yours truly - Myne

  • @satyamfifa
    @satyamfifa 3 года назад

    So what's keeping the dev user account from unlocking the root arround or changing the shell of the root?

  • @sumedh1678
    @sumedh1678 4 года назад

    Willing to learn more CTF !

  • @stokley121
    @stokley121 2 года назад

    Thanks, great video.

  • @SilentSolution
    @SilentSolution 3 года назад

    Thanks for your video sir

  • @badplayer4348
    @badplayer4348 Год назад

    How is the dev user any more secure than root if it has all the same privileges?

  • @nirav_multani
    @nirav_multani 4 года назад

    Which process monitor was that at the beginning of video?

  • @Gr33n37
    @Gr33n37 4 года назад +4

    Thanks a lot sir, when you get time can you make some video on hardware hacking or BIOS hacking

  • @NiquelBones
    @NiquelBones 4 года назад +2

    ok so my school computers run a shitty linux distro and they "disabled" root by changing the password
    the thing is you can access a root terminal in the recovery mode when booting up the pc and change again the password there
    lets just say i installed cs 1.6 on a couple computers..

    • @FalseDev
      @FalseDev 4 года назад +2

      Time to run useradd and usermod -aG

  • @julienbastin3315
    @julienbastin3315 4 года назад

    Thank you. Very good video !

  • @Abhinavkmr
    @Abhinavkmr 4 года назад

    Please make more videos like this!

  • @hatit8074
    @hatit8074 3 года назад +1

    Hi sir. I love your content. Huge respect from india. I have a doubt sir. If I know the password for dev account who is in sudo group, what is the use of locking password for root account. Because they can unlock it again and switch to root account ryt ?please answer my question if it makes sense and if am wrong pls correct me. Thank you so much.

  • @tabbytabrez6767
    @tabbytabrez6767 3 года назад

    nice video.... moreover if you can pls share the link of the videos you talked about sudo file syntaxes and other stuff of sudo.
    I have gone throught ur channel but could not find it... :)

  • @dhakanednyanesh
    @dhakanednyanesh 4 года назад

    I have a doubt, If we are giving all permission to dev then why hacker will try to access the root account, because he can do almost anything from the dev account.

  • @Handy-Handy
    @Handy-Handy 4 года назад

    wonderfull!! see ya @webcast

  • @future-jim
    @future-jim 2 года назад

    what if dev does $ sudo su in order to access root?

  • @muhammedozen2699
    @muhammedozen2699 4 года назад

    Hello HackerSploit. I've been watching your videos and I appreciate all of your hard work to train us here. I have a question about this video. The methods you've shown work perfectly fine when we try to switch to the root user with su command. But wen I try "sudo -s" on the system I can easily switch to root user and I get something like "root@ubuntu:~#" in my terminal. I'm curious if there's any way to disable that too. Or is this changing to root user. It doesnt ask for root password. It just asks for the current user's password. Thank you in advance...

  • @Handy-Handy
    @Handy-Handy 4 года назад

    is there a difference between adding the user to the sudoers file and adding the user with a command "adduser [USER] sudo"?

    • @Handy-Handy
      @Handy-Handy 4 года назад

      @NuBz haha :) thx for the answer - yeah im not familiar with Arch - Debian is my home distro :), i will going to look into other distros and try these different ways out

    • @somebody3014
      @somebody3014 Год назад

      adduser command is for creating a new user in your system while sudoers file is for configuring who can have access to sudo command and some other stuff...

  • @creonte38
    @creonte38 4 года назад

    Hi, nice video. If you can put something about:
    sudo edit
    sudo noexec
    The implications of them for linux security. Thank you for the very good video!

  • @mrmonster9671
    @mrmonster9671 4 года назад

    How payload Hide in images help

  • @xade8381
    @xade8381 4 года назад

    Artix linux review from your perspective, plz

  • @giftonpaulimmanuel146
    @giftonpaulimmanuel146 2 года назад +1

    thanks

  • @blakryptonite1
    @blakryptonite1 4 года назад

    Thank you. How is Covid going in your part of the world?

    • @blakryptonite1
      @blakryptonite1 4 года назад

      @NuBz I already know he lives in Kenya, as his public profiles have listed that, as well as his about section. I was just asking how covid has effected life there around him.

    • @____-gy5mq
      @____-gy5mq 4 года назад

      @@blakryptonite1 it's a bot, no replies to he expected.

  • @Wan_Destroyer
    @Wan_Destroyer 2 года назад

    And what is the root password

  • @darkspace6979
    @darkspace6979 4 года назад

    Hey good video but I don't have a credit card account . " ? "

  • @rajughorai3909
    @rajughorai3909 4 года назад

    you are awesome

  • @dollarboysushil
    @dollarboysushil 4 года назад +1

    Dollarboysushil is here *#*#*#

  • @kr4k3nn
    @kr4k3nn 4 года назад

    Great

  • @QuangMinh-jn9mu
    @QuangMinh-jn9mu 4 года назад

    Hello thanks

  • @marknugent21
    @marknugent21 4 года назад

    Regardless

  • @leonose1737
    @leonose1737 4 года назад

    Hello

  • @lyricsforyou3615
    @lyricsforyou3615 4 года назад

    Make a rat video.