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

Re: strange permissions once more



On Thu, Jan 25, 2001 at 11:45:17AM +1100, Marc-Adrian Napoli wrote:
> hi,
> 
> root@godzilla:/www/mysql/data/eyecandy# ls -la
> total 4139667614
> drwx------    2 mysql    root         4096 Jan 19 02:13 .
> drwxrwx---   55 mysql    root         4096 Jan 22 11:39 ..
> -rw-rw----    1 mysql    root          398 Jan 11 03:35 admin.ISD
> c---r-xr-t    1 8736     13358     99,  79 May 28  2000 admin.ISM
> br-xrw----    1 26996    29559    116, 112 Apr 27  2016 admin.frm
> -rw-rw----    1 mysql    root           63 Jan 11 03:35 admin_session.ISD
> -rw-rw----    1 mysql    root         2048 Jan 11 03:35 admin_session.ISM
> -rw-rw----    1 mysql    root         8618 Oct  9 01:50 admin_session.frm
> 
> i emailed about this a while back and was told to fsck, which i did. however
> after fixing all the errors these funny things still remain and i cant
> remove them.
> 
> root@godzilla:/www/mysql/data/eyecandy# rm -rf admin.ISM
> rm: cannot unlink `admin.ISM': Operation not permitted

the inode was probably corrupted, the kernel seems to think the
immutable or append only bit is set. 

try chattr -ia admin.ISM  then rm -f admin.ISM

and if that fails use debugfs.  

> its almost as if they are devices? does anyone know if i can use the MAKEDEV
> script to remove these? i cant mv them to /dev/null and i cant remove them
> by any means i know how!

the inode says they are device special files, which is most likely
rubbish, they inode was probably corrupted is all.  you cannot use
MAKEDEV to remove them since its just a shell script using the same
commands you would use to remove such files: rm

-- 
Ethan Benson
http://www.alaska.net/~erbenson/

Attachment: pgpMi3QcFWVBx.pgp
Description: PGP signature


Reply to: