diff options
author | erkin <me@erkin.party> | 2023-06-09 17:19:00 +0300 |
---|---|---|
committer | erkin <me@erkin.party> | 2023-06-09 17:19:00 +0300 |
commit | fbcb22c1850c8371dffc2cf9dbda0fe83031df10 (patch) | |
tree | f8c60a155a3e1de42cee1968961a7d5254026bd9 /src/helpers | |
parent | 8efd9aefd136c53649221d5d903dd2d8c05e7111 (diff) | |
download | vyos-1x-fbcb22c1850c8371dffc2cf9dbda0fe83031df10.tar.gz vyos-1x-fbcb22c1850c8371dffc2cf9dbda0fe83031df10.zip |
T3472: Print warning when commit-confirm is run as regular user
Diffstat (limited to 'src/helpers')
-rwxr-xr-x | src/helpers/commit-confirm-notify.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/helpers/commit-confirm-notify.py b/src/helpers/commit-confirm-notify.py index eb7859ffa..8d7626c78 100755 --- a/src/helpers/commit-confirm-notify.py +++ b/src/helpers/commit-confirm-notify.py @@ -17,6 +17,7 @@ def notify(interval): if __name__ == "__main__": # Must be run as root to call wall(1) without a banner. if len(sys.argv) != 2 or os.getuid() != 0: + print('This script requires superuser privileges.', file=sys.stderr) exit(1) minutes = int(sys.argv[1]) # Drop the argument from the list so that the notification |