Skip to content

Requires passwordless sudo #8

@darkone23

Description

@darkone23

The script uses su - $owner everywhere to run commands as the result of whoami.
This results in tty tickets if you don't have passwordless sudo.

Why not just run the commands instead?

For example,

Instead of:

have_host=$(su - $owner -c "ssh-keygen -F $keygen_name -f $file")

Why not just:

have_host=$(ssh-keygen -F $keygen_name -f $file)

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