Changeset 7631


Ignore:
Timestamp:
Jul 3, 2018, 12:47:42 PM (13 months ago)
Author:
kbut
Message:

add fix on media folder

Location:
home-linker/trunk/fuentes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • home-linker/trunk/fuentes/debian/changelog

    r5001 r7631  
     1home-linker (0.66) xenial; urgency=medium
     2
     3  * Fix acl's on /media/user
     4
     5 -- Raul Rodrigo Segura <raurodse@gmail.com>  Tue, 03 Jul 2018 12:46:38 +0200
     6
    17home-linker (0.65) xenial; urgency=high
    28
  • home-linker/trunk/fuentes/home-linker.install/usr/bin/get_acl_from_server

    r2469 r7631  
    88group = sys.argv[2]
    99user = sys.argv[3]
     10media = "/media/" + user
    1011s = x.ServerProxy('https://server:9779')
    1112list_acl = s.get_acl_group_filtered('','NetFoldersManager',group)
     
    1718        for x in list_acl:
    1819                os.system('setfacl ' + ' '.join(x) + ' "' + home + '"')
    19                
     20       
     21
    2022        # Apply --- to others to every single home
    2123        os.system('setfacl -m o:--- "%s"'%home)
    22        
     24        if os.path.exists(media):
     25                os.system('setfacl -kb ' + media )
     26                os.system('setfacl -m u:'+ user+ ':rx ' + media )
     27               
    2328        if apply_nobody_nogroup:
    2429                os.system('chown ' + user+':nogroup "' + home + '"')
Note: See TracChangeset for help on using the changeset viewer.