Give a command line for setting default access mode so that you have read, write, and execute privileges, your group has read and execute permissions, and all others would have no permission on any file that you create. How would you test it to be sure it works correctly?

What will be an ideal response?


umask 027
I can test the working of the above command by creating a new executable file or a directory and then displaying the long listing for the newly created file (by using the ls -l command) in order to view permissions on the file. The permissions on text files will be read, write for user, read for group, and none for others because the default permission for text files are 666.

Computer Science & Information Technology

You might also like to view...

Case-Based Critical Thinking QuestionsCase 9-1Your small business has started to experience success. You have had a Web presence for a long time, but you have begun to think you might benefit from converting to a database-driven site. Therefore, you hire a small business consultant to give you some counsel. You want a quick definition of a server behavior from your consultant. Which of the following does he NOT tell you that server behaviors can do, as part of his answer?

A. send data to a database B. turn data into plain HTML that can be displayed in a browser as part of a Web page C. retrieve data from a database D. use PHP when addressing databases

Computer Science & Information Technology

Given an interest rate, the number of years, and a planned down payment, you would use ________ to find the highest cost of a house you can afford while maintaining the monthly payment

A) a one-variable data table B) Goal Seek C) Solver D) a two-variable data table

Computer Science & Information Technology

Branching and looping routines contain conditions that are either true or false.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

When setting up a mail merge document to prepare a listing of member names, phone numbers, and other contact information, select ____ as the type of document.

A. Directory B. Envelopes C. Labels D. Letters

Computer Science & Information Technology