当前位置:网站首页>Bigder:38/100 一个误操作的问题解决了
Bigder:38/100 一个误操作的问题解决了
2022-07-22 07:13:00 【iBigder】
大家好,我是我是「Bigder」。
昨天说的一个误操作Bigder:37/100 一个误操作,chmod命令使用错了。sshd服务没法启动,也没法远程连接。
问题详细描述:
定位原因:
服务器的etc目录下的文件权限被全部改为了 777
解决办法:
cd /etc
chmod 644 passwd group shadow
chmod 400 gshadow
cd ssh
chmod 600 moduli ssh_host_dsa_key ssh_host_key ssh_host_rsa_key
chmod 644 ssh_config ssh_host_dsa_key.pub ssh_host_key.pub ssh_host_rsa_key.pub
chmod 640 sshd_config
chmod 600 /etc/securetty
chmod 711 /var/empty/sshd
公众号后台回复「电子书」,获取
边栏推荐
- Virtual machine performance test scheme
- Infrared remote control of FPGA
- OSPF special area comprehensive experiment
- Graduation thesis on production line balance optimization [Flexsim simulation]
- Chery Xingtu's product plan was exposed, and the 2.0T turbocharged engine was launched at the end of the year
- Overview of nftfi track layout
- MySQL系列三:函数&索引&视图&错误代码编号含义
- C static classes and static class members
- [MCU simulation project] external interrupt 0 controls the light-emitting diode on and off
- 【数据库】MySQL表的增删改查(基础)
猜你喜欢
[database] addition, deletion, modification and query of MySQL table (Advanced)
Chery Xingtu's product plan was exposed, and the 2.0T turbocharged engine was launched at the end of the year
[FPGA tutorial case 35] communication case 5 - 16QAM modulation signal generation based on FPGA, and its constellation is tested by MATLAB
Graduation thesis on production line balance optimization [Flexsim simulation]
[harmony OS] [ark UI] [demo] loading animation
How can VR panoramic display attract users' attention in a new way of online promotion?
mysql查询中能否同时判断多个字段的值
【计网】(三)超网、路由、NAT协议
【数据库】MySQL表的增删改查(进阶)
Hcip OSPF interface network type experiment report
随机推荐
OSPF特殊区域综合实验
Talking about DOM objects in depth, use four versions of demoplus to break the history.state header (more)
[HMS core] [push kit] set of message classification problems
Request message details (request header, get, post, request body)
flinksql 的task可以监控是否中断吗?
[HMS core] [FAQ] in app purchases FAQ sharing
如何一边看全景一边预约点餐?VR餐饮系统教程来了
Data Lake (18): Flink and iceberg integrate SQL API operations
[harmony OS] [ark UI] [demo] loading animation
Mongodb query statement >, & gt;=、& lt;、& lt;=、=、!=、 In, not in usage introduction
MySQL系列三:函数&索引&视图&错误代码编号含义
【数据库】MySQL表的增删改查(基础)
Take CRM system as an example to explain data analysis (importance introduction and analysis method)
2022-07-21:给定一个字符串str,和一个正数k, 你可以随意的划分str成多个子串, 目的是找到在某一种划分方案中,有尽可能多的回文子串,长度>=k,并且没有重合。 返回有几个回文子串。 来
[HMS core] [FAQ] [account kit] typical problem set 1
继承的详解
[Digital IC] understand Axi protocol in simple terms
buu-misc进阶
How can Tiktok cancel his account? What are the steps of the operation process?
云主机性能测试方案