Skip to content
Eternal Center

Eternal Center

  • Single-Node (单节点)
    • System (系统)
    • Service (服务)
    • Database (数据库)
    • Container (容器)
    • Virtualization (虚拟化)
  • Multi-Node (多节点)
    • Cluster (集群)
    • Big Data (大数据)
    • Cloud Computing (云计算)
    • Batch Processing (批量处理)
  • Approach (方式方法)
    • Languages (语言)
    • Ideas (思路)
    • Programing (编程)
    • Project (项目)
  • Eternity (永恒)
    • News (消息)
    • Creations (创作)
    • Classics (经典)
    • Legends (传说)
    • Chronicle (编年史)
    • FNIOS (宇宙公民开源学院)

Category: System Setting Other Debugs (系统设置其它排错)

Posted on May 27, 2022December 31, 2025

[排错] 解决 Linux 运行 source ~/.bashrc 时报错 “if: Expression Syntax. then: Command not found.”

报错命令

# source ~/.bashrc

报错代码

if: Expression Syntax. then: Command not found.

分析

此时终端没有使用 bash 解释器,而是使用了简化版 sh 解释器

解决方法

> exec bash ; source ~/.bashrc
Posted on May 27, 2022December 31, 2025

[排错] 解决 Linux 运行 su 命令时正确密码输入无效

报错命令

# su ......

分析

当 /usr/bin/su 文件的权限设置不正确时,会出现运行 su 命令时正确密码输入无效的情况

解决方法

# chown root:root /usr/bin/su ; chmod 4755 /usr/bin/su
Posted on May 27, 2022December 31, 2025

[排错] 解决 Linux 运行 sudo 命令时报错 “/usr/bin/sudo must be owned by uid 0 and have the setuid bit set”

报错命令

# sudo ......

报错代码

/usr/bin/sudo must be owned by uid 0 and have the setuid bit set

分析

当 /usr/bin/sudo 文件的权限设置不正确时,会出现运行 sudo 命令时报错的情况

解决方法

# chown root:root /usr/bin/sudo ; chmod 4755 /usr/bin/sudo
Posted on May 14, 2022November 22, 2024

[排错] 解决 Linux SSH “PasswordAuthentication no” 参数不起作用

分析

如果以前成功密码 SSH 登录过目标服务器,那启用 SSH 的 ChallengeResponseAuthentication 参数可能会影响 PasswordAuthentication 参数的效果

解决方法

# vim /etc/ssh/sshd_conf

将其中的:

......
# ChallengeResponseAuthentication yes
......

修改为:

......
ChallengeResponseAuthentication no
......
Posted on May 11, 2022December 31, 2025

[排错] 解决 Linux 运行 ssh -X 命令时报错 “X11 forwarding request failed on channel 0”

报错命令

# ssh -X ......

报错代码

X11 forwarding request failed on channel 0

解决方法

如果是 CentOS Linux 7 & RHEL 7 & Rocky Linux 8 & RHEL8:

# yum install xauth

如果是 Rocky Linux 8 & RHEL 8:

# dnf install xauth

如果是 openSUSE & SLES:

# zypper install xauth

Posts pagination

Previous page Page 1 … Page 3 Page 4 Page 5 Page 6 Next page

Aspiration (愿景):

Everyone can achieve self-achievement and self-happiness fairly

每个人都能公平地实现自我成就和自我幸福

Logo (徽标):

Additional Information (其他信息):

About     Manual     Clone     Contact
Disclaimer     Friendly Links     Donation

关于     手册     克隆     联系
免责声明     友情链接     捐赠

Search Inside Website (站内搜索)

Search Outside Website (站外搜索):

Google         Wikipedia         Bing

Eternal URL (永恒网址):

https://eternity.eternalcenter.com Will be last access method / 将是最后的访问方式

Proudly powered by LNMP Proudly powered by WordPress