我同时设置了两个新的 CentOS 7 机器,所以配置应该是相同的,只是 IP 地址和主机名不同。
我安装了 VSFTPD 并配置了被动端口。一个盒子连接正常,没有问题,但是第二个盒子不断向我抛出这个错误:
GnuTLS error -15: An unexpected TLS packet was received.
Run Code Online (Sandbox Code Playgroud)
这是调试 FileZilla 跟踪:
Status: Connecting to 192.168.20.68:21...
Status: Connection established, waiting for welcome message...
Trace: CFtpControlSocket::OnReceive()
Response: 220 (vsFTPd 3.0.2)
Trace: CFtpControlSocket::SendNextCommand()
Command: AUTH TLS
Trace: CFtpControlSocket::OnReceive()
Response: 234 Proceed with negotiation.
Status: Initializing TLS...
Trace: CTlsSocket::Handshake()
Trace: CTlsSocket::ContinueHandshake()
Trace: CTlsSocket::OnSend()
Trace: CTlsSocket::OnRead()
Trace: CTlsSocket::ContinueHandshake()
Trace: CTlsSocket::OnRead()
Trace: CTlsSocket::ContinueHandshake()
Trace: CTlsSocket::OnRead()
Trace: CTlsSocket::ContinueHandshake()
Trace: TLS Handshake successful
Trace: Protocol: TLS1.2, Key exchange: …
Run Code Online (Sandbox Code Playgroud) 如何授予特定用户更改特定目录中文件和目录的用户和组所有权的权限?
我做了一个谷歌搜索,看到有这样的东西setfacl
,它允许授予用户更改文件和目录权限的特定权限。但是,从我读到的内容来看,此命令不允许授予 chown 权限。
所以,说一个文件有
user1 user1 theFile1
user1 user1 theDirectory1
Run Code Online (Sandbox Code Playgroud)
发出以下命令将失败。
[user1@THEcomputer]$ chown user2 theFile
Run Code Online (Sandbox Code Playgroud)
我确实在计算机上具有 root 访问权限。有没有办法授权用户chown
在目录内发出命令?
更新:如何将用户添加到组。
下面是文章是我用来添加datamover
到hts
组。
[root@Venus ~]# usermod -a -G datamover hts
[root@Venus ~]# exit
logout
[hts@Venus Receive]$ groups
hts wireshark datamover
[hts@Venus Receive]$
Run Code Online (Sandbox Code Playgroud)
更新(RuiFRibeiro 的地址评论):
将目录的所有权更改为目录不起作用,请参见屏幕截图。
[datamover@Venus root]$ ls -la
total 311514624
drwxrwxrwx. 6 datamover datamover 4096 Oct 14 14:05 .
drwxr-xr-x 4 root root 4096 Aug 20 16:52 ..
-rwxrwxrwx. 1 …
Run Code Online (Sandbox Code Playgroud) CentOS 7(通过并包括 7.1)提供了
Applications | System Tools | Software Update
小程序。这个小程序允许用户更新 CentOS 7。
7.2 v1511中的小程序在哪里?我看不到了。
是的,我知道yum -y update
。我执行了yum -y update
命令,这就是我从 CentOS 7 到 CentOS 7 (7.2 v1511) 的方式。