Home  >  Q&A  >  body text

文件权限 - Linux:如何设置用户在特定目录下创建文件的默认用户组?

比如,一个用户在 git, ftp 两个组里面,
如何让该用户(tony) 在 /home/git 目录下创建的文件 owner 为 tony:git 或者 git:git ,
并且在 /home/ftp/ 目录下创建文件的 owner为 tony:ftp或者ftp:ftp。

PHPzPHPz2743 days ago861

reply all(1)I'll reply

  • 巴扎黑

    巴扎黑2017-04-17 11:47:21

    Please refer here http://askubuntu.com/questions/51951/set-default-group-for-user-when-they-create-new-files

    reply
    0
  • Cancelreply