Red Hat Bugzilla – Bug 457381
pdbedit -G doesn't work
Last modified: 2009-09-02 07:54:58 EDT
Description of problem:
pdbedit -u user -G SID doesn't change the group SID
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. pdbedit -u sambauser to see the Group SID
2. pdbedit -u sambauser -G new-sid (for example put 512 to the end instead of
the default 513)
3. pdbedit -u sambauser to see if the Group SID has changed
Group sid stays the same
changed Group SID
I think this is a documentation problem.
The manpage mentions a -G option but there is no such option in the pdbedit utility.
This is consistent with samba behaviour though, as the group SID for a user is always determined by the users primary GID.
So if a special Group SID is needed then you need to create a group mapping and change the system user's primary GID.
I will see how easy it is to patch the manpage.
Created attachment 344816 [details]
Pdbedit manpage fixes
Turns out the manpage was outdated wrt this option, if it ever existed in the code it doesn't anymore, update manpage to reflect reality.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.