Answered step by step
Verified Expert Solution
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
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
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