我需要在 Ubuntu 9.10 服务器上设置什么,以便用户可以构建那里选择的应用程序(即 ./configure ,make && make install),而无需 sudo/admin 权限。
我只是觉得必须让用户访问他们可能不需要的系统部分才能构建应用程序,这有点安全风险。
我是 Ubuntu 新手,我刚安装了 10.10,我不知道我做了什么,但是现在要执行需要sudo特权的操作(打开突触、挂载设备、运行 apt-get install 等),操作系统不会让我说我没有足够的权限,例如当我尝试sudo apt-get install它时告诉我:
myusername is not in the sudoers file. This incident will be reported.
Run Code Online (Sandbox Code Playgroud)
所以我必须以 su 身份登录才能对这些事情做任何事情。我以前不必这样做,我只是使用了常规的 root 权限,但正如我所说,我一定是无意中更改了某些内容。
谁能帮我?
在运行Ubuntu 14.04.5 LTS的主机中,我有一个名为ci的用户,该用户可以创建一个同样运行Ubuntu 14.04.5 LTS的启动非特权 lxc 容器。用户的 subid 范围为200000-231071。这样一个容器的配置文件是:
# Distribution configuration
lxc.include = /usr/share/lxc/config/ubuntu.common.conf
lxc.include = /usr/share/lxc/config/ubuntu.userns.conf
lxc.arch = x86_64
# Nested
lxc.mount.auto = cgroup
lxc.aa_profile = lxc-container-default-with-nesting
# Container specific configuration
lxc.id_map = u 0 200000 65536
lxc.id_map = u 100000 265536 65536
lxc.id_map = g 0 200000 65536
lxc.id_map = g 100000 265536 65536
lxc.rootfs = /home/ci/.local/share/lxc/ci/rootfs
lxc.utsname = ci
# Network configuration
lxc.network.type = veth
lxc.network.flags = up …Run Code Online (Sandbox Code Playgroud)