我正在尝试启动一个具有网络权限的程序,这样它就可以执行iptables,而不是根用户。我需要CAP_NET_ADMIN是可继承和允许的。似乎可继承标志在可执行文件启动时被清除,但不有效或不允许:
Script started on Thu 25 Oct 2018 11:09:45 PM UTC
[ec2-user@ip-172-31-16-197 cap_question]$ cat caps.c
#include <stdio.h>
#include <stdlib.h>
#include <sys/capability.h>
int main(int
我有一个域设置指向我的局域网的外部IP使用动态DNS,因为我的外部IP地址经常变化。但是,我想为这个主机创建一个别名,这样我就可以使用home访问它。因此,我将以下内容添加到我的/etc/hosts中:
example.com home
然而,它似乎不喜欢域名。如果我将其更改为IP:
0.0.0.0 home
然后它可以工作,但当然,这违背了动态DNS的目的!
这个是可能的吗?
我已经在我的Ubuntu20.04上安装了DHCP服务器(isc-dhcp)。客户端计算机(也是Ubuntu20.04桌面计算机)获得分配的IP地址,但id没有得到指定的域名(通过option domain-name "example.local";定义)。
我的dhcpd.conf文件如下所示:
default-lease-time 600;
max-lease-time 7200;
# If this DHCP server is the official DHCP server for the local
# network, the authoritative dir