From: Martijn van Oosterhout <kleptog@svana.org>
To: Pankaj Agarwal <pankaj@toughguy.net>
Cc: S Iremonger <exxsi@bath.ac.uk>,
linux-os@analogic.com, linux-kernel@vger.kernel.org,
Linux Net <linux-net@vger.kernel.org>
Subject: Re: Query - Regarding strange behaviour.
Date: Thu, 3 Feb 2005 17:31:15 +0100 [thread overview]
Message-ID: <20050203163110.GE16100@svana.org> (raw)
In-Reply-To: <019501c50a0b$fcf8a9c0$8d00150a@dreammac>
[-- Attachment #1: Type: text/plain, Size: 1956 bytes --]
On Thu, Feb 03, 2005 at 09:48:12PM +0530, Pankaj Agarwal wrote:
> [root@test usr]# lsattr -d /usr/bin
> su--ia------- /usr/bin
Well, there's your problem. These mean:
s: when deleted, its blocks are zeroed and written back to the disk
u: when deleted, its contents are saved.
i: cannot be modified: it cannot be deleted or renamed,
a: can only be open in append mode for writing
Remove those flags with chattr...
Hope this helps,
>
> ----- Original Message -----
> From: "S Iremonger" <exxsi@bath.ac.uk>
> To: "Pankaj Agarwal" <pankaj@toughguy.net>
> Cc: <linux-os@analogic.com>; <linux-kernel@vger.kernel.org>; "Linux Net"
> <linux-net@vger.kernel.org>
> Sent: Thursday, February 03, 2005 9:37 PM
> Subject: Re: Query - Regarding strange behaviour.
>
>
> >>its not even allowing me to copy it ...then surely it wont allow me mv as
> >>well... what else can i try...
> >>[root@test root]# mount
> >>/dev/hda2 on / type ext3 (rw)
> >>[root@test /]# cd /usr
> >>[root@test usr]# cp bin testbin
> >>cp: omitting directory `bin'
> >
> >"cp" does not normally copy direcrories as such by DEFAULT.
> >
> >Use the "-R" flag on "cp" to make it 'recurse' and copy the whole
> > directory and directory/files under it.
> >
> >e.g. "cp -R bin bincopy"
> >
> >
> >And, show us all the results of the following 2 commands, please.
> >
> >ls -ld /usr/bin
> >lsattr -d /usr/bin
> >
> >--S Iremonger <exxsi@bath.ac.uk>
> >
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-net" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
next prev parent reply other threads:[~2005-02-03 16:32 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-03 14:45 Query - Regarding strange behaviour Pankaj Agarwal
2005-02-03 15:10 ` Martijn van Oosterhout
2005-02-03 15:31 ` Tim Schmielau
2005-02-03 15:34 ` Pankaj Agarwal
2005-02-03 15:43 ` linux-os
2005-02-03 15:35 ` linux-os
2005-02-03 15:45 ` Pankaj Agarwal
2005-02-03 16:00 ` linux-os
2005-02-03 16:07 ` S Iremonger
2005-02-03 16:18 ` Pankaj Agarwal
2005-02-03 16:31 ` Martijn van Oosterhout [this message]
2005-02-03 16:33 ` Martin Zwickel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050203163110.GE16100@svana.org \
--to=kleptog@svana.org \
--cc=exxsi@bath.ac.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-net@vger.kernel.org \
--cc=linux-os@analogic.com \
--cc=pankaj@toughguy.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox