Skip to content

use su -s instead of -c for getting interactive shell#116

Open
rhjdvsgsgks wants to merge 1 commit into
cswl:v8from
rhjdvsgsgks:patch-2
Open

use su -s instead of -c for getting interactive shell#116
rhjdvsgsgks wants to merge 1 commit into
cswl:v8from
rhjdvsgsgks:patch-2

Conversation

@rhjdvsgsgks

Copy link
Copy Markdown

@yujincheng08

Copy link
Copy Markdown

@rhjdvsgsgks

Copy link
Copy Markdown
Author

You should fix in https://github.com/termux/termux-packages/blob/master/packages/tsu/magisk-su.patch

once you finished review of it. i will update the patch at termux

@yujincheng08

Copy link
Copy Markdown

Well, still wrong. It breaks sudo. For sudo, you should still use -pc; for su, you should use -ps.

Comment thread shell/tsu.sh
@@ -315,12 +315,13 @@ else
# Let's use the system toybox/toolbox for now
if [[ -n "$ENVIRONMENT_PRESERVE" ]]; then
su_args+=("--preserve-environment")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Useless when you use -p

robertkirkman added a commit to robertkirkman/termux-packages that referenced this pull request Jun 21, 2025
- Closes termux#24820

- Closes termux#18383

- Closes termux#8184

- agnostic-apollo's `sudo` replaces this package:

https://github.com/termux/termux-packages/blob/d6015240e4943847544217c924b7fb09bb72a361/packages/sudo/build.sh#L13

- This software is unfortunately not maintained for a while and began to accumulate some issues. The most important issues are already fixed or not present in the `sudo` package.

- More information:
  - termux#24684
  - cswl/tsu#116
  - termux/termux-app#4612
  - topjohnwu/Magisk#9003
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

Successfully merging this pull request may close these issues.

3 participants