Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. Use access, creat, chmod and unlink as follows: Pass the name of a file to your program. Test whether or not it exists. Report

image text in transcribed

2. Use access, creat, chmod and unlink as follows: Pass the name of a file to your program. Test whether or not it exists. Report on the result. If it doesn't exist, create it and test again to make sure that your file creation was successful. Use the chmod function to turn on rwx for groups and other, but turn all 3 off for yourself using the symbolic constants listed under chmod's man page or on page 295 of Kerrisk. Test using access whether or not you are allow to read, then write and then execute the file. Your tests should report back an answer that you can't. Using chmod again, turn on read and execute for yourself. Repeat the tests for read, write and execute using access again. Summarize the results? 2. Use access, creat, chmod and unlink as follows: Pass the name of a file to your program. Test whether or not it exists. Report on the result. If it doesn't exist, create it and test again to make sure that your file creation was successful. Use the chmod function to turn on rwx for groups and other, but turn all 3 off for yourself using the symbolic constants listed under chmod's man page or on page 295 of Kerrisk. Test using access whether or not you are allow to read, then write and then execute the file. Your tests should report back an answer that you can't. Using chmod again, turn on read and execute for yourself. Repeat the tests for read, write and execute using access again. Summarize the results

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

OpenStack Trove

Authors: Amrith Kumar, Douglas Shelley

1st Edition

1484212215, 9781484212219

More Books

Students also viewed these Databases questions

Question

What is the difference between Needs and GAP Analyses?

Answered: 1 week ago

Question

What are ERP suites? Are HCMSs part of ERPs?

Answered: 1 week ago