当前位置: 首页 > news >正文

做漫画视频在线观看网站wordpress登陆后可见

做漫画视频在线观看网站,wordpress登陆后可见,金华企业做网站,做网站用什么云服务器吗sudo实现授权 添加 vim /etc/sudoers luo ALL(root) /usr/bin/mount /deb/cdrom /mnt/ test ALL(root:ALL) ALL 在所有主机上 提权为root用户#xff0c; 可以执行所有命令 户test被授权以root用户身份在任意主机上执行任意命令 切换luo用户使用 su…sudo实现授权 添加 vim /etc/sudoers luo ALL(root) /usr/bin/mount /deb/cdrom /mnt/ test ALL(root:ALL) ALL 在所有主机上 提权为root用户 可以执行所有命令 户test被授权以root用户身份在任意主机上执行任意命令 切换luo用户使用 sudo mount /dev/cdrom /mnt %sudo ALL(ALL:ALL) ALL %sudo 表示该规则适用于sudo用户组中的所有成员。 ALL(ALL:ALL) 表示可以在任何主机上以任何用户身份来执行sudo命令。 第一个ALL表示允许sudo的用户在任何主机上执行命令。 (ALL:ALL) 表示用户可以以任何用户和组的身份来执行命令。 第二个ALL表示允许sudo的用户以任何命令。 总之%sudo ALL(ALL:ALL) ALL 允许sudo用户组中的任何成员在任何主机上使用sudo命令以任何用户和组的身份来执行任何命令 PAM认证 模块路径 ubuntu 路径 /usr/lib/x86_64-linux-gnu/security/ rocky /usr/lib64/security /etc/pam.d/ 服务比如sshd调用模块的配置文件目录 ls /etc/security/ 复杂模块的专有配置文件目录 创建文件后用户不能登录 vi /etc/nologin 因为sshd服务启用了pam_nologin.so模块 vi /etc/pam.d/sshd sshd:account required pam_nologin.so 资源限制模块 pam_limits.so 永久()limits配置文件 vim /etc/security/limits.conf soft nofile 65535hard nofile 65535 monitor hard nofile 65535 代表组 pgrep -u zabbix |wc -l 查看用户打开的进程数 ulimit -a real-time non-blocking time (microseconds, -R) unlimited core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 8440 max locked memory (kbytes, -l) 284580 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 8440 virtual memory (kbytes, -v) unlimited file locks (-x) unlimitedulimit -a 命令用于显示当前用户的资源限制即操作系统对用户进程使用各种资源的限制。下面是对输出结果的解释- real-time non-blocking time (microseconds, -R): 实时非阻塞时间表示在实时调度策略下进程的非阻塞时间限制该值为 unlimited 表示没有限制。 - core file size (blocks, -c): 核心文件大小限制表示允许生成的核心转储文件的最大大小0 表示禁止生成核心文件。 - data seg size (kbytes, -d): 数据段大小限制表示进程可以分配的数据段的最大大小unlimited 表示没有限制。 - scheduling priority (-e): 调度优先级数值越低优先级越高。 - file size (blocks, -f): 文件大小限制表示进程可以创建的文件的最大大小unlimited 表示没有限制。 - pending signals (-i): 待处理的信号数量限制表示进程队列中待处理的信号的最大数量。 - max locked memory (kbytes, -l): 锁定内存的大小限制表示进程可以锁定的最大内存大小。 - max memory size (kbytes, -m): 最大内存大小限制表示进程可以使用的最大内存大小unlimited 表示没有限制。 - open files (-n): 打开文件的数量限制表示进程可以同时打开的文件数量上限。 - pipe size (512 bytes, -p): 管道大小限制表示管道缓冲区的最大字节数。 - POSIX message queues (bytes, -q): POSIX消息队列大小限制表示进程可以创建的POSIX消息队列的最大大小。 - real-time priority (-r): 实时优先级数值越低优先级越高。 - stack size (kbytes, -s): 栈大小限制表示进程栈的最大大小。 - cpu time (seconds, -t): CPU时间限制表示进程可以使用的最大CPU时间unlimited 表示没有限制。 - max user processes (-u): 最大用户进程数限制表示用户可以同时运行的进程数量上限。 - virtual memory (kbytes, -v): 虚拟内存大小限制表示进程可以使用的最大虚拟内存大小unlimited 表示没有限制。 - file locks (-x): 文件锁数量限制表示进程可以同时持有的文件锁的数量上限。注意输出结果中的 unlimited 表示没有明确的限制即对应的资源在系统中是无限的。其他数值表示该资源对应的限制值。通过service 文件启动服务启动要限制还要在service文件中设置只在limit.conf 中限制不生效 使用google MFA验证功能 ubuntu安装google-authenticator apt install libpam-google-authenticator -y rocky安装 ip 192.168.74.132 yum install -y google-authenticator 按y 服务google连接 修改ssh和模块配置 sed -i 1a\auth required pam_google_authenticator.so /etc/pam.d/sshd sed -i s/.*ChallengeResponseAuthentication.*/ChallengeResponseAuthentication yes/ /etc/ssh/sshd_config#重启SSH服务 service sshd restart其他机器测试ssh远程 rootserver:/etc/security/limits.d# ssh 192.168.74.132 (root192.168.74.132) Verification code: (root192.168.74.132) Password: Activate the web console with: systemctl enable --now cockpit.socketLast failed login: Wed Oct 18 01:05:39 CST 2023 from 192.168.74.80 on ssh:notty There were 2 failed login attempts since the last successful login. Last login: Wed Oct 18 01:00:20 2023 from 192.168.74.1时间同步 配置服务端 apt install chrony -y vim /etc/chrony.conf server ntp.aliyun.com iburst #iburst 加快同步速度 server slb.time.edu.cm iburst allow 0.0.0.0/0 #local stratum 10 systemctl restart chronyd.service [rootrocky8 ~]# chronyc chrony version 4.2 Copyright © 1997-2003, 2007, 2009-2021 Richard P. Curnow and others chrony comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. See the GNU General Public License version 2 for details. chronyc sources -v [rootrocky8 ~]# chronyc sources -v.-- Source mode ^ server, peer, # local clock./ .- Source state * current best, combined, - not combined, | / x may be in error, ~ too variable, ? unusable. || .- xxxx [ yyyy ] /- zzzz || Reachability register (octal) -. | xxxx adjusted offset, || Log2(Polling interval) --. | | yyyy measured offset, || \ | | zzzz estimated error. || | | \ MS Name/IP address Stratum Poll Reach LastRx Last sample ^- 203.107.6.88 2 6 17 19 -738us[ -11us] /- 39ms ^* 120.25.115.20 2 6 17 14 408us[1033us] /- 6971us 配置客户端 安装chrony 修改配置文件添加chrony服务器 server 192.168.74.132 MS Name/IP address Stratum Poll Reach LastRx Last sample ^* 192.168.74.132 3 6 367 42 -6262us[-8180us] /- 59ms
http://www.tj-hxxt.cn/news/233782.html

