Giter Site home page Giter Site logo

init: Permission denied about nixos-in-place HOT 4 OPEN

jeaye avatar jeaye commented on May 23, 2024
init: Permission denied

from nixos-in-place.

Comments (4)

nh2 avatar nh2 commented on May 23, 2024

Turns out this was because my /mnt was mounted with the noexec (is it possible that this is the default in Ubuntu 16.04?).

I solved it with mount -o remount,exec /tmp.

Ideally ./install would detect this.

from nixos-in-place.

nh2 avatar nh2 commented on May 23, 2024

is it possible that this is the default in Ubuntu 16.04?

Looks like the answer is no, and that this is just some "security improvement" shipped by default by my server hoster.

from nixos-in-place.

jeaye avatar jeaye commented on May 23, 2024

Awesome job looking into this and I appreciate you reporting your results. I don't think remounting /tmp is something that nixos-in-place should do, especially since it may not be a separate partition or mount in the first place.

I do think it's good having this ticket to will help anyone who's searching for the issue. Are you good with closing this? Did you NixOS install go through smoothly?

from nixos-in-place.

nh2 avatar nh2 commented on May 23, 2024

I agree that it's not the script's job to remount /tmp.

I wonder though if it could check whether scripts from /tmp can be executed at the start, because the error can be so confusing and many hosters where you'd need nixos-in-place seem to like to do this. E.g. to place a bash script with no contents in the temporary dir it creates and execute it, and echo "Could not execute from /tmp, please check that it's not mounted noexec" if that fails.

from nixos-in-place.

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.