Web lists-archives.com

[Samba] How to change Domain password as normal user?

As a normal user, I want to change my Domain Password. I've tried:

$ samba-tool user setpassword myuserId --newpassword='mynewpassword'

but get the error:

ltdb: tdb(/var/lib/samba/private/sam.ldb): tdb_open_ex: could not open file
/var/lib/samba/private/sam.ldb: Permission denied

Unable to open tdb '/var/lib/samba/private/sam.ldb': Permission denied
Failed to connect to 'tdb:///var/lib/samba/private/sam.ldb' with backend 'tdb': Unable to open
tdb '/var/lib/samba/private/sam.ldb': Permission denied
ERROR(ldb): uncaught exception - Unable to open tdb '/var/lib/samba/private/sam.ldb':
Permission denied
  File "/usr/lib64/python2.7/site-packages/samba/netcmd/__init__.py", line 175, in _run
    return self.run(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/samba/netcmd/user.py", line 602, in run
    credentials=creds, lp=lp)
  File "/usr/lib64/python2.7/site-packages/samba/samdb.py", line 57, in __init__
  File "/usr/lib64/python2.7/site-packages/samba/__init__.py", line 115, in __init__
    self.connect(url, flags, options)
  File "/usr/lib64/python2.7/site-packages/samba/samdb.py", line 72, in connect

How do I do this?

To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba