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

Re: can't remove dir



Fri, Nov 11, 2005 at 09:22:46PM -0500, kamaraju kusumanchi написал:
Anton wrote:

Good time.
I can't remove the dir 'remove'.Some months ago i move it from /tmp and rename to 'remove'.I can copy it to another disk and remove from there , but i can't
delete it .I don't know what to think .See the outputs :
==================
inf  5:32# rm -rf remove
rm: cannot remove directory `remove/.private/h': Operation not permitted
rm: cannot remove directory `remove/.private': Operation not permitted
rm: cannot remove directory `remove': Directory not empty

What about the permissions of the directory inside which 'remove' is located. In order to remove a directory you need to have write permissions on its parent directory. Also I see that you are doing all these as root (from the # prompt) Is that correct? In that case look out for the LDAP settings also.
It is inside 'hdd1' dir .User 'l' is a usual user .
See the outputs:
=======
inf  7:25# ls -la
drwxr-xr-x    6 root         4096 Авг 26 22:25 ./
drwxr-xr-x   23 root         4096 Окт 18 14:05 ../
drwxr-xr-x    2 root         4096 Апр  4  2005 flash1/
drwxr-xr-x    2 root         4096 Апр  4  2005 flash2/
drwxr-xr-x   23 root         4096 Авг  2 13:45 hdc5/
drwxr-xr-x   13 l            4096 Июн  1 09:05 hdd1/
inf 7:26# =======================
I do it as root , because i cant delete it as user ('l').
And i haven't any LDAP servers ,it's a home PC .

--
Regards , Anton .



Reply to: