小编drk*_*kzs的帖子

OpenSSH SFTP 服务器是否在 put 命令(chrooted 环境)后使用 umask 或保留客户端权限?

我知道这个问题已经讨论过了,但是通过阅读帖子我无法找到答案,因为有些人说“是的 umask 可以工作”,而其他人说“OpenSSH put 命令始终保留权限”

在此之前,准确地说:

  • 我在 RHEL 6.2 上使用 OpenSSH 5.9
  • 我已经配置了一个 chrooted SFTP 服务器,使用internal-sftp子系统,-u 0002用于 umask
  • 我确切地说我不使用-por-P选项

从我一方面读到的内容:有很多方法可以为 SFTP 传输定义 umask:

  • 选项-uinternal-sftp(或sftp-server)中,由于5.4的OpenSSH
  • 创建一个包装器sftp-server(在其中我们明确设置了 umask - 这不适合 chrooted 环境顺便说一句)
  • pam.d/sshd文件中添加特定配置

另一方面,我读过:

OpenSSH SFTP 客户端和服务器确实传输权限(作为扩展)并在本地创建具有权限的远程文件。AFAICT,没有办法禁用这种行为。

所以我做了以下测试:

在我的客户端上,我创建了权限为 600 和 700 的文件MYFILE和目录MYDIR

然后用sftp命令:

mkdir => the new directory has permissions following the umask (OK)
put MYFILE …
Run Code Online (Sandbox Code Playgroud)

ssh sftp umask

13
推荐指数
1
解决办法
2万
查看次数

corosync/pacemaker/fencing - 有 2 个节点的被动/主动集群

我正在使用起搏器/corosync 配置集群 2 节点,我对此有一些疑问(也许是最佳实践:我远非专家)

**OS:** redhat 7.6

I configurated the cluster with those properties

 - **stonith-enabled:** true

 - **symmetric-cluster:** true (even if is default value i think)


and added in corosync.conf

 - **wait_for_all:** 0 (i want a Node be able to start/work even if his twin is KO)

 - **two_nodes:** 1


Considering the fencing:

- Using ILO of blade HP (ILO1 for Node1, ILO2 for Node2)

I read that it was sometimes a good practice to prevent a node suicide, …
Run Code Online (Sandbox Code Playgroud)

pacemaker corosync fencing

4
推荐指数
1
解决办法
558
查看次数

标签 统计

corosync ×1

fencing ×1

pacemaker ×1

sftp ×1

ssh ×1

umask ×1