How to add SeBackup privilege for make test user ?

Jeremy Allison jra at
Thu Oct 25 17:48:22 MDT 2012

Hi Andrew and Jelmer,

I'm adding a regression test for my fix for the crash
in smbd when doing a listing for a user with SeBackup

However this depends on the test user being used in
the source3/script/tests/ test
scripts having SeBackup privilege assigned.

We seem to only create the one test user ($USER)
who is logged in, and that user doesn't have
SeBackup privilege. How do I fix that ?

When I do:

net rpc rights grant $USERNAME SeBackupPrivilege -U$USERNAME%$PASSWORD -I $SERVER_IP

before trying the backup list, I get:

Could not connect to server
The username or password was not correct.
Connection failed: NT_STATUS_LOGON_FAILURE

which is plainly incorrect as this is the
same user and password that smbclient uses
(although I'm not sure if this user has the
rights to add SeBackupPrivilege).

Any clues here ?


More information about the samba-technical mailing list