Add unused UID finder script
This commit is contained in:
parent
789cdf5365
commit
b120bb2d49
1 changed files with 7 additions and 0 deletions
7
unusedid
Executable file
7
unusedid
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
import subprocess
|
||||
|
||||
s = str(subprocess.check_output(['getent', 'passwd']))
|
||||
|
||||
print([i for i in range(1000, 1100) if str(i) not in s])
|
Loading…
Reference in a new issue