warpdotdev / warpdotdev/warp

"sudo su -`" hangs in ssh session

Open
#4,551 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:ssh bug ready-to-implement triaged
Dominant language
Rust
Stars
65.1k
Forks
5.6k
PR merge metrics
PR metrics pending

Description

Discord username (optional)

No response

Describe the bug

Recently i discovered that doing: sudo su - while in an ssh session on a remote host, the session just hangs. The only way to get out of it is to hit CTRL-D and you end up back at the command line that you sudo'ed from. This seems like a recent problem as I was able to do this a few weeks ago.

Note this is using Warp on a Mac connecting through ssh to a linux (centos) box.
I've also tried putting sudo and ssh in the blocklist for Subshells

To reproduce
  1. ssh user@remotehost
  2. sudo su -
    things hang here
Expected behavior

Should end up in a root shell

Screenshots

No response

Operating system

MacOS

Operating system and version

14.1.1

Shell Version

GNU bash, version 4.2.46(2)-release (x86_64-redhat-linux-gnu)

Current Warp version

v0.2024.03.05.08.02.stable_01

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

About 2-4 weeks ago

Additional context

No response

Does this block you from using Warp daily?

Yes, this issue prevents me from using Warp daily.

Is this a Warp specific issue? (i.e. does it happen in Terminal, iTerm, Kitty, etc.)

Yes, this I confirmed this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the listed reproduction steps in a Warp SSH session and compare sudo su - with other terminals, where it reportedly works. Trace the shell-session handling involved in the hang; done means the command opens a root shell without requiring Ctrl-D.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.