使用visudo命令可以打开/etc/sudoers文件进行编辑设置sudo
语法格式:visudo [参数]
常用参数:
-c | 启用check-only模式 |
-q | 启用安静模式,此模式下不显示错误信息 |
-s | 启用严格检查sudoers文件 |
参考实例
使用visudo命令编辑/etc/sudoers文件:
[[email protected] ~]# visudo
检查/etc/sudoers文件的语法错误、所有者和模式:
[[email protected] ~]# visudo -c
');mask-image:url('data:image/svg+xml;utf8,');mask-mode:alpha;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-position:center;mask-position:center;border-radius:0}}.wp-block-image :where(.has-border-color){border-style:solid}.wp-block-image :where([style*=border-top-color]){border-top-style:solid}.wp-block-image :where([style*=border-right-color]){border-right-style:solid}.wp-block-image :where([style*=border-bottom-color]){border-bottom-style:solid}.wp-block-image :where([style*=border-left-color]){border-left-style:solid}.wp-block-image :where([style*=border-width]){border-style:solid}.wp-block-image :where([style*=border-top-width]){border-top-style:solid}.wp-block-image :where([style*=border-right-width]){border-right-style:solid}.wp-block-image :where([style*=border-bottom-width]){border-bottom-style:solid}.wp-block-image :where([style*=border-left-width]){border-left-style:solid}.wp-block-image figure{margin:0}/*]]>*/
使用visudo命令可以打开/etc/sudoers文件进行编辑设置sudo
语法格式:visudo [参数]
常用参数:
-c | 启用check-only模式 |
-q | 启用安静模式,此模式下不显示错误信息 |
-s | 启用严格检查sudoers文件 |
参考实例
使用visudo命令编辑/etc/sudoers文件:
[[email protected] ~]# visudo
检查/etc/sudoers文件的语法错误、所有者和模式:
[[email protected] ~]# visudo -c