by cosmin800 · 3y ago · 0 comments
On Wed, 2019-05-15 at 02:42:56 +0930, Dan Streetman wrote:
> in Ubuntu, sudo retains the calling user's $HOME > > this is different from upstream sudo as well as all other UNIXes and > even the sudo documentation we provide. Should we remove our custom > patch that adds this behavior?
Ubuntu is diverging.
Other distros slowly started to adapt the "secure by default" policy and came up with different approaches. OpenSUSE for example still uses the root password for sudo. The patch to /etc/sudoers is massive.
I wouldn't expect sudo to behave the same across distros, there is a lot of history to it.
Indeed.
Try and install 22.04 on a server that has two exactly identical NVME drives, you're very likely going to be in for a very interesting adventure involving a strange beast called 'multipath' devices.
It was so bad I had to switch back to the legacy text installer for 20.04.
At install time?
All my attempts have failed in the following fashion:
. I boot the text only installer
. Once it runs I switch to a shell
. I edit the python code of subiquity / curtin to rip out anything that has to do with mutlipath
. I disable all systemd shite related to multipath
. I kill the installer (and systemd restarts it)
. When I get to partioning, I finally see my NVME devices instead of the weird multipath stuff
. I create a raid-0 partition on them
. The installer then fails miserably
Care to share your recipe?```
blacklist { devnode "^sd[a-z0-9]+" }
```
In /etc/multipath.conf (modify for nvme as needed)
'sudo su -' instead executes the 'su -' command, giving you a root shell, as a superuser with 'sudo'. If you left the 'sudo' out, you'd have to type the root password.
You can simplify that to "sudo -i".