netcmd: Try to improve domain backup error message
commit26cd687f14d70676c41e038b98551944ebd95356
authorTim Beale <timbeale@catalyst.net.nz>
Wed, 16 Jan 2019 20:41:21 +0000 (17 09:41 +1300)
committerKarolin Seeger <kseeger@samba.org>
Mon, 4 Feb 2019 08:50:09 +0000 (4 09:50 +0100)
tree5dad105cd14c8e3647cc2d8e007932b0252c0236
parentf088f070b4cb5a18fdb6f819c5857ef325f53033
netcmd: Try to improve domain backup error message

I ran this command as non-root by mistake and didn't find the error
message particularly helpful. Tweak the error message so it reminds the
user that they should be root. Also display the path we're looking for
the sam.ldb file in, to give them more clues.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13676

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Noel Power <npower@samba.org>
Autobuild-User(master): Noel Power <npower@samba.org>
Autobuild-Date(master): Mon Jan 21 16:34:06 CET 2019 on sn-devel-144

(cherry picked from commit 10e54a095f005c0988a7e5e8a35cea6200197854)
python/samba/netcmd/domain_backup.py