From: "Pankaj Agarwal" <pankaj@toughguy.net>
To: <linux-os@analogic.com>
Cc: <linux-kernel@vger.kernel.org>, "Linux Net" <linux-net@vger.kernel.org>
Subject: Re: Query - Regarding strange behaviour.
Date: Thu, 3 Feb 2005 21:15:33 +0530 [thread overview]
Message-ID: <015901c50a07$721f2620$8d00150a@dreammac> (raw)
In-Reply-To: Pine.LNX.4.61.0502031017430.9404@chaos.analogic.com
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)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
none on /dev/shm type tmpfs (rw)
[root@test /]# cd /usr
[root@test usr]# cp bin testbin
cp: omitting directory `bin'
[root@test usr]# ls
bin etc include kerberos libexec sbin src test121212 X11R6
dict games java lib local share test tmp
[root@test usr]#
----- Original Message -----
From: "linux-os" <linux-os@analogic.com>
To: "Pankaj Agarwal" <pankaj@toughguy.net>
Cc: <linux-kernel@vger.kernel.org>; "Linux Net" <linux-net@vger.kernel.org>
Sent: Thursday, February 03, 2005 9:05 PM
Subject: Re: Query - Regarding strange behaviour.
> On Thu, 3 Feb 2005, Pankaj Agarwal wrote:
>
>> Hi,
>>
>> In my system there's a strange behaviour.... its not allowing me to
>> create any file in /usr/bin even as root. Its chmod is set to 755. Its
>> even not allowing me to change the chmod value of /usr/bin. The strangest
>> part which i felt is ...its shows the owner and group as root when i
>> issue command "ls -ld /usr/bin" and not allowing root to create any file
>> or directory under /usr/bin and not even allowing to change the chmod
>> value. The error is access permission denied... I can change the chmod
>> value of /usr and other directories under /usr/...but not of bin....
>>
>> I need your help/support. kindly let me know what all can i try to
>> resolve this problem.
>>
>> Thanks and Regards,
>>
>> Pankaj Agarwal
>
> See if your file-system has gotten hurt. Boot with init=/bin/bash
> and execute `/sbin/fsck -f /` to force a check of the root file-system.
>
> The next check is to see if you can fix the protections when
> you are the only one accessing the file-system:
>
> # mount -n -o remount / # re-mount root r/w
> # cd /usr
> # chmod 755 bin
> # ls -la # See if it worked
> # unmount /
>
> The next check is to replace the /usr/bin directory. Since `mv`
> and `mkdir` are in /bin, the following should work.
>
> # mount -n -o remount / # re-mount root r/w
> # cd /usr
> # mv bin foo # Rename 'strange' directory
> # mkdir bin # Make a new one
> # cd foo # Change to original
> # mv * ../bin # Rename all contents to new
> # cd .. # rmdir foo # Remove bad directory
> # chmod 755 bin # Fix protection
> # umount /
>
> After you have fixed things, you don't have to re-boot.
> Just execute:
>
> # exec /sbin/init auto
>
>
> Cheers,
> Dick Johnson
> Penguin : Linux version 2.6.10 on an i686 machine (5537.79 BogoMips).
> Notice : All mail here is now cached for review by Dictator Bush.
> 98.36% of all statistics are fiction.
next prev parent reply other threads:[~2005-02-03 15:51 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 [this message]
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
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='015901c50a07$721f2620$8d00150a@dreammac' \
--to=pankaj@toughguy.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-net@vger.kernel.org \
--cc=linux-os@analogic.com \
/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