[PATCH] net rpc share allowedusers: Allow restricting shares
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3783 bytes
Desc: not available
More information about the samba-technical