Coder Social home page Coder Social logo

Comments (3)

bitsgalore avatar bitsgalore commented on May 24, 2024

Additional info: updated everything to pkexec, but now for some reason the launcher script tapeimgr-pkexec is not extracted during pip install (even though it is in the tarball!).

from tapeimgr.

bitsgalore avatar bitsgalore commented on May 24, 2024

Missing pkexec fixed by:

1250313

Next problem:

  • Now initial dir is /root
  • Extraction freezes after 1st file; looks like something going wrong with the permissions (chown).

This happens because SUDO_UID, SUDO_GID and SUDO_USER are all undefined when running under pkexec!

Running pkexec with --user $USER at least results in a valid SUDO_USER BUT in that case we run as normal user and cannot access the tape device!

Apparently pkexec deliberately blocks most environment variables:

https://stackoverflow.com/questions/42960140/environment-variables-missing-when-executing-via-pkexec

Guymagr (which also uses pkexec) also uses /root as the starting dir.

A possible way to at least start tapeimgr with the user home dir as the default, would be to inject in a config file which is then read back.

from tapeimgr.

bitsgalore avatar bitsgalore commented on May 24, 2024

All works now.

from tapeimgr.

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.