Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started