bugphpGroupWare - Bugs: bug #9459, Home directory not deleted when...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #9459: Home directory not deleted when deleting user

Submitted by:  None
Submitted on:  Fri 25 Jun 2004 07:12:53 PM UTC  
 
Item Group: 0.9.16.001Category: filemanager
Severity: 3 - NormalPriority: 5 - Normal
Status: FixedPrivacy: Public
Assigned to: Dave Hall <skwashd>Open/Closed: Closed
Component Version: SVNOperating System: GNU/Linux - Debian
Reproducibility: Every TimePlanned Release: 0.9.16.001+
Fixed Release: 

Wed 07 Dec 2005 02:10:20 PM UTC, comment #4:

Patch has already been applied to stable CVS. Closing bug report.

Dave Hall <skwashd>
Project AdministratorIn charge of this item.
Wed 04 Aug 2004 09:18:05 AM UTC, comment #3:

Be carefull to not forget DAV file system too :)

Cheers,

Caeies

Caeies <Caeies>
Project Administrator
Thu 15 Jul 2004 10:52:42 PM UTC, comment #2:

anyone tested this patch? As it has the potential for data loss and no one has made any comments on it, I am bumping it to 0.9.16.001+

Dave Hall <skwashd>
Project AdministratorIn charge of this item.
Sun 11 Jul 2004 11:24:51 PM UTC, comment #1:

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

Dave Hall <skwashd>
Project AdministratorIn charge of this item.
Fri 25 Jun 2004 07:12:53 PM UTC, 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.

Anonymous

 

Attached Files
file #1540:  file-hook_delete.diff added by skwashd (2KiB - text/x-patch - Fix for filemanager hook_delete)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 7 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 07 Dec 2005 02:10:20 PM UTCskwashdStatusWorks For Me=>Fixed
  Open/ClosedOpen=>Closed
Thu 15 Jul 2004 10:52:42 PM UTCskwashdPlanned ReleaseNone=>0.9.16.001+
Sun 11 Jul 2004 11:24:51 PM UTCskwashdItem Group0.9.16.000 release=>0.9.16.001
  StatusNone=>Works For Me
  Assigned toNone=>skwashd
  Attached File-=>Added file-hook_delete.diff, #1481

Back to the top


Powered by Savane 3.1-cleanup1