problem deleting files/users..

dalet11

Verified User
Joined
Apr 29, 2010
Messages
5
Code:
Error Removing User XXX

User removed from SSH

XXX.XXX.XXX's config files have been removed


Unix User removed from the server
User's config files deleted
Unable to delete User's data directory.
The directory ./data/users/XXX is not empty

Left user on admin's list

in /usr/local/directadmin/data/users/XXX
there is a dir' called php and in this dir there is a file called php.ini
i try to rm -fr the dir as root but its dosent work..

this files are there because i have used per-user php.ini with cgi on this server before a year.. now i using cli default..
this problem is only with users i have from the time i have used cgi..

how can i delete this filles??

thanks!
 
Then I don't know what would prevent you from deleting as root.
 
Change Ownership?

Have you tried changing ownership of the file with chown? You may need to logged in as an admin or even root to do this, or you may be able to use sudo. If the user name of the account of the php.ini file you are trying to delete is "bertb", and the account does still exist, you may be able to do it like this; you will need an admin account or better to do this, and you will be asked the password:

> sudo chown bertb:staff php.ini

> rm php.ini

You may also have to do this to the directory where this file exists.

Ralph
 
Here's something that's often a bit hard to understand, which you may easily overlook:

To delete a file you must have write permissions to it's directory, and the directory must not be chattr immutable.

Why?

Because a directory is just a file containing a list of files, and you need to write to it to delete a file.

Jeff
 
Back
Top