[Samba] Bulk smbcacls calls

Michael Brown michael at netdirect.ca
Thu Nov 28 12:33:05 MST 2013


On 13-11-28 10:00 AM, Peter Flood wrote:
> I want to get ACLs (output similar to that of smbcacls) for a *lot* of 
> files (potentially millions). I can only process about 10 files per 
> second when running the command (`smbcacls -U ...` via a Python 
> wrapper), I'm looking for a faster way.
It's kind of ugly, but a quick workaround may be doing the calls in 
parallel using a worker queue in python:

http://docs.python.org/2/library/queue.html

You'd be able to have an arbitrary number of outstanding requests at the 
same time. It might do the trick for you.

M.

-- 
Michael Brown               | `One of the main causes of the fall of
Systems Consultant          | the Roman Empire was that, lacking zero,
Net Direct Inc.             | they had no way to indicate successful
☎: +1 519 883 1172 x5106    | termination of their C programs.' - Firth



More information about the samba mailing list