Error:
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set.
Fixed:
reboot and login to recovery,
login to root prompt,
mount -o remount,rw /
mount –all
chown root:root /usr/bin/sudo
chmod 4755 /usr/bin/sudo
ls -l /usr/bin/sudo
chmod 644 /etc/passwd
chmod u+s /bin/su
reboot
曾几何,
怅然泪潸潸.
故人重逢歌一曲,
一壶甘冽半杯泉.
醉倒家门前.
不闭窗,
微醺意绵绵.
斜风细听江南雨,
恍然虚梦已十年.
我得半日闲.
Issue: cannot be loaded because the executionof scripts is disabled on this system. Please see “get- helpabout_signing” for more details.
Fix:
PS C:Windowssystem32> Set-ExecutionPolicyRemoteSigned
Execution Policy Change
The execution policy helps protect you from scripts that you donot trust. Changing the execution policy mightexpose
you to the security risks described in theabout_Execution_Policies help topic. Do you want to change theexecution
policy?
[Y] Yes [N] No [S] Suspend [?] Help (default is “Y”): Y
Policy的有效参数:
— Restricted: 不载入任何配置文件,不运行任何脚本。 “Restricted”是默认的。
— AllSigned: 只有被Trustedpublisher签名的脚本或者配置文件才能使用,包括你自己再本地写的脚本
— RemoteSigned: 对于从Internet上下载的脚本或者配置文件,只有被Trustedpublisher签名的才能使用。
— Unrestricted: 可以载入所有配置文件,可以运行所有脚本文件.如果你运行一个从internet下载并且没有签名的脚本,在运行之前,你会被提示需要一定的权限。
— Bypass: 所有东西都可以使用,并且没有提示和警告.
— Undefined: 删除当前scope被赋予的Execution Policy. 但是Group Policy scope的Execution Policy不会被删除.
从大庆至新肇,年前终于成行了。车窗外白雪皑皑,一片银光延向远方,与苍穹连成一片。车厢内轮轨的叩击声,单调又熟悉,现实与记忆交错呈现于脑海,列车的笛音,原野的回响,冰河的应和,森林的沉默,大地的叹息,飞雪的欢歌,故人的寒暄,情人的呢喃,层层叠沓,冻结了此刻的生命,此生也许就如同这列客车,简单的驶向未知。