Disclaimer:
Educational Use Only:
The website links provided are to be used strictly for educational and knowledge-gaining purposes only.
No Misuse:
Do not misuse the links or the information contained therein for any commercial, illegal, or unethical activities.
Respect for Websites and Businesses:
Respect the intellectual property and business interests of the websites and their owners. Do not attempt to alter, copy, or redistribute content without proper authorization.
Acknowledge Value of Knowledge:
Recognize and value the knowledge and resources shared by these websites. Use the information responsibly and ethically.
No Endorsement:
The provision of these links does not imply endorsement of the linked sites, their content, or their products and services. Users are responsible for evaluating the suitability and accuracy of the information.
User Responsibility:
By accessing these links, you agree to use the information at your own risk and to comply with all applicable laws and website terms of use.
- Which command is used in Unix/Linux to change the permissions of a file or directory?
a. chmod
b. chown
c. chgrp
d. ls
Answer: a. chmod
sanfoundry+2 - What is the main purpose of the chmod command?
a. Change file permissions
b. Copy files
c. Move directories
d. Delete files
Answer: a. Change file permissions
w3schools+1 - What does the permission “r” stand for in chmod?
a. Read
b. Run
c. Rename
d. Remove
Answer: a. Read
sanfoundry+1 - Which permission is represented by “w” in chmod?
a. Write
b. Watch
c. Wait
d. Wrap
Answer: a. Write
exam.pscnotes+1 - What does the “x” permission allow?
a. Execute
b. Exit
c. Extract
d. Export
Answer: a. Execute
sanfoundry+1 - Which option allows changing permissions recursively for directories and their contents with chmod?
a. -R
b. -v
c. -l
d. -f
Answer: a. -R
w3schools - In the command “chmod 755 filename”, what does the number 7 represent for the owner?
a. Read, write, execute
b. Read only
c. Write only
d. Execute only
Answer: a. Read, write, execute
stackoverflow+1 - What does the 5 mean in “chmod 755 filename” for the group?
a. Read and execute
b. Write and execute
c. Read and write
d. Read only
Answer: a. Read and execute
stackoverflow+1 - What permission does “chmod 644 file.txt” give to others?
a. Read only
b. Write only
c. Execute only
d. Read and write
Answer: a. Read only
labex+1 - Which of these is the octal value for read, write, and execute?
a. 7
b. 5
c. 4
d. 2
Answer: a. 7
exam.pscnotes+1 - What is the octal value for read and write permissions only?
a. 6
b. 7
c. 5
d. 4
Answer: a. 6
sanfoundry+1 - What does “chmod u+x file” do?
a. Adds execute permission to user
b. Removes execute for user
c. Adds execute for group
d. Removes write for user
Answer: a. Adds execute permission to user
labex+1 - Which symbolic letter represents the group in chmod?
a. g
b. o
c. u
d. a
Answer: a. g
exam.pscnotes+1 - Which letter in symbolic notation represents others?
a. o
b. u
c. g
d. a
Answer: a. o
sanfoundry+1 - To remove write permissions for others, which chmod command is correct?
a. chmod o-w file
b. chmod ow file
c. chmod rw file
d. chmod u-w file
Answer: a. chmod o-w file
exam.pscnotes - What is the meaning of “chmod u=rwx,g=rx,o=r file”?
a. User has all, group has read and execute, others have read
b. User has none, group all, others all
c. All have all permissions
d. User read only
Answer: a. User has all, group has read and execute, others have read
sanfoundry+1 - “chmod a+r file” gives read permission to whom?
a. All users
b. Only owner
c. Only root
d. Only group
Answer: a. All users
exam.pscnotes - In numeric mode, what does 0 mean?
a. No permissions
b. Execute only
c. Read only
d. Write only
Answer: a. No permissions
stackoverflow+1 - What does “chmod 777 file” do?
a. Full permissions for everyone
b. No permissions for all
c. Full permissions for user only
d. Read for all
Answer: a. Full permissions for everyone
stackoverflow+1 - Is it secure to set permissions to 777 on a web server file?
a. No
b. Yes
c. Sometimes
d. Never
Answer: a. No
stackoverflow - Which chmod notation assigns read and execute only to all categories?
a. chmod 555 file
b. chmod 777 file
c. chmod 664 file
d. chmod 755 file
Answer: a. chmod 555 file
sanfoundry+1 - Which of the following is true about symbolic mode in chmod?
a. Uses u, g, o, a, +, -, =
b. Uses only numbers
c. Changes ownership
d. Deletes a file
Answer: a. Uses u, g, o, a, +, -, =
exam.pscnotes+1 - What does “chmod g+w file” do?
a. Grants write permission to group
b. Grants write to user
c. Removes write from group
d. Adds write to all
Answer: a. Grants write permission to group
exam.pscnotes - Which command removes execute permission for all users?
a. chmod a-x file
b. chmod a+x file
c. chmod o-x file
d. chmod u+x file
Answer: a. chmod a-x file
exam.pscnotes - What does “chmod o=r file” achieve?
a. Others can only read
b. Others can only write
c. Others can only execute
d. Others have all permissions
Answer: a. Others can only read
sanfoundry+1 - Which option makes chmod show changes for each processed file?
a. -v
b. -R
c. -f
d. -x
Answer: a. -v
w3schools - Which command sets permissions to rwxr-xr–?
a. chmod 754 file
b. chmod 644 file
c. chmod 755 file
d. chmod 777 file
Answer: a. chmod 754 file
sanfoundry - In chmod, what does “a” stand for in a symbolic context?
a. All users
b. Admin only
c. Anonymous
d. Automate
Answer: a. All users
sanfoundry+1 - What would “chmod u-x file” do?
a. Remove execute for user
b. Add execute for user
c. Remove execute for all
d. Remove write for user
Answer: a. Remove execute for user
exam.pscnotes - Which of the following best describes the effect of using chmod with the -R flag?
a. Recursively change permissions for directories and files within
b. Rename files
c. Remove directories
d. Refresh permissions
Answer: a. Recursively change permissions for directories and files within
w3schools - What is the default umask for most Linux distributions that affects default permissions?
a. 022
b. 777
c. 000
d. 644
Answer: a. 022
sanfoundry - For a file with rw-r–r–, what is the numeric (octal) notation?
a. 644
b. 755
c. 777
d. 666
Answer: a. 644
labex+1 - Which permission would allow a script to be run as a program?
a. Execute (x)
b. Write (w)
c. Read (r)
d. None
Answer: a. Execute (x)
geeksforgeeks+1 - The symbolic notation for giving the group and others only read permission is?
a. chmod go=r file
b. chmod go+x file
c. chmod go+=x file
d. chmod go+w file
Answer: a. chmod go=r file
exam.pscnotes - What does “chmod 600 file” permit?
a. Owner read/write, none for others
b. All users read/write
c. Owner execute only
d. Group and others execute only
Answer: a. Owner read/write, none for others
sanfoundry+1 - What is the result of chmod 444 file?
a. Read only for all
b. No permission
c. Write only for all
d. Execute only for all
Answer: a. Read only for all
exam.pscnotes+1 - How many categories of users can permissions be set for using chmod?
a. Three
b. Two
c. One
d. Four
Answer: a. Three
sanfoundry+1 - What would the command “chmod g+r file” do?
a. Grants read permission to group
b. Grants read to owner only
c. Grants execute to group only
d. Remove read from group
Answer: a. Grants read permission to group
labex+1 - Which combination removes all permissions from others?
a. chmod o= file
b. chmod o-rwx file
c. chmod o-x file
d. chmod o-w file
Answer: a. chmod o= file
exam.pscnotes - If a command is issued as “chmod 700 script.sh”, who can access it?
a. Owner only
b. Group only
c. Others only
d. Owner and group
Answer: a. Owner only
sanfoundry+1 - What does “chmod –reference=otherfile file” do?
a. Applies permissions of otherfile to file
b. Removes all permissions
c. Duplicates the file
d. Changes ownership
Answer: a. Applies permissions of otherfile to file
w3schools+1 - What command is used to add execute permission to everyone?
a. chmod a+x file
b. chmod o+x file
c. chmod u+x file
d. chmod a-w file
Answer: a. chmod a+x file
exam.pscnotes - Which is the symbolic way to remove read access for group?
a. chmod g-r file
b. chmod g+r file
c. chmod u-r file
d. chmod o-g file
Answer: a. chmod g-r file
exam.pscnotes - What will “chmod 000 file” do?
a. No permissions for anyone
b. Full permissions for user only
c. Full permissions for all
d. Read for all
Answer: a. No permissions for anyone
sanfoundry+1 - What permission value allows only reading and writing by group and others?
a. 666
b. 777
c. 644
d. 600
Answer: a. 666
sanfoundry - Which is not a valid symbolic character for chmod user categories?
a. z
b. u
c. g
d. o
Answer: a. z
exam.pscnotes - Which of the following disables writing on a file for everyone?
a. chmod a-w file
b. chmod a+w file
c. chmod a-x file
d. chmod a+r file
Answer: a. chmod a-w file
exam.pscnotes - What does “chmod u=r file” give to the user?
a. Read only
b. No permission
c. Write only
d. Read and execute
Answer: a. Read only
sanfoundry+1 - The “chmod” command can be used on which types of objects?
a. Files and directories
b. Network ports
c. Memory
d. Users only
Answer: a. Files and directories
labex+1 - The effect of “chmod 711 file” is:
a. Owner all, group and others execute only
b. All users full access
c. Owner none, group and others read only
d. Owner read/write only
Answer: a. Owner all, group and others execute only
- https://www.sanfoundry.com/unix-questions-answers-changing-file-ownership-permissions-1/
- https://testbook.com/objective-questions/mcq-on-shell-programming–61f8d371669162b150866194
- https://www.w3schools.com/bash/bash_chmod.php
- https://labex.io/questions/what-is-the-use-of-chmod-command-in-linux-153895
- https://www.sanfoundry.com/10-practical-chmod-command-usage-examples-in-linux/
- https://exam.pscnotes.com/mcq/which-command-is-used-to-set-the-three-permissions-for-all-the-three-categories-of-users-of-a-file-a-chgrp-b-chown-c-chmod-d-chusr-e-none-of-the-above/
- https://stackoverflow.com/questions/11271596/how-will-a-server-become-vulnerable-with-chmod-777
- https://www.geeksforgeeks.org/linux-unix/chmod-command-linux/
- https://www.placementpreparation.io/mcq/linux/page/2/
- https://t4tutorials.com/linux-file-permissions-solved-mcqs/
- https://www.sanfoundry.com/unix-questions-answers-experienced/
- https://www.scribd.com/document/668706719/Unix-Module-3-MCQ
- https://blog.pentesteracademy.com/practice-linux-permissions-basics-with-13-easy-questions-part-i-75aeaf299ebf
- https://letsfindcourse.com/technical-questions/unix-mcq/unix-file-permission-and-access-modes-mcq
- https://www.examveda.com/computer-science/practice-mcq-question-on-unix/
- https://itexamanswers.net/question/the-administrator-of-a-linux-server-uses-the-chmod-777-usr-phones-txt-command-to-assign-permissions-to-a-file-that-contains-the-company-phone-directory-what-permissions-are-assigned-with-this-comman
- https://www.yeahhub.com/linux-multiple-choice-questions-mcq-91-120-questions-explanation/
- https://askfilo.com/user-question-answers-smart-solutions/answer-the-following-questions-13-what-is-the-use-of-the-3233343430303533
- https://opensource.com/article/19/8/linux-chmod-command
- https://www.studocu.com/en-us/messages/question/3042412/using-the-chmod-command-which-commands-would-you-use-to-set-the-following-permissions-to-a-file