Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I TRIED USING cp/afs/umbc.edu/users/j/d/jdixon/pub/cs202 to copy files but it sa

ID: 3832092 • Letter: I

Question

I TRIED USING cp/afs/umbc.edu/users/j/d/jdixon/pub/cs202 to copy files but it says permission denied.What wrong am i doing ?Can some one correct me please.The files to be copied are given below.HELP NEEDED ASAP.

(The lab files (File.cpp, File.h, and skeleton lab5.cpp) are available on GL in the directory: /afs/umbc.edu/users/j/d/jdixon/pub/cs202

After you have copied the three files into your lab 3 directory, you should spend some time really looking at the File.h file. You are going to use this class to complete the code that exists in the lab5.cpp file.)

Explanation / Answer

It would be because of your current permissions it might say no one can move the file.

It would have set like other than root no one can move the file.

For this you have to chage the permission.you can change the owner of the file or add you to the group 'root' or allow everyone to execute the file.

For this chmod command is used.

chmod -R o+rwx /afs/umbc.edu/users/j/d/jdixon/pub/cs202

This will allow everyone to read,write and execute in that folder.

After this you can copy the files

cp source_path{file1,file2...} destination_path --->copies multipe files

cp /afs/umbc.edu/users/j/d/jdixon/pub/cs202/{File.cpp,File.h,lab5.cpp} /afs/umbc.edu/users/j/d/jdixon/pub/lab3