April 2019
Intermediate to advanced
372 pages
12h 47m
English
Working with PowerShell Core in this context might not feel natural, but, again, PowerShell makes it possible to work a bit more easily with data input and variables. Its more verbose style might not be what Linux administrators are accustomed to, but there are clear benefits when it comes to readability.
In this recipe, you created a user and added him to a group. The way that credentials were handled is far from ideal, demonstrating that there is still a lot to be done with PowerShell Core on Linux. Both the Python command to generate a password hash as well as using the passwd command used the plaintext password of your user. This is never a good idea.
Read now
Unlock full access