• 2022-06-07
    若要设置/tmp/file文件所有者和所属组用户均有读、写权限,其他用户对该文件只有读的操作权限,以下命令正确的是
    A: chmodug=rwo-w-x/tmp/file
    B: chown664/tmp/file
    C: chmodu=rw/tmp/file
    D: chmod664/tmp/file
  • D
    本题目来自[网课答案]本页地址:https://www.wkda.cn/ask/peemmzxyxtmoxto.html

    内容

    • 0

      给file文件的所有用户添加可执行权限的命令是那个? A: chmod  u+x  file B: chmod 777  file C: chmod a+x file D: chmoda+w  file

    • 1

      文件file的访问权限为744,现要取消文件所有者的执行权限,同时增加同组用户的写权限,下列命令中正确的是 A: chmod u+x g+w file B: chmod 646 file C: chmod u-x g+w file D: chmod g+w file

    • 2

      将/root/tmp目录中所有的.sh文件的访问权限改为文件所有者具有可读可写可执行,与文件所有者同组用户具有可读可执行权限,其他只具有执行的权限 A: chown 751 /root/tmp/*.sh B: chmod 751 /root/tmp/*.sh C: chmod 777 /root/tmp/*.sh D: chmod 777 *.sh

    • 3

      文件file的访问权限为777,现要取消该文件的文件所有者的执行权限,同时取消该文件的文件所有者同组用户的写权限,可以使用下列哪个命令 A: chmod u+x, g+w file B: chmod 777 file C: chmod u-x, g-w file D: chmod g+w file

    • 4

      将file的文件属主设置为具有读、写、执行权限,将同组人和其他人设置读和执行权限,下面的命令正确的是( ) A: chmod<br/>755 file B: chmod<br/>a=rx,u+w file C: chmod<br/>u+rwx,g=rx,o=rx file D: chmod<br/>a+rwx,g-w,o-w test