[olug] directory impossible to delete
Jay Swackhamer
Jay at RebootTheUser.com
Wed Nov 26 15:38:04 UTC 2003
If you cannot delete the files, then they could have the immutable bit
set, and you wouldnt be able to delete
you can check this with
#lsattr
if it is set, you can change it with
#chattr -i <file>
then you can delete it.........
> On Wed, 2003-11-26 at 09:21, Trent Melcher wrote:
>> Those number were probably the UID and GID of a user that did exist and
>> was
>> removed, root should be able to remove these directories without the
>> owner
>> existing. However what you can do is create a user, then modify the
>> passwd
>> and group file so the UID and GID of this user matches the UID and GID
>> you
>> gave, try that and see if then the user can delete the directory.
>
> Thanks for the suggestion, Trent. I actually tried that approach and I'm
> still not having any luck. I've created a user and group 'junk' with
> those numbers for UID and GID.
> The directory is now owned by user and group 'junk', permissions are
> still 774 but anytime I login as 'junk' or try a 'sudo -u junk rm -rf
> <stubborn_directory>' as root I get the same error message:
> rm: cannot remove directory `stubborn_directory/': Operation not
> permitted
>
> chown, chmod, mv, etc all produce the same error message.
>
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug
>
--
Jay Swackhamer
Reboot The User
15791 West Dodge Road
Suite 135
Omaha, NE 68118
(402) 933-6449
(402) 933-6456 Fax
http://www.RebootTheUser.com
More information about the OLUG
mailing list