我系统上的沙箱用户“_apt”是什么

rub*_*o77 22 apt users rkhunter

我跑了rkhunter,发现一个警告,_apt我的 Ubuntu 16.04 上有一个新用户

$ grep _apt /etc/passwd
_apt:x:124:65534::/nonexistent:/bin/false
Run Code Online (Sandbox Code Playgroud)

我发现的是,这似乎是一种“高级持续威胁”的沙箱用户。但这究竟是什么?

Flo*_*sch 28

用户_apt由包 ( )的postinst脚本创建:apt/var/lib/dpkg/info/apt.postinst

 # add unprivileged user for the apt methods
 adduser --force-badname --system --home /nonexistent  \
     --no-create-home --quiet _apt || true
Run Code Online (Sandbox Code Playgroud)

它的拥有者/var/cache/apt/archives/partial,并/var/lib/apt/lists/partial和使用APT下载软件包,软件包列表,和其他的东西。

  • 所以基本上与在 apache 和其他软件中看到的方法相同:您有一个专门的锁定用户来做一些将某些东西拉到机器上的事情:用户 _apt。 (4认同)