Giter Site home page Giter Site logo

doas unresponsive after reboot about doas HOT 5 CLOSED

slicer69 avatar slicer69 commented on August 16, 2024
doas unresponsive after reboot

from doas.

Comments (5)

slicer69 avatar slicer69 commented on August 16, 2024

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.

Mithrandir2k18 avatar Mithrandir2k18 commented on August 16, 2024

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.

slicer69 avatar slicer69 commented on August 16, 2024

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.

Mithrandir2k18 avatar Mithrandir2k18 commented on August 16, 2024

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.

slicer69 avatar slicer69 commented on August 16, 2024

PAM configuration is something which should be brought up with your distro's support forum or mailing list.

from doas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.