Code Monkey home page Code Monkey logo

Comments (4)

DavidBuchanan314 avatar DavidBuchanan314 commented on August 24, 2024 1

RE: authentication, could we just put this in our init script:

if [ ! -f /home/root/.ssh/authorized_keys ]; then 
  sed s/root:.:/root:xGVw8H4GqkKg6:/ /etc/shadow > /tmp/shadow
  chmod 400 /tmp/shadow
  mount --bind /tmp/shadow /etc/shadow
fi

i.e. if authorized_keys does not exist, set the root password to alpine via bind mount

from webos-homebrew-channel.

Informatic avatar Informatic commented on August 24, 2024

That makes sense.

If we put that shadowfile somewhere persistent (/var/luna/preferences/webosbrew_shadow?) we could also use it as a go-to solution for remote access for people inexperienced with ssh public key authentication. passwd should work as is with this setup, right?

Update: just realized this (persistence) is not a great idea, in case someone does a software update, as we don't have any guarantees regarding passwd/shadow not changing.

from webos-homebrew-channel.

Informatic avatar Informatic commented on August 24, 2024

Initial dropbear integration is finished in 957d29f - UI is working, tools/build-dropbear.sh can be used to build a working customized dropbear sshd binary to be bundled with the application. Not sure how to distribute this - should we just commit the binary into the repo and call it a day?

Fully static builds seemed to fail to link when built with meta-lg-webos-ndk - not sure how to go about this, I don't have much practice with general subject of crosscompilation.

from webos-homebrew-channel.

mariotaku avatar mariotaku commented on August 24, 2024

Fully static build may not work - IIRC the NDK I built doen't come with any archive files. Thus no way to static link with libc. But I think if crypto libraries could be statically linked, then it's good enough.

from webos-homebrew-channel.

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.