The title says it all.
# python 2 or 3, linux only
# AUTHOR: Gribouillis for the python forum at www.daniweb.com
if pwd.getpwuid(os.getuid()).pw_name in grp.getgrnam('www-data').gr_mem:
print("current user is a member of group www-data")
so good looking
Isn't it about time forums rewarded their contributors?
Contribute to this discussion and earn rewards points that can be cashed out for dollars.