Newly created subdirectory inherit permissions from parent

Discussion in 'Server Operation' started by Poliman, May 11, 2018.

  1. Poliman

    Poliman Member

    I have some difficult problem with Linux permissions - I use Ubuntu 16.04 LTS. I have there an admin account (not root) and I have created there directory which is available for all users in path /home/sadmin/ftp/freeForAll with chmod's 777. Of course when any user logins to his own ftp account he can put there files and remove them without any problem like it should be. But problem begins when any user will create there some directory. This specific directory can't be removed by anyone except this particular user, who has created it. Is it possible to set, in some way, inheriting of permissions of parent directory freeForAll --> "/home/sadmin/ftp/freeForAll" for all newly created subdirectories/nested directories and files?
     
  2. ztk.me

    ztk.me ISPConfig Developer ISPConfig Developer

    should be possible using ACL, it supports inheritance of rules. In terms of security / reliability I'm not sure wether this is a very good solution.
     
  3. Poliman

    Poliman Member

    I am reading about sgid, suid, sticky bit but I am not sure it resolve this problem. ACL in Linux - it's about setfacl command? I will know what term I should google. ;)
     
  4. ztk.me

    ztk.me ISPConfig Developer ISPConfig Developer

    yes, it is about
    Code:
     setfacl -dm
    setting default acl and so on
    I have some german resources unfortunally, but the ACL entry for archlinux is also informative I think.
     
  5. Poliman

    Poliman Member

    Thank you, I will google it. It's important. ;)

    PS
    Things, about which I was reading, are not related with the case, am I right? ;)
     
  6. ztk.me

    ztk.me ISPConfig Developer ISPConfig Developer

    https://help.ubuntu.com/community/FilePermissionsACLs
     
    Poliman likes this.
  7. Poliman

    Poliman Member

    Thank you!
     
    ztk.me likes this.

Share This Page