Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install without sudo #636

Open
keab opened this issue Feb 15, 2025 · 2 comments
Open

Install without sudo #636

keab opened this issue Feb 15, 2025 · 2 comments

Comments

@keab
Copy link

keab commented Feb 15, 2025

Is your feature request related to a problem? Please describe

I have tried to install on a Magisk-rooted Samsung S9 with linuxdeploy Debian, and my issue is that it's not possible to run commands with sudo - there is some security function killing every such attempt. I can SSH in as root and do any packet installation, but kiauh doesn't allow installation as root.

Describe the solution you'd like

I understand this is a very specific situation, but if there is a simple way to split the installation into a root part and a non-sudo part, that would have been useful.

Describe alternatives you've considered

The obvious and ideal way is to get a more 'complete' rooting of the device, but it's not my expertise and I have not been successful

Additional information

No response

@dw-0
Copy link
Owner

dw-0 commented Feb 15, 2025

I understand this is a very specific situation, but if there is a simple way to split the installation into a root part and a non-sudo part, that would have been useful.

There is no simple way of doing this right now, as the whole logic is targeting non-root execution and using sudo where sudo is required. It would require a rework of a lot of different places i am currently not planning. Also it is very hard to reliably support niche use cases like that.

You could of course modify kiauh yourself, and remove the root check at the start of the application. Then remove all sudo keywords from the commands that will be executed during the actions you try to execute.

@keab
Copy link
Author

keab commented Feb 15, 2025

Thanks for responding!
I assume the root check is there for a reason. What do I risk if following your suggestion?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants