Skip to content
Snippets Groups Projects
Commit a52ba485 authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Capture who run the script

parent c9b0f6d5
No related branches found
No related tags found
1 merge request!146Feat group manager
#!/usr/bin/env python3
import argparse
import grp
import os
import pwd
import sys
......@@ -34,6 +35,8 @@ if __name__ == "__main__":
)
args = parser.parse_args()
executed_by = os.getenv("USER")
exist_users = []
miss = False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment