Hey Ab, great stuff!

With some caveats, though...

Single user addition now appears to work properly.

Adding all groups also appears to work, for those groups in the
/etc/group file, as well as the groups available from NIS.

Adding all users only partly works.  I suspect there is an issue with
parsing the passwd file.  Also, apparently the software does get the
NIS passwd info in addition to /etc/passwd, but only some of the users
get added and some not.  In fact, I got users to add even though their
group was not in the node database (as checked with "xgetent group
n0000").

In addition, the "flush" options to xgroupset and xuserset return errors:

[EMAIL PROTECTED] sxcpu]# xuserset flush n0000
xp_user_flush: n0000: Error 5: unknown command
Error: unknown command

[EMAIL PROTECTED] sxcpu]# xgroupset flush n0000
xp_group_flush: n0000: Error 5: unknown command
Error: unknown command

Furthermore:  xuserset delete n0000 -u appears to work.  However,
after doing that, re-adding the root user, showing with xgetent passwd
n0000 that only root and the admin user are there, when I tried
"xgroupset delete n0000 -u" I got a pile of error messages saying that
the groups in question were not empty:
xp_group_del: n0000: Error 5: jockusch:group not empty
xp_group_del: n0000: Error 5: segal:group not empty


One more:  is it possible to avoid adding the admin-type groups and
users (like lp, nobody, etc)?

Daniel




On Tue, Nov 4, 2008 at 4:45 PM, Abhishek Kulkarni <[EMAIL PROTECTED]> wrote:
> after a few off-the-list exchanges with Daniel, i caught two bugs with
> xuserset.
>
> 1) the supplied arguments were not parsed properly when trying to add a
> single user with xuserset.
>
> 2) to add all the users from /etc/passwd, xuserset made a looping call
> over getpwent() but xp_user_add did a getpwnam() to find the uid for
> xcpu-admin which reset the passwd database causing it to go in an
> infinite loop.
>
> few more structural changes in xuserset & xgroupset.
>
> --
> Signed-off-by: Abhishek Kulkarni <[EMAIL PROTECTED]>
>

Reply via email to