HF RL Explorer

Task: Find Original User Through Multiple sudo and su Commands

Task: Find Original User Through Multiple sudo and su Commands: a task in Terminal-Lego-15k (Harbor dataset). When running a script via sudo or su , you need to find the original (real) user who initiated the command chain. This should work correctly regardless of multiple nested sudo or su…

The task

When running a script via `sudo` or `su`, you need to find the original (real) user who initiated the command chain. This should work correctly regardless of multiple nested `sudo` or `su` commands, including the common pattern `sudo su -`.

Part of PrimeIntellect/Terminal-Lego-15k.