import subprocess
import socket
import pwd
+import grp
tuerSock = "/run/tuer.sock"
return True
def whocmd(c):
- for p in filter(lambda x:x.pw_shell=="/opt/tuer/tyshell",pwd.getpwall()):
+ for n in grp.getgrnam("tuer").gr_mem:
+ p = pwd.getpwnam(n)
print (p.pw_name, " - ", p.pw_gecos)
commands = {