Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
hzzhiyuan
V2EX  ›  Linux

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

  •  
  •   hzzhiyuan · Dec 18, 2021 · 2632 views
    This topic created in 1610 days ago, the information mentioned may be changed or developed.

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

    2 replies    2021-12-18 20:11:36 +08:00
    iUnix
        1
    iUnix  
       Dec 18, 2021 via Android
    inotify+脚本如何
    hzzhiyuan
        2
    hzzhiyuan  
    OP
       Dec 18, 2021
    @iUnix 谢谢大佬
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2860 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 12:23 · PVG 20:23 · LAX 05:23 · JFK 08:23
    ♥ Do have faith in what you're doing.