URL:
<http://gna.org/bugs/?func=detailitem&item_id=5470>
Summary: existing unix accounts & portable method for
removing users from projects
Project: Savane
Submitted by: acaro
Submitted on: Friday 03/10/2006 at 16:24
Category: Backend
Priority: C - Normal
Severity: 3 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Release:
Planned Release:
_______________________________________________________
Details:
This patch fixes two items related to user accounts:
1. Savane accounts that have corresponding unix accounts were not being
handled properly. They were being skipped entirely from joining/quitting
projects, etc. With this patch, users that have svusers as a secondary group
are now also included in user updates.
2. The "usermod -G" unix utility was being used to add/delete users from
project groups. However, this is not portable. On Linux, a user is removed
from any group that is not included in the -G option. On NetBSD, a user is
added to all groups listed in the -G option, but no group removal action is
performed. I couldn't find a portable unix utility for removing users from
groups, so instead I modified sv_users.pl to rebuild the /etc/group from
scratch. I carefully tested this functionality to be sure that groups & users
that are orthogonal to Savane are left untouched.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Friday 03/10/2006 at 16:24 Name: sv_users.patch Size: 16.61KB By:
acaro
<http://gna.org/bugs/download.php?file_id=682>
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?func=detailitem&item_id=5470>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Savane-dev mailing list
[email protected]
https://mail.gna.org/listinfo/savane-dev