V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
hzzhiyuan
V2EX  ›  Linux

请问有没有类似 g+s 的方式的特殊权限可以自动修改文件的 owner

  •  
  •   hzzhiyuan · 2021-12-18 16:42:53 +08:00 · 1825 次点击
    这是一个创建于 853 天前的主题,其中的信息可能已经有所发展或是发生改变。

    假设有一个目录 a,它的 owner 是 user1,然后 user2 对这个目录有写权限,如果想让 user2 在 a 目录下创建的文件的 owner 自动变成 user1,不使用 chown,请问有没有大佬知道怎么实现

    2 条回复    2021-12-18 20:11:36 +08:00
    iUnix
        1
    iUnix  
       2021-12-18 18:57:29 +08:00 via Android
    inotify+脚本如何
    hzzhiyuan
        2
    hzzhiyuan  
    OP
       2021-12-18 20:11:36 +08:00
    @iUnix 谢谢大佬
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2776 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 13:01 · PVG 21:01 · LAX 06:01 · JFK 09:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.