Question: I have to make a program in bash here what it needs to do: 1. Read a file named user.txt which contains all the usernames

I have to make a program in bash
here what it needs to do:
1. Read a file named user.txt
which contains all the usernames (one by line)
sab
mark
gilian
ethan
2. I have to create those user with the cmd useradd
3.Each user has to have their own repository and their own password
4. Installing program
(that's the part I got lost)
4.1 They asked me to compile this program and to execute it
#include stdio.h>

int main() {

char nom [15];

printf(" Entrez votre nom: ");

fgets (nom, 15, stdin);

printf("InBonjour %S", nom);

return 0;

}

4.2 After that I need copy the executable to a repository that's part of the PATH of the previous 4 users
4.3 I need to modify the permission of the executable so that only those 4 user can execute the file

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!