phpgroupware-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-tracker] [bugs #9459] Home directory not deleted when dele


From: Dave Hall
Subject: [Phpgroupware-tracker] [bugs #9459] Home directory not deleted when deleting user
Date: Sun, 11 Jul 2004 19:28:03 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040602 Firefox/0.8

This mail is an automated notification from the bugs tracker
 of the project: phpGroupWare.

/**************************************************************************/
[bugs #9459] Latest Modifications:

Changes by: 
                Dave Hall <address@hidden>
'Date: 
                Sun 07/11/2004 at 23:24 (Australia/Melbourne)

            What     | Removed                   | Added
---------------------------------------------------------------------------
          Item Group | 0.9.16.000 release        | 0.9.16.001
          Resolution | None                      | Works for me
         Assigned to | None                      | skwashd


------------------ Additional Follow-up Comments ----------------------------
Hi,

I played with this bug, and found the problem.  I am reluctant to allow phpgw 
to delete all files owned by that user, we need better options to allow that.  
Some users could lose files.  As an alternative, I have fixed the 
hook_deleteaccount to remove all journal entries owned by that user.  This 
should fix the problem.  A sysadmin will still need to remove the home dir and 
its contents if they want to remove the user's files.

Recreating a user with the same login will now allow the new user access to the 
old home dir, so if a user is accidentially deleted the files will still be 
there, but the rest of their phpgw data will be gone.

The attached patch is a CVS RCS diff, download it to your home directory.  Then 
it can be applied with the following commands:
cd /path/to/phpgroupware/filemanager/inc/
patch -p0 <~/file-hook_delete.diff

Then test it and report back here.  Only test this on a non vital install, if 
something goes wrong vfs entries may be lost.

Cheers







/**************************************************************************/
[bugs #9459] Full Item Snapshot:

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=9459>
Project: phpGroupWare
Submitted by: 0
On: Fri 06/25/2004 at 19:12

Category:  filemanager
Item Group:  0.9.16.001
Severity:  5 - Average
Priority:  5 - Normal
Resolution:  Works for me
Assigned to:  skwashd
Status:  Open
Component Version:  CVS
Platform Version:  GNU/Linux - Debian
Reproducibility:  Every Time


Summary:  Home directory not deleted when deleting user

Original Submission:  When I delete a user, its home directory in filesystem is 
not really deleted, even selecting "Delete All Records". Worse, If  a create a 
new user with same login of previous one (i.e.: I recreate it), it no longer 
has access to its home. 

Follow-up Comments
------------------


-------------------------------------------------------
Date: Sun 07/11/2004 at 23:24       By: skwashd
Hi,

I played with this bug, and found the problem.  I am reluctant to allow phpgw 
to delete all files owned by that user, we need better options to allow that.  
Some users could lose files.  As an alternative, I have fixed the 
hook_deleteaccount to remove all journal entries owned by that user.  This 
should fix the problem.  A sysadmin will still need to remove the home dir and 
its contents if they want to remove the user's files.

Recreating a user with the same login will now allow the new user access to the 
old home dir, so if a user is accidentially deleted the files will still be 
there, but the rest of their phpgw data will be gone.

The attached patch is a CVS RCS diff, download it to your home directory.  Then 
it can be applied with the following commands:
cd /path/to/phpgroupware/filemanager/inc/
patch -p0 <~/file-hook_delete.diff

Then test it and report back here.  Only test this on a non vital install, if 
something goes wrong vfs entries may be lost.

Cheers







File Attachments
-------------------

-------------------------------------------------------
Date: Sun 07/11/2004 at 23:24  Name: file-hook_delete.diff  Size: 2.3KB   By: 
skwashd
Fix for filemanager hook_delete
http://savannah.gnu.org/bugs/download.php?item_id=9459&amp;item_file_id=1481






For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=9459>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/







reply via email to

[Prev in Thread] Current Thread [Next in Thread]