我正在尝试为在 Ubuntu 服务器中使用的轮组添加一个用途。
sudo usermod -aG 轮约翰
我得到:
usermod:组“轮”不存在
在我的 /etc/sudoers 上,我有这个:
> cat /etc/sudoers
> # sudoers file.
> #
> # This file MUST be edited with the 'visudo' command as root.
> #
> # See the sudoers man page for the details on how to write a sudoers file.
> #
>
> # Host alias specification
>
> # User alias specification
>
> # Cmnd alias specification
>
> # Defaults specification
>
> …Run Code Online (Sandbox Code Playgroud) 我在 Ubuntu 服务器中有一个用户 john 和一个用户 keith
我添加了这些用户使用
sudo adduser John
sudo adduser Keith
Run Code Online (Sandbox Code Playgroud)
我现在如何将 john 添加到 Keith 的群组?
我试过:
sudo usermod -aG Keith john
Run Code Online (Sandbox Code Playgroud)
但我得到:
usermod: group 'Keith' does not exist
Run Code Online (Sandbox Code Playgroud)
我需要做什么来解决这个问题?
我有两个路由器,router1 一个是无线的,我可以在其中连接我的笔记本电脑,而 router2 只是我连接台式机的普通路由器。路由器一有自己的子网,路由器二有自己的子网。
router1 连接到调制解调器,而 router2 连接到 router1。
我的问题是:如何从连接到路由器 2 的计算机访问连接到路由器 1 的计算机,反之亦然?
我知道的唯一方法是使用端口转发,但这对我来说并不适用,因为我在机器之间来回执行大量 RDP,我必须为每台机器设置一个唯一的 RDP 端口号才能这样做。
我希望能够轻松地在路由器 1 到路由器 2 和路由器 2 到路由器 1 上的计算机之间来回共享文件、ping 和 RDP。我怎样才能做到这一点?
networking router remote-desktop wireless-networking routing