Workbook Questions 3.5.1 + Lab 3 File Permission quiz Flashcards
- Identify the two choices that describes a directory in Unix.
A. The current directory is represented as a single dot .
B. A directory is a file that contains a list of files and other directories
C. The current directory is represented as two dots ..
A, B
- To run a shell script a user must have a minimum of
Read and execute permission
To run a binary file the user must have a minimum of
Execute permission
Minimum permission required for a directory, when deleting a file from the directory
Write and execute
Minimum permission for a file to be copied
Read
T/F - To delete a file, a user must have write and execute permission in the directory, but does not need any permission for the file itself.
True
User PrjMgr copies the file Plan.Q01 to directory /archive/Mgt/Q01 using the following command:
cp /home/PrjMgr/Plan.Q01 /archive/Mgt/Q01/
What are the minimum permissions required for the directories PrjMgr and Mgt
source directory x, for target directory w and x
T/F - To move a file, a user must have appropriate permission in the source and target directories, but does not need any permission for the file itself.
True
user1 moves the file budget.2015 using the following command:
mv /home/user1/budget.2015 /home/accounts/
The minimum file permission required for source and target directories are:
Write and execute
Minimum permission for a file to be copied
Read
- What is the permission, in octal mode, of the file MySQL.log, given the file listing:
-rwxrw–w- 2 maotse students 15 Jan 25 12:37 MySQL.log
762
- Given the file permission -rw-rw-r– for a file report.draft in current directory, identify the chmod com mand that adds execute permissions for owner and removes read permission from others. Permission for group
should remain unchanged.
chmod 760 report.draft