you are linux help disk technician and just got a phone call from chris baxter,
ID: 3889997 • Letter: Y
Question
you are linux help disk technician and just got a phone call from chris baxter, a new employee, who is having trouble running shell scripts.he tells you he has replaced the previous employee aaron cole,but he can't run any of aaron scripts. you check Chris user account and discover he's a memeber of the division group. after using the ls -1 command in the script directory you see the following information
ls -1
-rwxr--r--1 cole division 0 2009 - 02 -10 04:59 bank
-rwxr--r--1 cole division 0 2010 - 01 -04 04:59 database
-rwxr--r--1 cole division 0 2010 - 09 - 17 04:59 project
-rwxr--r--1 cole division 0 2011 - 07 - 23 04:59 school
why can't chris run the scripts listed in this output? what command should you use to give chris the permission needed to run them.
Explanation / Answer
Chris can't tun these files because Chris is not the owner of these files . and Chris is also not in the group of accesibility.
-rwxr--r--1 cole division 0 2009 - 02 -10 04:59 bank
-rwxr--r--1 -> this the mode
cole -> this is the owner
divisio -> this is the group
0 -> file size
2009 - 02 -10 04:59 -> last modified time
bank -> filename
Now he can access or run them by using chmod command.
chmod u+rwx bank
Here u denoted user and r to have the permission read , w to write and x to execute the file named bank .
in same way he should use
chmod u+rwx database
chmod u+rwx project
chmod u+rwx school
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.