[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gforge-devel] [ gforge-Patches-236 ] /etc/group update
From: |
noreply |
Subject: |
[Gforge-devel] [ gforge-Patches-236 ] /etc/group update |
Date: |
Tue, 25 Feb 2003 12:01:00 -0600 |
Patches item #236, was opened at 2003-02-25 12:00
You can respond by visiting:
http://gforge.org/tracker/?func=detail&atid=106&aid=236&group_id=1
Category: Site Admin
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Ronald Petty (repett0)
Assigned to: Nobody (None)
Summary: /etc/group update
Initial Comment:
This script will update /etc/group.backup. The reason
for this script is you cannot add users to groups in
UNIX if the group doesn't exist in /etc/group. However
until I am 100% sure this works I don't want to destroy
anyones /etc/group, so to make this work do the following
as root
cp /etc/group /etc/group.backup
./Group.php
diff /etc/group /etc/group.backup
mv /etc/group.backup /etc/group
When you do the diff just see if anything is missing,
if it looks ok, then replace /etc/group.
There is basic error checking, do not added the same
group more than once. Also I generate a random gid for
the group, because I cannot find any field that
represents the gid in the postgres database. I do make
sure it is unique.
I need to make the script more friendly like doing an
auto copy and if the script REALLY works dont need to
do .backup
Any comments or questions just tell me.
----------------------------------------------------------------------
You can respond by visiting:
http://gforge.org/tracker/?func=detail&atid=106&aid=236&group_id=1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gforge-devel] [ gforge-Patches-236 ] /etc/group update,
noreply <=