Skip to content

'yum update --changelog' stalled in 'vuls scan'. if ssh user is not 'root'. #150

Closed
@r-hirakawa

Description

@r-hirakawa

If user is not 'root' in ssh connection.
'yum update --changelog' looks like stalled by waiting user input 'Is this ok [y/d/N]: ',
Because 'echo N | ' is not concatenated for command string in 'getAllChangelog' function.

scan/redhat.go

579:    command := ""
580:    if o.ServerInfo.User == "root" {
581:        command = "echo N | "
582:    }

[question]
Is vuls recommended to use 'root' user for ssh connection ?
I think 'root' user check is unnecessary.
I want to use administrator (not 'root') user for security reasons.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions