返回顶部
摘要: import pwd import grp user='nginx' group='nginx' usernames = [x[0] for x in pwd.getpwall()] if user in usernames: print(pwd.getpwnam(user).pw_uid) gro 阅读全文
posted @ 2023-05-05 15:56 十方央丶 阅读(106) 评论(0) 推荐(0)