Dedicated Openbsd Application Subexecutor
That's got to be a convoluted Backronym.
What is the fundamental difference between sudo and doas ?
12 hours ago by TheViking to c/nostupidquestions
Dedicated Openbsd Application Subexecutor
That's got to be a convoluted Backronym.
You can actually also launch a full interactive shell with sudo -i but it's not really used much as it's easier to just type su and use that tool instead.
su asks for the target user password, while sudo asks for your password, tho, if I'm not mistaken
Yeah, Sudo has been around for ages and is in pretty much every distro. So Doas just hasn't really taken off due to inertia. You can install it yourself in many distros, but people tend to default to what they know. I'm not sure if any linux distros default to it. Also tutorials all over the internet use "sudo" so it kinda embeds it more as THE tool.
It's similar with a lot of the core GNU utilities. For example "ls" lists directories and it's everywhere, but there are actually better written newer alternatives. They just aren't as widespread because people tend to use the GNU utilities together. I personally like eza for example.
EDIT: Just to be clear; Sudo is NOT one of the GNU Core Utilities, but Sudo originated in 1980 according to wikipedia. Doas was released in 2015.
Sudo runs a temp shell as root. Doas runs the temp shell with whatever user you specified defaults to root w no arguments. Personally I just su to the user then run the command as the user natively in the users shell, makes it way easier to see what you did in the history and logs
Sudo: Always uses the root user to get access to run a command, no matter which user you want to run the command as. Doas: Uses the user you want to run the command as to actually get access to run the command.
Yes.
Nah. The guy's either confusing sudo -u and sudo su - or confusing "has suid so it can switch users" with "always goes through root". Because it doesn't "go through" root like sudo su does.
Sudo find -f
Super user do command find and look for all files in the current directory
Makes a tempory separate session (shell) to run command as root user from the current working directory
Doas find -f
Super user do command find and look for all files in the current directory
Makes a tempory separate session (shell) to run command as root user from the current working directory
Doas bob find -f
Do as Bob look for all files that can be accessed
Makes a tempory separate session (shell) to run command as bobs user from the current working directory, will show any files that bobs group or user owns.
Ask ChatGPT instead if you don't want to have a conversation.
Sudo runs a temp shell as root.
Weird. I sense it can run subshells as other users too.
Well answered in your duplicate post https://nord.pub/...
@lemmy.world
!nostupidquestions is a community dedicated to being helpful and answering each others' questions on various topics.
The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:
All posts must be legitimate questions, and all post titles must include a question. Questions that are joke or trolling questions, memes, song lyrics as title, etc. are not allowed here. See Rule 6 for all exceptions.
Your question subject cannot be illegal or NSFW material. You will be warned first, banned second.
Do not seek mental, medical and professional help here. Breaking this rule will not get you or your post removed, but it will put you at risk, and possibly in danger.
That's it.
Questions which, instead of being of an innocuous nature, are specifically intended (based on reports and in the opinion of our crack moderation team) to bait users into ideological wars on charged political topics will be removed and the authors warned - or banned - depending on severity.
Provided it is about the community itself, you may post non-question posts using the [META] tag on your post title.
On fridays, you are allowed to post meme and troll questions, on the condition that it's in text format only, and conforms with our other rules. These posts MUST include the [NSQ Friday] tag in their title.
If you post a serious question on friday and are looking only for legitimate answers, then please include the [Serious] tag on your post. Irrelevant replies will then be removed by moderators.
If you intentionally annoy, mock, harass, or discriminate against any individual member, you will be removed.
Likewise, if you are a member, sympathiser or a resemblant of a movement that is known to largely hate, mock, discriminate against, and/or want to take lives of a group of people, and you were provably vocal about your hate, then you will be banned on sight.
Let everyone have their own content.
Our breathtaking icon was bestowed upon us by @Cevilia!
The greatest banner of all time: by @TheOneWithTheHair!
go to feed...
@lemmy.world
!nostupidquestions is a community dedicated to being helpful and answering each others' questions on various topics.
The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:
All posts must be legitimate questions, and all post titles must include a question. Questions that are joke or trolling questions, memes, song lyrics as title, etc. are not allowed here. See Rule 6 for all exceptions.
Your question subject cannot be illegal or NSFW material. You will be warned first, banned second.
Do not seek mental, medical and professional help here. Breaking this rule will not get you or your post removed, but it will put you at risk, and possibly in danger.
That's it.
Questions which, instead of being of an innocuous nature, are specifically intended (based on reports and in the opinion of our crack moderation team) to bait users into ideological wars on charged political topics will be removed and the authors warned - or banned - depending on severity.
Provided it is about the community itself, you may post non-question posts using the [META] tag on your post title.
On fridays, you are allowed to post meme and troll questions, on the condition that it's in text format only, and conforms with our other rules. These posts MUST include the [NSQ Friday] tag in their title.
If you post a serious question on friday and are looking only for legitimate answers, then please include the [Serious] tag on your post. Irrelevant replies will then be removed by moderators.
If you intentionally annoy, mock, harass, or discriminate against any individual member, you will be removed.
Likewise, if you are a member, sympathiser or a resemblant of a movement that is known to largely hate, mock, discriminate against, and/or want to take lives of a group of people, and you were provably vocal about your hate, then you will be banned on sight.
Let everyone have their own content.
Our breathtaking icon was bestowed upon us by @Cevilia!
The greatest banner of all time: by @TheOneWithTheHair!
go to feed...
Su = Switch User / Substitute User; it allows you to run a full shell as another user. It can be any user, but if you don't specify then it'll open a shell as the root user with its elevated privileges. It allows you to do everything the root user can while that shell is still open, until you exit.
Sudo = SuperUser Do; it allows you to run one command with elevated privileges as the root user. Once it's done the command it usually then ends. You can actually also launch a full interactive shell with sudo -i but it's not really used much as it's easier to just type su and use that tool instead.
Doas = Dedicated Openbsd Application Subexecutor (seriously). It's an alternative to Sudo that originated in Openbsd that also allows users to run a command with elevated privileges as the root user. Doas can also be used to open a full shell like Su (e.g. doas -su Username). Its code is smaller and tighter, and is seen as more secure than Sudo. It also has much more straight forward configuration. It's newer than Sudo, so although Doas is in theory better, Sudo is the default widely used tool across the vast majority of Linux.
save