《aix系统应用基础》练习题4-权限.pptx
答案:答案:C Which command should be used to permit ONLY the owner to use the script file named savemachine as an executable script?A.chmod 777 savemachineB.chmod -x ./savemachineC.chmod u=rwx,go=savemachineD.chmod go-w+x savemachine答案:答案:D If the current directory was/home/guest,which command would the user execute to list all permissions of all files in all subdirectories of/home/guest?A.ls -lB.ls -RC.ls -alD.ls -alR答案:答案:B How can permissions for the chmod command be written?A.as a hex numberB.in either octal or symbolic notationC.as string of“rwx”to picture the layout of the permissionsD.in the first line of a file when it is created,and then interpreted by the shell答案:答案:B Which of the following commands should be used to restrict read permissions to ONLY the owner for all files contained in the directory?A.chmod 777 /home/me/mydirB.chmod go-r /home/me/mydir/*C.chmod u+r /home/me/mydir*.*D.chmod 700 /home/me/mydir答案:答案:D After executing the following:chmod 777 dog Which command would verity the results?A.ls -dB.ls -a /C.ls -a dogD.ls -al dog答案:答案:B The mydata file currently has permission bits set at 755.Which of the following commands will take away the execute permission from the group and others?A.chmod 655 mydataB.chmod go-x mydataC.chmod uo-x mydataD.chmod 554 mydata