|
在Debian11下确认不可以!
toybrick@debian:~$
toybrick@debian:~$
toybrick@debian:~$ shutdown -h now
-bash: shutdown: command not found
toybrick@debian:~$ busybox shutdown -h now
shutdown: applet not found
toybrick@debian:~$ su
Password:
root@debian:/home/toybrick#
root@debian:/home/toybrick# shutdown -h now
bash: shutdown: command not found
root@debian:/home/toybrick#
root@debian:/home/toybrick# reboot -p
bash: reboot: command not found
root@debian:/home/toybrick# su
root@debian:/home/toybrick# su toybrick
toybrick@debian:~$
toybrick@debian:~$ reboot -p
bash: reboot: command not found
toybrick@debian:~$ busybox reboot -p
reboot: invalid option -- 'p'
BusyBox v1.30.1 (Debian 1:1.30.1-6+b3) multi-call binary.
Usage: reboot [-d DELAY] [-n] [-f]
Reboot the system
-d SEC Delay interval
-n Do not sync
-f Force (don't go through init)
toybrick@debian:~$
toybrick@debian:~$ busybox reboot -d 1
reboot: Operation not permitted
toybrick@debian:~$
toybrick@debian:~$ sudo busybox reboot -d 1
toybrick@debian:~$ [ 143.922115] systemd[1]: systemd 247.3-7+deb11u4 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=unified)
[ 143.923213] systemd[1]: Detected architecture arm64.
[ 144.036302] systemd[1]: /lib/systemd/system/plymouth-start.service:16: Unit configured to use KillMode=none. This is unsafe, as it disables systemd's process lifecycle management for the service. Please update your service to use a safer KillMode=, such as 'mixed' or 'control-group'. Support for KillMode=none is deprecated and will eventually be removed.
toybrick@debian:~$
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|