On Fri, May 24, 2002 at 08:16:25AM +1000, Jason Lim wrote:
> Hi all,
>
> This is happening on a Redhat 7.2 system, but i think it would apply
> across all Linux distros.
>
> [EMAIL PROTECTED] sbin]# pwd
> /usr/sbin
> [EMAIL PROTECTED] sbin]# chattr -iu sendmail
> [EMAIL PROTECTED] sbin]# rm sendmail
> rm: remove `sendmail'? y
> rm: cannot unlink `sendmail': Operation not permitted
>
> [EMAIL PROTECTED] sbin]# ls -al sendmail
> -rwxr-xr-x 1 root root 99161 May 1 01:21 sendmail
>
> That is happening for all the files in that directory.
>
> strace rm sendmail:
>
> lstat64("sendmail", {st_mode=S_IFREG|0755, st_size=99161, ...}) = 0
> access("sendmail", W_OK) = 0
> unlink("sendmail") = -1 EPERM (Operation not
> permitted)
>
> Any ideas as to what may be happening?[EMAIL PROTECTED]:~ $ mkdir test [EMAIL PROTECTED]:~ $ cd test [EMAIL PROTECTED]:~/test $ touch biff [EMAIL PROTECTED]:~/test $ sudo chattr +i . [EMAIL PROTECTED]:~/test $ lsattr biff -------------- biff [EMAIL PROTECTED]:~/test $ ls -l biff -rw-rw-r-- 1 nnorman nnorman 0 May 23 17:35 biff [EMAIL PROTECTED]:~/test $ rm biff rm: cannot unlink `biff': Permission denied [EMAIL PROTECTED]:~/test $ lsattr -d . ---i---------- . Check the directory. -- Nathan Norman - Micromuse Ltd. mailto:[EMAIL PROTECTED] Gil-galad was an Elven-king. | The Fellowship Of him the harpers sadly sing: | of the last whose realm was fair and free | the Ring between the Mountains and the Sea. | J.R.R. Tolkien
pgp3Ga1obacQy.pgp
Description: PGP signature

