Skip to content

After sudo su, user executing the command must be root #6

Open

Description

@komatom

Issue here is that if you sudo su, and run some commands after that, they are logged as the initial user before the sudo su command.

for example:

user1 executing sudo su
user1 executing: ls /root

I think it must be

user1 executing sudo su
root executing: ls /root

Activity

  1. iskenyildiz commented on Sep 29, 2025

    @iskenyildiz

    i don't think it should work like that. The original user should be visible at all times.

  2. matthill commented on Jan 29, 2026

    @matthill
    Contributor

    I agree, I think you want the original user logged, but perhaps some additional flag that they are executing with root privileges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions