Question
a.
chmod u+s filex ; chmod go_rw datfile
b.
chmod 4711 filex ; chmod go_rw datfile
c.
chmod 4711 datfile ; chmod go_rw filex
d.
Both (a) and (b)
Posted under UNIX
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. If one doesn't want anyone else to read or write to a file named datfile, except through a program in a file filex , then he may use
Similar Questions
Discover Related MCQs
Q. Writing a C program that accepts input from keyboard, rather than from a file is advantageous because
View solution
Q. Which of the following string functions can be used to find the last occurrence of a given character in a given string?
View solution
Q. Consider the program:
main ( )
{
printf("He arose a victor from\n");
system ("date") ;
printf("the dark domain");
}
If a.out is the executable code corresponding to the above source code, then the command a.out > out f
View solution
Q. The default permission bits of a file when it is created for the first time, is controlled by
View solution
Q. Let x.c be a C source code. The command cc x.c > y
View solution
Q. A file x is created with the following contents
echo today is:
date
If you type x.then
View solution
Q. Shell script is preferable to other forms of programming because it
View solution
Q. Choose the incorrect statement.
View solution
Q. Files that store data in the same format as used in program are called
View solution
Q. To allow only one user to work with a particular file at a particular time, one has to use
View solution
Q. Which of the following remarks about realloc are true?
View solution
Q. The differences between malloc( ) and calloc() are:
View solution
Q. The file that stores an integer as a sequence of characters is a
View solution
Q. If cat x. prints garbage. then x is probably a
View solution
Q. Which of the following file names can be found in more than one directory?
View solution
Q. /bin
View solution
Q. Which of the following information is not present in an i-node ?
View solution
Q. The system identifies a file by its
View solution
Q. The system identifies the end of a file by the
View solution
Q. The command line argument a.out x 'a b' "c d"
View solution
Suggested Topics
Are you eager to expand your knowledge beyond UNIX? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!