Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check whether the user is in group wheel before running any sudo command #985

Open
skewballfox opened this issue Nov 17, 2024 · 1 comment
Labels
C-feature request New feature request

Comments

@skewballfox
Copy link

skewballfox commented Nov 17, 2024

I want to suggest some general feature

On linux, Topgrade should check whether the current user is in the wheel group prior to prompting for the sudo password. If they aren't, don't prompt them for the sudo password (since they don't have one), and don't run any sudo dependent upgrade step

@skewballfox skewballfox added the C-feature request New feature request label Nov 17, 2024
@SteveLauC
Copy link
Member

should check whether the current user is in the wheel group prior to prompting for the sudo password

Makes sense

IIRC, redhat distros like Fedora use group wheel, but Debian-based distros use group sudo, not sure about the cases in other distros.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature request New feature request
Projects
None yet
Development

No branches or pull requests

2 participants