使用setcap
为二进制文件提供额外权限应该将新权限写入某处,存储或内存中,它存储在哪里?
lsof
原样使用不起作用,因为该过程消失得太快。
该polkit-gnome-authentication-agent-1
不会自动启动,同时它具有正确的/etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop
与此内容文件
[Desktop Entry]
Name=PolicyKit Authentication Agent
Comment=PolicyKit Authentication Agent
Exec=/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
Terminal=false
Type=Application
Categories=
NoDisplay=true
OnlyShowIn=GNOME;XFCE;Unity;
X-GNOME-AutoRestart=true
AutostartCondition=GNOME3 unless-session gnome
X-Ubuntu-Gettext-Domain=polkit-gnome-1
Run Code Online (Sandbox Code Playgroud)
用户没有~/.config/autostart/polkit-gnome-authentication-agent-1.desktop
文件
这打破了依赖于 policykit 的 synaptic-pkexec 和其他工具。
问题似乎与此类似,但此帖子没有解决方案。
手动启动进程有效,该会话的功能将恢复,或者直到用于手动启动进程的终端关闭。
这里是dpkg.log和 apt history.log
dh_installinit
寻找debian/$(package).service
,但一个包可能提供多种服务。
是否可以.service
使用此方法为一个包裹捆绑多个包裹?
有时,在系统上不可能有 bash 的奢侈,但是与 sh 或 ash 相比,在 bash 上更容易创建条件,应该验证什么以确保条件不会在重写时与典型的“意外操作符”中断bash 到 sh 还是 ash ?
构建针对任意 CPU 指令优化的 deb 包,如何将 CPU 指令作为对 deb 包的依赖?该软件包不适合大规模分发,但我不想让人们与崩溃混淆,因为他们的 CPU 对我的构建来说太旧了。
systemd per user systemd-timer是否为离线用户运行?如果没有,是否可以允许它们为特定组内的用户运行?计时器的目标服务是否会像它应该以这种方式运行的用户一样正确启动?
deb ×2
systemd ×2
ash ×1
bash ×1
capabilities ×1
cinnamon ×1
linux-mint ×1
polkit ×1
scripting ×1
services ×1
setcap ×1
shell ×1
shell-script ×1