author avatar

Trtuaazz

Dynamic-user with systemd

Dynamic Users with systemd TL;DR: you may now configure systemd to dynamically allocate a UNIX user ID for service processes when it starts them and r

systemd提示Special user nobody configured, this is not safe!

如果在较为新的基于 systemd 的 Linux 发行版中安装使用旧版软件,可能会看到类似报错 systemd-xxx: Special user nobody configured, this is not safe!。 原因 这是因为在新版的 systemd 中引入了更加严格的安全限制,不再建

K8S中容器挂载数据卷后权限问题

问题原因 通常情况下,每个应用,会对该应用的应用文件所在文件夹属组或权限有要求,如果权限或者属组不对,就会导致此问题。 数据卷挂载后,该路径会继承数据卷目录的属组和权限,通常为:drwxr-xr-x 12 root root 解决方法 此处通过k8s中的initcontainers容器,来解决此问题