Date: Fri, 28 Sep 2001 19:10:11 -0700 (PDT) From: klein brock <getzz1@yahoo.com> To: parv <parv_@yahoo.com> Cc: questions@freebsd.org Subject: Re: operation not permitted Message-ID: <20010929021011.26700.qmail@web20101.mail.yahoo.com> In-Reply-To: <20010928215329.A2661@moo.holy.cow>
next in thread | previous in thread | raw e-mail | index | archive | help
# 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 <parv_@yahoo.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010929021011.26700.qmail>
