linux - 我在 02042013015 用户中有一个 directory1,我想将他文件的所有权更改为 user19?怎么做?

标签 linux centos7

我在linux操作系统中有两个用户,即02042013015和user19。我有由02042013015用户创建的directory1文件夹,但现在我想将directory1的所有权更改为user19。我怎样才能做到这一点?我已经按照下面的屏幕截图所示完成了操作:但我无法通过 user19 访问目录 1。 enter image description here

最佳答案

首先您应该登录“root”: 苏- 然后输入你的root密码: 密码:

其次使用以下命令,例如: chown user19:user19/home/02042013015/您的文件夹名称

也许会起作用

关于linux - 我在 02042013015 用户中有一个 directory1,我想将他文件的所有权更改为 user19?怎么做?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45582177/

相关文章:

linux - 解决 Apache Felix 启动时 already in use 报错

python - 如何使用 Python 守护进程捕获击键?

php - ZF3 Nginx 将 index.php 作为下载文件

linux - Linux 容器中的 setcap cap_net_admin 阻止用户访问每个文件

linux - grep 无法找到曾经有效的转义破折号

centos - 从 rpm 文件递归下载所有依赖项

php - 根目录更改后 Nginx 写入 "no input file specified"- CentOS 7

linux - .so : need to find out which function(s) are executed on loading

php - 制作在linux服务器上运行命令的api

linux - kubectl 版本返回错误