From owner-freebsd-questions Fri Sep 28 19:10:18 2001 Delivered-To: freebsd-questions@freebsd.org Received: from web20101.mail.yahoo.com (web20101.mail.yahoo.com [216.136.226.38]) by hub.freebsd.org (Postfix) with SMTP id 69A9C37B40D for ; Fri, 28 Sep 2001 19:10:11 -0700 (PDT) Message-ID: <20010929021011.26700.qmail@web20101.mail.yahoo.com> Received: from [209.8.72.253] by web20101.mail.yahoo.com via HTTP; Fri, 28 Sep 2001 19:10:11 PDT Date: Fri, 28 Sep 2001 19:10:11 -0700 (PDT) From: klein brock Subject: Re: operation not permitted To: parv Cc: questions@freebsd.org In-Reply-To: <20010928215329.A2661@moo.holy.cow> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG # ktrace -di chflags nosappnd /usr/home2/mytest chflags: /usr/home2/mytest: Operation not permitted chflags: /usr/home2/mytest: Operation not permitted # kdump | less 73527 ktrace RET ktrace 0 73527 ktrace CALL execve(0xbfbff6d0,0xbfbffbdc,0xbfbffbec) 73527 ktrace NAMI "/sbin/chflags" 73527 ktrace RET execve -1 errno 2 No such file or directory 73527 ktrace CALL execve(0xbfbff6d0,0xbfbffbdc,0xbfbffbec) 73527 ktrace NAMI "/bin/chflags" 73527 ktrace RET execve -1 errno 2 No such file or directory 73527 ktrace CALL execve(0xbfbff6d0,0xbfbffbdc,0xbfbffbec) 73527 ktrace NAMI "/usr/sbin/chflags" 73527 ktrace RET execve -1 errno 2 No such file or directory 73527 ktrace CALL execve(0xbfbff6d0,0xbfbffbdc,0xbfbffbec) 73527 ktrace NAMI "/usr/bin/chflags" 73527 chflags RET execve 0 73527 chflags CALL readlink(0x8054b94,0xbfbffa94,0x3f) 73527 chflags NAMI "/etc/malloc.conf" 73527 chflags RET readlink -1 errno 2 No such file or directory 73527 chflags CALL mmap(0,0x1000,0x3,0x1002,0xffffffff,0,0,0) 73527 chflags RET mmap 671436800/0x28055000 73527 chflags CALL break(0x8059000) 73527 chflags RET break 0 73527 chflags CALL break(0x805a000) 73527 chflags RET break 0 73527 chflags CALL break(0x805b000) 73527 chflags RET break 0 73527 chflags CALL break(0x805c000) 73527 chflags RET break 0 73527 chflags CALL lstat(0x805b140,0x805b154) 73527 chflags NAMI "/usr/home2/chendra" 73527 chflags RET lstat 0 73527 chflags CALL open(0x8053ac1,0,0) 73527 chflags NAMI "." 73527 chflags RET open 3 73527 chflags CALL fchdir(0x3) 73527 chflags RET fchdir 0 73527 chflags CALL chflags(0x805a000,0) 73527 chflags NAMI "/usr/home2/chendra" 73527 chflags RET chflags -1 errno 1 Operation not permitted 73527 chflags CALL write(0x2,0xbfbff40c,0x9) 73527 chflags GIO fd 2 wrote 9 bytes "chflags: " 73527 chflags RET write 9 73527 chflags CALL write(0x2,0xbfbff42c,0x12) 73527 chflags GIO fd 2 wrote 18 bytes "/usr/home2/chendra" 73527 chflags RET write 18/0x12 73527 chflags CALL write(0x2,0xbfbff3fc,0x2) 73527 chflags GIO fd 2 wrote 2 bytes ": " : --- parv wrote: > this was, on the fateful occasion around Sep 28 > 12:58 -0400, > sent by klein brock > > > > > > > i can't even turn off the flags. > > > > chflags nosappend /usr/home2/mytest > > > > chflags: /usr/home2/mytest: Operation not > permitted > > chflags: /usr/home2/mytest: Operation not > permitted > > > > i just want to delete the directory. is there any > > solution ? > > could you try one last thing for me? run the > following > ktrace (you need KTRACE option compiled in your > kernel); > as root and send the ktrace.out file (censor some of > the contents > if you want). this is to find out why/where chflags > when run as root. > > # ktrace -di chflags nosappnd /usr/home2/mytest > > ktrace.out will be created (by ktrace) in the > directory wherever > you run the above command. > > you can see browse ktrace.out w/ kdump, as in... > > # kdump | less > > ...you can press 'v' (in less) to enter the editor. > > > -- > __________________________________________________ Do You Yahoo!? Listen to your Yahoo! Mail messages from any phone. http://phone.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message