Assume that a file’s permissions give you read and write
access. What operations can you perform
on the file if it is in a directory which has “r”(read)
only process? What operations can you perform
on the file if it is in a directory which has “x”(execute)
only access?



Assume that a file’s permissions give you read and write access. What operations can you perform..

Answer / l.nakkeeran.

a) If the Directory have only read permission and the file
inside the directory contains rw permission then we cant do
nothing.We never enter in to the directory.To enter into the
directory we need execute permission for directory
first.Then only we can access the file inside the directory.

b) If the directory have the execute permission then we
enter in to the directory, but we cant view/list the files
in the directory.

Is This Answer Correct ?    10 Yes 2 No

Post New Answer

More Unix Commands Interview Questions

How to display a file name which has zero bytes in size.

11 Answers   Polaris,


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

0 Answers  


What does the command ' $who | sort –logfile > newfile' do?

0 Answers  


How do you find path of a directory? Give its syntax.

7 Answers  


what do you understand by 'building block primitive'?

0 Answers   Infosys,






How to get a particular string as your prompt ? Give syntax of that command?

3 Answers  


Which command will you use to change the permissions on file?

7 Answers  


solaris Run level?

3 Answers   Wipro,


What is the function of grep command in unix?

0 Answers  


What is the search command in unix?

0 Answers  


what is the cmd to display the last exit status in UNIX?

5 Answers   MEIT, Syntel,


What is the difference between Shell Programming and Shell scripting?

10 Answers   HCL, TCS, Wipro,


Categories