Hi I just complete my exam, question is, when task was asked me to write output to file, no permission to write to file as student, and I executed as root. but I worry if that should not be the way. Do you have an idea?
Hi, switching to root is not a problem. I gave my exam recently and did the samething.
Normal user has no write permission to those files.
@Vasu P thanks Vasu
Wish you all the best
Hi Guys, will sudo su - do the work?
Yes, sudo su works
so, did you do a sudo -i before every task ?
Most of the tasks doesn’t require sudo, for the tasks like copy logs to a file or copy command to a file for these one I switched to root.
But it is okay to execute all the commands as a root user.