4

这个 chown 命令咋写哈~~

 1 year ago
source link: https://www.v2ex.com/t/889074
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  问与答

这个 chown 命令咋写哈~~

  jsjcjsjc · 5 小时 12 分钟前 · 540 次点击

安装了 webdav 服务端 sftpgo 其他都完美,但是自定义目录的时候发现 sftpgo 没有权限访问. 想问一下如何设置"/root/sftpgo" 目录的权限可以让 sftpgo 访问哈

测试了一下直接这样是不行啊 chown -vR sftpgo:sftpgo /root/sftpgo

需要这样才可以~~ chown -vR sftpgo:sftpgo /root

但是还是想问一下,有办法只给 sftpgo:sftpgo 用户 /root/sftpgo 的权限码?

作者的回复如下,不是很专业啊,求 MJJ~~ make sure that the sftpgo system user has at least the read permission to any parent directory, so in the example above /home/username and /home must not have 0700 permissions


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK