chmod rank2 files read-only for owner and no-access for everyone else
This commit is contained in:
parent
00e3baf117
commit
b96c163c8f
1 changed files with 3 additions and 0 deletions
3
btv
3
btv
|
@ -259,6 +259,9 @@ def serialize(snap, outdir, key, snap_from=None):
|
|||
path = os.path.join(directory, file)
|
||||
os.chown(path, outdir_stat.st_uid, outdir_stat.st_gid)
|
||||
|
||||
if path.endswith(".aes") or path.endswith(".sha512"):
|
||||
os.chmod(path, 0o100)
|
||||
|
||||
return 0
|
||||
|
||||
def ping(url):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue