nerdexam
Oracle

1Z0-821 · Question #156

User jack makes use of the bash shell; his home directory is/export/home/jack. What is the correct setting of umask, and where should it be set, to allow jack to create a shell script using the vi…

The correct answer is A. It is not possible to make a script executable without using the chmod command. The permissions would not create an executable file anyway so chmod would be required, not

Administering User Accounts

Question

User jack makes use of the bash shell; his home directory is/export/home/jack. What is the correct setting of umask, and where should it be set, to allow jack to create a shell script using the vi editor, that is executable by default?

Options

  • AIt is not possible to make a script executable without using the chmod command.
  • Bumask value of 0002 set in /etc/profile
  • Cumask value of 0002 set in /export/home/jack/.bashrc
  • Dumask value of 0722 set in /etc/profile
  • Eumask value of 0722 set In /export/home/jack/.bashrc

How the community answered

(24 responses)
  • A
    71% (17)
  • C
    4% (1)
  • D
    17% (4)
  • E
    8% (2)

Explanation

The permissions would not create an executable file anyway so chmod would be required, not

Topics

#umask#file permissions#executable permissions#shell scripts

Community Discussion

No community discussion yet for this question.

Full 1Z0-821 Practice