Skip to content

check password linux user

I am on debian 9. I have a problem to check the password of a linux user in my scripts. I realized that the different linux tools for creating and modifying a user password gave results of different pattern in /etc/shadow To create a user I have in /etc/shadow In another script I want check the password input…

Count maximum amout of parent processes in Linux

Here is my code. But teacher said it’s incorrect and something is wrong in if (pid == 0) condition body. Help me out please. Thank you! Answer fork() returns 0 for child process, >0 for parent process, and a negative value if there were errors. Your child process finishes immediately, so actually you…

Split string in xml

I have xml file which contains data . I want to split only FATURANO Like that 6-R-7 and 4825 And this “4825” should have different name. I Need convert xml data like that but if u answer me only with first question how to split string correctly i will do other transpormation Answer With single xml…