Comments (5)
No, doas does not need sudo to work. It does however need PAM on most platforms.
You didn't tell me anything about your OS or setup, but my guess is that when you removed sudo it also removed dependencies that sudo uses. Some PAM modules get installed by sudo on some platforms that doas uses. So if you installed doas from source (ie not using your package manager) and then removed sudo which removed related PAM modules, then doas would stop working.
This means your package manager either removed dependencies or your OS's PAM modules broke when you removed sudo, maybe due to a config change. So bottom line is doas doesn't need sudo, but it probably needs PAM on your platform and removing sudo probably broke part of your PAM setup.
from doas.
Oh yes, sorry. I am on an up-to-date version of Ubuntu 20.04 on amd64 architecture.
Which modules are required? Also that's weird because apt removed sudo without a hitch and afterwards doas still worked normally. Are the modules only unloaded after a reboot?
from doas.
I'm not sure as I don't use Ubuntu. However, not having the modules unloaded out of memory until a reboot would seem typical.
I forget which system, maybe macOS, we found to get doas running we needed a /etc/pam,d/doas module file that contained the same lines as the sudo module would. For example, on my distro machine the /etc/pam.d/doas file contains the following four lines. You might need to make this text file and restart:
#%PAM-1.0
@include common-auth
@include common-account
@include common-session-noninteractive
from doas.
Just reinstalled sudo and rebooted. sudo is back and works, but doas still behaves the same. There might be something different going wrong. Here's my uname -a
output:
Linux pcname 5.4.0-62-generic #70-Ubuntu SMP Tue Jan 12 12:45:47 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
from doas.
PAM configuration is something which should be brought up with your distro's support forum or mailing list.
from doas.
Related Issues (20)
- how do you enable --with-timestamp HOT 1
- doas: Operation not permitted HOT 1
- Sudo askpass analog HOT 1
- Add -e known from sudo HOT 3
- persist is not effective if doas comes after /usr/bin/time. HOT 1
- [Git master] Vulnerable to privilege escalation using ioctls `TIOCSTI` and `TIOCLINUX` HOT 4
- doas: authentication failed on OPNsense HOT 10
- doas(1) Arguments like in sudo(8) HOT 5
- FreeBSD port: `stdout` of sub command got redirected to `stderr` HOT 5
- using 'nopass' still asking for password HOT 10
- doas: syntax error at line 1 HOT 8
- How can I make doas show symbols or asteriks when I type my password, since I want some feedback when typing my password? HOT 1
- `persist` option does not work HOT 1
- become POSIX compliant HOT 3
- `doas` hangs when doas command pipes into another doas command HOT 1
- Request for Pacstall Support HOT 1
- It doesn't seems to work in Solus HOT 1
- ´doas -u user´ results in "doas: Operation not permitted" HOT 5
- doas: syntax error at line 1 HOT 1
- How to uninstall/purge doas? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from doas.