[Samba] howto check and setup privileges

TAKAHASHI Motonobu monyo at monyo.com
Tue Mar 15 06:15:32 MDT 2011

From: Thomas Stegbauer <mailingliste1 at stegbauer.info>
Date: Tue, 15 Mar 2011 12:23:21 +0100

> when using
>  enable privileges = yes in smb.conf
> where does the permission get saved?
> I assume in the passdb backend or is there a tdb server specific file in 
> /var/lib/samba?

These infos are stored in $lockdir/account_policy.tdb file.

> cause when i give a group the permission:
> net rpc -S pa-server1 rights grant 'NET\domadmin' SePrintOperatorPrivilege
> Enter root's password:
> Successfully granted rights.
> but when listing the privileges, no one is listed.
> net rpc rights list SePrintOperatorPrivilege
> Enter root's password:

pa-server1 is localhost?

Please try:
 # net rpc -S pa-server1 rights list privileges SePrintOperatorPrivilege

TAKAHASHI Motonobu <monyo at monyo.com>

More information about the samba mailing list