Normally you only need to enter the password at preset intervals, although I am pretty sure that is configurable.alamahant wrote:I find it extremely annoying having to precede everything with sudo even if it is passwordless sudo.
So I mostly use the root account when in terminal.
Just be mindful that you can wreak your system if you do something really foolish.
What makes doas better?Ionen wrote:I only use it for preset commands (which is the only things it's allowed to run, and they take no arguments), e.g. `sudo do-this-specific-thing-passwordless`, otherwise I just su - normally.
Been meaning to replace sudo with doas but haven't got to looking at it yet.

In the end it does the same job as sudo but it would seem easier to configure.penetrode wrote:What makes doas better?
+2pietinger wrote:+ 1 !!! I have never used sudo and will never do. Without a restricted and correct configuration IT IS a security weakness.Goverp wrote:I'm a "su - root" person. IMHO sudo's user-level validation is a security weakness. [...]

+3CooSee wrote:+2pietinger wrote:+ 1 !!! I have never used sudo and will never do. Without a restricted and correct configuration IT IS a security weakness.Goverp wrote:I'm a "su - root" person. IMHO sudo's user-level validation is a security weakness. [...]
never ever - why should i on a single user system ?

I was mainly going to suggest /usr/bin/sudo /bin/su - as a workaround when needed. The primary benefit being the lack of a root password. I use sudo for simple commands and combine it with su if doing something more involved.Goverp wrote:I'm a "su - root" person. IMHO sudo's user-level validation is a security weakness. On systems that use it (Raspian OS) I use "sudo su -", which sort of defeats the object. OK, it can and should be more strictly configured, but who wants to list all commands they expect to need?
Code: Select all
$ su -
Land shark. -Code: Select all
sudo -i /bin/bashCode: Select all
su -Code: Select all
alias rm='rm -i'
alias mv='mv -i'
alias cp='cp -i'https://xkcd.com/936/figueroa wrote:I always set a root password. Whenever I'm doing repeated administrator chores, I always su to root. My root passord(s) are "safe," meaning difficult, long, and exotic.
True. Passwordless sudo is a convenience device, not a security device.Running passwordless sudo, which I did for years, is not safe. Doing so is effectively the same as being root all the time by only using the prefix sudo. Having to enter a password with sudo helps keep me safe from myself.
Ouch! This thing.... It's one of those ideas that look good on paper, but in reality it takes additional effort and gives you bad habits in return.I also use the following aliases (.bashrc or .bash_aliases) in personal and root shells:Code: Select all
alias rm='rm -i' alias mv='mv -i' alias cp='cp -i'
Cute cartoon. If you only knew + Fail2Ban.szatox wrote:https://xkcd.com/936/figueroa wrote:I always set a root password. Whenever I'm doing repeated administrator chores, I always su to root. My root passord(s) are "safe," meaning difficult, long, and exotic.