相关文章:

  • 漂亮的网站改版中 html代码做网站搜索推广点击率太低怎么办
  • 网页制作教程网站阿里云电影网站建设教程
  • 搜索引擎网站开发商贸有限公司门头照片
  • 为什么企业需要建设网站甘肃住房和城乡建设局网站
  • 石家庄网站建设行业公司电商网名
  • 免费商城系统网站建设个人网站开发技术要求
  • 成都市做网站的公司做网站建设费用预算
  • 文明网站建设情况百度网站权重查询
  • 深圳市建设银行网站首页长春做网站哪家公司好
  • 网站技术解决方案wordpress国外主题破解
  • 广元市建设局网站工作英语
  • 私人设计网站推荐h5页面制作软件thinkphp
  • 如何选取网站关键词科技画4k纸科幻画一等奖
  • 关于集团网站建设的修改请示首码项目推广平台
  • wordpress编辑网站嵌入式软件开发专业
  • 东莞做网站那家好南昌网站建设制作与维护
  • 微信网页制作网站建设京网站建设
  • 搜狐快站怎么样温州自助模板建站
  • 济南网站建设搜q.479185700泰安网上申请货车通行证
  • 贵阳网站建设hsyunso网络推广大概需要多少钱
  • 自己做的网站本地调试骨科医生咨询在线咨询免费
  • 代备案网站空间移动端网站开发与网页开发区别
  • 博兴做网站郑州关键词排名公司电话
  • 网站什么情况要更新wordpress5.0.1
  • 青岛网站建设价格网站建设方案前言
  • 成都鲜花网站建设小程序商城免费
  • 景县有专业做网站人员吗服务器怎么发布网站
  • 建设公司董事长致辞网站范文网站排名怎么提升
  • 江苏 网站集约化建设方案网络营销专业课程
  • 创建电子商务网站的步骤临沂哪里有做网站的