

No you can alias that command and hijack the password promt via bashrc and then you have the root password as soon as the user enters it.
No you can alias that command and hijack the password promt via bashrc and then you have the root password as soon as the user enters it.
With aliases in the bashrc you can hijack any command and execute instead of the command any arbitrary commands. So the command can be extracted, as already stated above, this is not a weakness of sudo but a general one.
And how would you not be able to hijack the password when you have control over the user session?
And what do you suggest to use otherwise to maintain a server? I am not aware of a solution that would help here? As an attacker you could easily alias any command or even start a modified shell that logs ever keystroke and simulates the default bash/zsh or whatever.
The scenario OC stated is that if the attacker has access to the user on the server then the attacker would still need the sudo password in order to get root privileges, contrary to direct root login where the attack has direct access to root privileges.
So, now i am looking into this scenario where the attack is on the server with the user privileges: the attacker now modifies for example the bashrc to alias sudo to extract the password once the user runs sudo.
So the sudo password does not have any meaningful protection, other then maybe adding a time variable which is when the user accesses the server and runs sudo
The attacker that is currently with user privileges on the server?
Most comments here suggest 3 things
An actual person from the pen testing world: https://youtu.be/fKuqYQdqRIs
The sudo password can be easily extracted by modifying the bashrc.
Nope, not really. The only reason ppl recommend it is, because “you have then to guess the username too”. Which is just not relevant if you use strong authentication method like keys or only strong passwords.
Either you are heavily misinformed about how difficult arch is, or you lack any confidence in your ‘Linux skill’.
Choose the system you want to achieve, follow the wiki and choose the software you want to use using it and you are good to go, it really is not that hard. You can always use archinstall.
Tbf, winget is a god sent and works surprisingly well, took them what? 30 years to get it done?!
Just today I logged into a Workstation at work, just to see 2 versions of Teams being auto launched. And no, no one installed 2 Versions, it was Windows.
Yep. The difference is simply put just ppl are used to the quirks on Windows but not on Linux.
If I decide to put up with this type of attitude
Your the one insulting me.
Would you say pointing the finger at the linux devs and maintainers saying they should work harder does improve anything and drives ppl to volunteer?
Maybe you should take a read on Wikipedia on what gatekeeping is before you insult me. https://en.m.wikipedia.org/wiki/Gatekeeping_(communication)
OC stated those things ‘should be worked on’. What else is it than blaming ppl?
Yes things could be better, but saying things should be better while sitting on their ass and doing nothing is just not correct to say. If you say it should be better then you should take part in it getting better.
I absolutely disagree with you. If a manufacturer does not care about Linux support, it’s on the manufacturer. Do not blame the thousands of unpaid volunteers and a few paid ppl for not supporting a specific BT chip or controller or whatever.
The signing issue is so on OP cause disabling secure boot or using a supported distro like ubuntu could have fixed that, and yes you can run Windows 11 with Linux dual boot without secure boot.
Basically everything you stated, Bluetooth, Controller and GPU is hardware.
Your experience is probably different since you still think and act like you use windows. This is normal. When you are used to something and then switch to something that works differently you will run into problems.
There are many ways to harden against it, but “just disable root auth” is not really it, since it in itself does not add much.