mirror of
https://github.com/DominicBreuker/pspy.git
synced 2026-11-06 18:21:51 +00:00
build proper dockerized example
This commit is contained in:
1 parent
a31224ff21
commit
c56430d8c4
13 files changed
+111
-32
No files matched your search
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/python
|
||||
import string
|
||||
import random
|
||||
from subprocess import call
|
||||
|
||||
new_password = ''.join(random.SystemRandom()
|
||||
.choice(string.ascii_uppercase + string.digits)
|
||||
for _ in range(16))
|
||||
|
||||
call("/bin/echo -e \"{}\\n{}\" | passwd myuser"
|
||||
.format(new_password, new_password), shell=True)
|
||||
|
||||
Reference in new issue
Block a user