Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #211669

clone ACL permissions

From Adam Weremczuk <adamw@matrixscience.com>
Newsgroups linux.debian.user
Subject clone ACL permissions
Date 2019-07-23 13:10 +0200
Message-ID <yn0Qa-3Z0-15@gated-at.bofh.it> (permalink)
Organization Matrix Science Ltd

Show all headers | View raw


Hi all,

I've just found out that my backups were missing ACL and the restore 
will not work until this is fixed.

Luckily I have the luxury of checking what the permissions should look 
like on a running system, e.g:

RESTORED:

# file: samba/sysvol
# owner: root
# group: 3000000
user::rwx
group::rwx
other::---

RUNNING:

# file: samba/sysvol
# owner: root
# group: 3000000
user::rwx
user:root:rwx
group::rwx
group:3000000:rwx
group:3000001:r-x
group:3000002:rwx
group:3000003:r-x
mask::rwx
other::---
default:user::rwx
default:user:root:rwx
default:group::---
default:group:3000000:rwx
default:group:3000001:r-x
default:group:3000002:rwx
default:group:3000003:r-x
default:mask::rwx
default:other::---

There are no trivial permissions patterns to follow so manual 
reconciliation would take very long and be error prone.

QUESTION:

Is it possible to "clone" ACL permissions?

I.e. recursively read ACL (getfacl?) on all files and folders and write 
(setacl?) to the same list of files and folders elsewhere?

Thanks,
Adam

Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

clone ACL permissions Adam Weremczuk <adamw@matrixscience.com> - 2019-07-23 13:10 +0200
  Re: clone ACL permissions "Thomas Schmitt" <scdbackup@gmx.net> - 2019-07-23 13:30 +0200
    Re: clone ACL permissions Adam Weremczuk <adamw@matrixscience.com> - 2019-07-23 13:50 +0200
  Re: clone ACL permissions Teemu Likonen <tlikonen@iki.fi> - 2019-07-23 13:30 +0200

csiph-web