命令:
bigxu@bigxu-ThinkPad-T410 ~/work/lean $ sudo ls
content_shell.pak leanote libgcrypt.so.11 libnotify.so.4 __MACOSX resources
icudtl.dat leanote.png libnode.so locales natives_blob.bin snapshot_blob.bin
Run Code Online (Sandbox Code Playgroud)
大多数时候它是正确的.但有时候它很慢.所以我说它.
命令:
bigxu@bigxu-ThinkPad-T410 ~/work/lean $ strace sudo ls
execve("/usr/bin/sudo", ["sudo", "ls"], [/* 66 vars */]) = 0
brk(0) = 0x7f2b3c423000
fcntl(0, F_GETFD) = 0
fcntl(1, F_GETFD) = 0
fcntl(2, F_GETFD) = 0
......
......
......
write(2, "sudo: effective uid is not 0, is"..., 140sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an …Run Code Online (Sandbox Code Playgroud) Yii2 主动形式
<?= $form->field($model, 'pid')->dropDownList([1=>1,2=>2])->hint('????') ?>
Run Code Online (Sandbox Code Playgroud)
我想禁用选项 2=>2。
有没有办法做到这一点?