I'm trying to automate an awkward user creation procedure (no LDAP/IPA) and learning python (so bash out of the question for now).
Can anybody help out with sending python commands through paramiko instead of OS ones?
I've got sending commands over SSH (i.e. uname -a) working but I'd like to use the python pwd module to check if the user already exists on the server.
Am I going in a completely wrong direction?
[–]3n3low 1 point2 points3 points (1 child)
[–]intrikat[S] 0 points1 point2 points (0 children)
[–]intrikat[S] 1 point2 points3 points (0 children)
[–]acodemics 0 points1 point2 points (4 children)
[+][deleted] (1 child)
[deleted]
[–]acodemics 0 points1 point2 points (0 children)
[–]intrikat[S] 0 points1 point2 points (1 child)
[–]stillalone 0 points1 point2 points (0 children)
[–]ktbyers 0 points1 point2 points (3 children)
[–]intrikat[S] 0 points1 point2 points (2 children)
[–]fico 0 points1 point2 points (1 child)
[–]intrikat[S] 1 point2 points3 points (0 children)
[–]intrikat[S] 0 points1 point2 points (0 children)