[PATCH] net rpc share allowedusers: Allow restricting shares

Olly Betts olly at survex.com
Tue May 1 03:19:13 UTC 2018

The help already implies that you can specify "targets" for net rpc
share allowedusers, but actually the tail end of the command line
is just ignored.

This patch allows a list of shares to be specified, and only those
shares are checked, which can be much faster if you're only interested
in a few shares on a server which exports lots.

This subcommand already accepts an optional filename for the output
of net usersidlist, with a default of stdin.  Typically you'd just pipe
one command to the other so stdin is most likely what you want.  This
patch adds support for a filename of "-" to mean stdin so that you can
specify stdin explicitly when you provide a list of shares, since in
this case the filename can't be omitted.

Patch is against current git master.

Please review.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-net-rpc-share-allowedusers-Allow-restricting-shares.patch
Type: text/x-diff
Size: 3783 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20180501/00a828c8/0001-net-rpc-share-allowedusers-Allow-restricting-shares.diff>

More information about the samba-technical mailing list