Giter VIP home page Giter VIP logo

Comments (6)

D4rCM4rC avatar D4rCM4rC commented on May 2, 2024 1

This was kind of a dumb mistake: I used chmod -r 755 instead of chmod -R 755.
Strangely, it still worked on my device so I didn't notice it.

Should be fixed in the just released v0.8

from ssh.

ariel- avatar ariel- commented on May 2, 2024

Well, apparently the distributed binaries lack the required execute bit. DIY in case anyone has the same problem:
# chmod u+x /sbin/.magisk/img/ssh/usr/bin/rsync /sbin/.magisk/img/ssh/usr/bin/raw/*

Leaving the issue open incase this is upstream problem instead local

from ssh.

gu5t3r avatar gu5t3r commented on May 2, 2024

SSHD is not starting/running because execute permission is not set for files in raw directory

Missing in config.sh after copying files and making links:
set_perm_recursive $MODPATH/usr/bin/raw 0 0 0755 0755
config_fixed.txt

from ssh.

ariel- avatar ariel- commented on May 2, 2024

Shouldn't the recursive part be well, recursing directories and setting permissions on $MODPATH and subdirs tough?

from ssh.

gu5t3r avatar gu5t3r commented on May 2, 2024

Shouldn't the recursive part be well, recursing directories and setting permissions on $MODPATH and subdirs tough?

set_perm_recursive $MODPATH 0 0 0755 0644
command is run before files are moved and links created. also, 644 is rw-r--r-- thus no execute permission is set on binary files. there is no need to set execute permission on all files in $MODPATH, just the raw directory and openssh.init script

from ssh.

Alex2357 avatar Alex2357 commented on May 2, 2024

This was kind of a dumb mistake: I used chmod -r 755 instead of chmod -R 755.
Strangely, it still worked on my device so I didn't notice it.

Should be fixed in the just released v0.8

I'm new to magisk, I'm on latest Magisk-v20.3.zip & using SSH for Magisk v0.10 and still have the problem sshd is not starting on boot.
It works fine if I start it

/sbin/.magisk/modules/ssh/opensshd.init start                                                                                 
starting /sbin/.magisk/modules/ssh/usr/bin/sshd... done.

after I did this

/sbin/.magisk/modules/ssh # chmod -R 755 .

I was able to start manually

/ # ./sbin/.magisk/modules/ssh/service.sh
starting //sbin/.magisk/modules/ssh/usr/bin/sshd... done.

But it still is not starting on boot automatically.

from ssh.

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.