Skip to content
This repository has been archived by the owner on Feb 5, 2023. It is now read-only.

Automatic sudo prompt #13

Open
0x5c opened this issue Jun 18, 2021 · 0 comments
Open

Automatic sudo prompt #13

0x5c opened this issue Jun 18, 2021 · 0 comments

Comments

@0x5c
Copy link

0x5c commented Jun 18, 2021

When run as a normal user, vsv is not able to provide much useful information, and needs to be run as root to access most of the info.
I find myself using vsv very often, and forgetting to and subsequently needing to type sudo before the command, especially when only needing to see the current state of the services, becomes tiring. At least for me, "getting the state of the services" is not something that I manage to remember as needing elevated privileges.

It seems that this would be fairly easy to implement, as seen in xi (starting from line 29) from xtools.

A partial alternative would be showing an explanatory error message when run as a normal user. This would not solve the main problem in this issue, but it would help with the "why is it denied when not trying to change anything???" situation for new users, and maybe help with memorisation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant