Skip to content

Whoami returns root when invoked from script started with sudo #5

@Yethal

Description

@Yethal

When script s started with sudo, whoami returns root instead of the username of calling user. Replace with logname for the last two lines to work correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions