微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

是否可以在没有密码的情况下为远程 Linux 系统执行 netstat?

如何解决是否可以在没有密码的情况下为远程 Linux 系统执行 netstat?

帮助我编写远程系统的 shell 脚本以检查 TCP 连接。

解决方法

在遥控器中,将您的用户添加到wheel组:

_renderHeaderCell

然后,打开 _renderHeaderCell: function (node) { const $th = this._super.apply(this,arguments); if (node.tag === 'button_group' && node.children && node.children[0].attrs.class === "custom_identifier"){ $th.text(node.children[0].attrs.string) .attr('tabindex',-1); } return $th; }, 文件:

sudo useradd -mG wheel -s /bin/bash $USER

添加这一行:

sudoers

用您想要的实际命令替换 sudo vim /etc/sudoers 的地方。我不确定是否需要注销才能生效。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。