Re: root should be able to do anything... right???

2000-01-17 Thread aphro
On Mon, 17 Jan 2000, David Wright wrote:

d.wrig >Err, wrong. Root can ignore ownership and permissions, but that's
d.wrig >about it. Any program that allowed root to do whatever it liked
d.wrig >would be insane.

there are kernel patches out there to restrict usage too..the patches i
use restrict access to important files like /bin/login can't be touched
without changing the kernel first ..

nate

[mailto:[EMAIL PROTECTED] ]--
   Vice President Network Operations   http://www.firetrail.com/
  Firetrail Internet Services Limited  http://www.aphroland.org/
   Everett, WA 425-348-7336http://www.linuxpowered.net/
Powered By:http://comedy.aphroland.org/
Debian 2.1 Linux 2.0.36 SMPhttp://yahoo.aphroland.org/
-[mailto:[EMAIL PROTECTED] ]--
12:55pm up 151 days, 58 min, 1 user, load average: 0.38, 0.33, 0.34


Re: root should be able to do anything... right???

2000-01-17 Thread Laurent PICOULEAU
On Mon, 17 Jan, 2000 à 12:57:43PM +0100, Ron Rademaker wrote:
> Last week I've send a mail about a weird file, that should be a directory
> but it was a character device. (/usr/X11R6/include/X11/fonts). It also had
> weird permissions:
> 
>   c---r-   1 8224 10280 49, 117 Dec  1  2031 fonts
> 
> Now I'm trying to remove this file, the system won't allow me (yes
> ofcourse I'm root). I've also tried rm -f.
> I've tried to chown the 'file'/'character device' to root and a chmod, the
> only thing I get to see is Operation not permitted.
> 
> Any suggestions???
> 
Have a look to man lsattr and man chattr

-- 
 ( >-   Laurent PICOULEAU  -< )
 /~\   [EMAIL PROTECTED]  /~\
|  \)Linux : mettez un pingouin dans votre ordinateur !(/  |
 \_|_Seuls ceux qui ne l'utilisent pas en disent du mal.   _|_/


Re: root should be able to do anything... right???

2000-01-17 Thread Ethan Benson

On 17/1/2000 Ron Rademaker wrote:


Last week I've send a mail about a weird file, that should be a directory
but it was a character device. (/usr/X11R6/include/X11/fonts). It also had
weird permissions:

c---r-   1 8224 10280 49, 117 Dec  1  2031 fonts

Now I'm trying to remove this file, the system won't allow me (yes
ofcourse I'm root). I've also tried rm -f.
I've tried to chown the 'file'/'character device' to root and a chmod, the
only thing I get to see is Operation not permitted.

Any suggestions???


the only thing that would stop root from doing those things is the 
immutability bit (or a read only filesystem but that gives a 
different error), see what lsattr says about it if it shows something 
like i--- then it is immutable, you can try to run chattr -i 
fonts but that might not work if something is really screwed up.  (as 
that file looks to be)


if the kernel thinks its immutable but chattr does not or won't 
remove the immutable bit, i have no idea how you will get rid of that 
thing!


Ethan


Re: root should be able to do anything... right???

2000-01-17 Thread David Wright
Quoting Ron Rademaker ([EMAIL PROTECTED]):

> Subject: root should be able to do anything... right???

Err, wrong. Root can ignore ownership and permissions, but that's
about it. Any program that allowed root to do whatever it liked
would be insane.

> Last week I've send a mail about a weird file, that should be a directory
> but it was a character device. (/usr/X11R6/include/X11/fonts). It also had
> weird permissions:
> 
>   c---r-   1 8224 10280 49, 117 Dec  1  2031 fonts
> 
> Now I'm trying to remove this file, the system won't allow me (yes
> ofcourse I'm root). I've also tried rm -f.
> I've tried to chown the 'file'/'character device' to root and a chmod, the
> only thing I get to see is Operation not permitted.
> 
> Any suggestions???

I agree with Eric. I think you've got a problem on that disk, even if
it's not actually dying. It might be worth checking with fsck or
examining with debugfs. I don't know much about this sort of thing,
but fsck might put the directory's files into lost+found.

Cheers,

-- 
Email:  [EMAIL PROTECTED]   Tel: +44 1908 653 739  Fax: +44 1908 655 151
Snail:  David Wright, Earth Science Dept., Milton Keynes, England, MK7 6AA
Disclaimer:   These addresses are only for reaching me, and do not signify
official stationery. Views expressed here are either my own or plagiarised.


Re: root should be able to do anything... right???

2000-01-17 Thread Onno Ebbinge
Try lsattr and chattr...

Regards,

Onno


At 12:57 PM 1/17/00 +0100, Ron Rademaker wrote:
>
>Last week I've send a mail about a weird file, that should be a directory
>but it was a character device. (/usr/X11R6/include/X11/fonts). It also had
>weird permissions:
>
>   c---r-   1 8224 10280 49, 117 Dec  1  2031 fonts
>
>Now I'm trying to remove this file, the system won't allow me (yes
>ofcourse I'm root). I've also tried rm -f.
>I've tried to chown the 'file'/'character device' to root and a chmod, the
>only thing I get to see is Operation not permitted.
>
>Any suggestions???
>
>Ron
>
>
>-- 
>Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] < /dev/null
>
>
>


Re: root should be able to do anything... right???

2000-01-17 Thread aphro
i suggest running an e2fsck on the drive there may be errors in the
filesystem

nate

On Mon, 17 Jan 2000, Ron Rademaker wrote:

ron >
ron >Last week I've send a mail about a weird file, that should be a directory
ron >but it was a character device. (/usr/X11R6/include/X11/fonts). It also had
ron >weird permissions:
ron >
ron >   c---r-   1 8224 10280 49, 117 Dec  1  2031 fonts
ron >
ron >Now I'm trying to remove this file, the system won't allow me (yes
ron >ofcourse I'm root). I've also tried rm -f.
ron >I've tried to chown the 'file'/'character device' to root and a chmod, the
ron >only thing I get to see is Operation not permitted.
ron >
ron >Any suggestions???
ron >
ron >Ron
ron >
ron >
ron >-- 
ron >Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] < /dev/null
ron >

[mailto:[EMAIL PROTECTED] ]--
   Vice President Network Operations   http://www.firetrail.com/
  Firetrail Internet Services Limited  http://www.aphroland.org/
   Everett, WA 425-348-7336http://www.linuxpowered.net/
Powered By:http://comedy.aphroland.org/
Debian 2.1 Linux 2.0.36 SMPhttp://yahoo.aphroland.org/
-[mailto:[EMAIL PROTECTED] ]--
7:21am up 150 days, 19:24, 2 users, load average: 0.27, 0.29, 0.33


Re: root should be able to do anything... right???

2000-01-17 Thread Ron Rademaker


On Mon, 17 Jan 2000, Peter S Galbraith wrote:

> 
> Ron Rademaker wrote:
> 
> > 
> > Last week I've send a mail about a weird file, that should be a directory
> > but it was a character device. (/usr/X11R6/include/X11/fonts). It also had
> > weird permissions:
> > 
> > c---r-   1 8224 10280 49, 117 Dec  1  2031 fonts
> > 
> > Now I'm trying to remove this file, the system won't allow me (yes
> > ofcourse I'm root). I've also tried rm -f.
> > I've tried to chown the 'file'/'character device' to root and a chmod, the
> > only thing I get to see is Operation not permitted.
> > 
> > Any suggestions???
> 
> >From my mailing list archive:
> 
>  To: [EMAIL PROTECTED] (Clint Adams)
>  cc: Debian User Mailing List 
>  Subject: Re: File impossible to delete  
>  Date: Fri, 08 Aug 1997 15:20:49 -0400
>  From: Peter S Galbraith <[EMAIL PROTECTED]>
>   
>  This is one for the books!
>  
>  Clint Adams wrote:
>  
>  > > On Fri, 8 Aug 1997, Peter S Galbraith wrote:
>  > > 
>  > > > Somehow, I got a corrupted file on my system:
>  > > > 
>  > > >  bash-2.00# ls -l /root/Mail/
>  > > >  total 269488144
>  > > >  c---r- 8240 8224 8224  32,  48 Aug  2  1995 drafts
>  > > > 
>  > > > I can't delete it!
>  > 
>  > You're going to need to use debugfs to get rid of it.
>  
>  This worked (with /dev/sda3 mounted as the root filesystem):
>  
>   debugfs -w -R "rm /root/Mail/drafts" /dev/sda3
>  
>  Thanks everybody!
>  --
>  Peter Galbraith, research scientist <[EMAIL PROTECTED]>
>  Maurice-Lamontagne Institute, Department of Fisheries and Oceans Canada
>  P.O. Box 1000, Mont-Joli Qc, G5H 3Z4 Canada  418-775-0852 - FAX 418-775-0546
> 

It worked!@


Re: root should be able to do anything... right???

2000-01-17 Thread Ron Rademaker
I tried to do a lsattr, when it reached fonts I got: lsattr: No such
device While reading flags on ./fonts

Ron


On Mon, 17 Jan 2000, Todd Suess wrote:

> Use lsattr and check the attributes on the file, if is is listed as type
> i (imutable) for example, you will not be able to remove the file unless
> you use chattr and remove the attribute first.
> 
> Regards,
> 
> Todd
> 
> 
> 
> At 12:57 PM 1/17/00 +0100, Ron Rademaker wrote:
> 
> >Last week I've send a mail about a weird file, that should be a directory
> >but it was a character device. (/usr/X11R6/include/X11/fonts). It also had
> >weird permissions:
> >
> > c---r-   1 8224 10280 49, 117 Dec  1  2031 fonts
> >
> >Now I'm trying to remove this file, the system won't allow me (yes
> >ofcourse I'm root). I've also tried rm -f.
> >I've tried to chown the 'file'/'character device' to root and a chmod, the
> >only thing I get to see is Operation not permitted.
> >
> >Any suggestions???
> >
> >Ron
> >
> >
> >--
> >Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] < 
> >/dev/null
> 
> 


Re: root should be able to do anything... right???

2000-01-17 Thread Peter S Galbraith

Ron Rademaker wrote:

> 
> Last week I've send a mail about a weird file, that should be a directory
> but it was a character device. (/usr/X11R6/include/X11/fonts). It also had
> weird permissions:
> 
>   c---r-   1 8224 10280 49, 117 Dec  1  2031 fonts
> 
> Now I'm trying to remove this file, the system won't allow me (yes
> ofcourse I'm root). I've also tried rm -f.
> I've tried to chown the 'file'/'character device' to root and a chmod, the
> only thing I get to see is Operation not permitted.
> 
> Any suggestions???

>From my mailing list archive:

 To: [EMAIL PROTECTED] (Clint Adams)
 cc: Debian User Mailing List 
 Subject: Re: File impossible to delete  
 Date: Fri, 08 Aug 1997 15:20:49 -0400
 From: Peter S Galbraith <[EMAIL PROTECTED]>
  
 This is one for the books!
 
 Clint Adams wrote:
 
 > > On Fri, 8 Aug 1997, Peter S Galbraith wrote:
 > > 
 > > > Somehow, I got a corrupted file on my system:
 > > > 
 > > >  bash-2.00# ls -l /root/Mail/
 > > >  total 269488144
 > > >  c---r- 8240 8224 8224  32,  48 Aug  2  1995 drafts
 > > > 
 > > > I can't delete it!
 > 
 > You're going to need to use debugfs to get rid of it.
 
 This worked (with /dev/sda3 mounted as the root filesystem):
 
  debugfs -w -R "rm /root/Mail/drafts" /dev/sda3
 
 Thanks everybody!
 --
 Peter Galbraith, research scientist <[EMAIL PROTECTED]>
 Maurice-Lamontagne Institute, Department of Fisheries and Oceans Canada
 P.O. Box 1000, Mont-Joli Qc, G5H 3Z4 Canada  418-775-0852 - FAX 418-775-0546


Re: root should be able to do anything... right???

2000-01-17 Thread Ashley Clark
On Hai, 17 Giªng 2000, Ron Rademaker wrote:
> Last week I've send a mail about a weird file, that should be a directory
> but it was a character device. (/usr/X11R6/include/X11/fonts). It also had
> weird permissions:
> 
>   c---r-   1 8224 10280 49, 117 Dec  1  2031 fonts
> 
> Now I'm trying to remove this file, the system won't allow me (yes
> ofcourse I'm root). I've also tried rm -f.
> I've tried to chown the 'file'/'character device' to root and a chmod, the
> only thing I get to see is Operation not permitted.
> 
> Any suggestions???

Have you checked the immutability bit with chattr, try a chattr -i
fonts. But it looks like your hard drive is corrupted, I'd fsck it
before trying to remove the directory/file.

-- 
Ashley Clark


Re: root should be able to do anything... right???

2000-01-17 Thread Todd Suess

Use lsattr and check the attributes on the file, if is is listed as type
i (imutable) for example, you will not be able to remove the file unless
you use chattr and remove the attribute first.

Regards,

Todd



At 12:57 PM 1/17/00 +0100, Ron Rademaker wrote:


Last week I've send a mail about a weird file, that should be a directory
but it was a character device. (/usr/X11R6/include/X11/fonts). It also had
weird permissions:

c---r-   1 8224 10280 49, 117 Dec  1  2031 fonts

Now I'm trying to remove this file, the system won't allow me (yes
ofcourse I'm root). I've also tried rm -f.
I've tried to chown the 'file'/'character device' to root and a chmod, the
only thing I get to see is Operation not permitted.

Any suggestions???

Ron


--
Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] < 
/dev/null


root should be able to do anything... right???

2000-01-17 Thread Ron Rademaker

Last week I've send a mail about a weird file, that should be a directory
but it was a character device. (/usr/X11R6/include/X11/fonts). It also had
weird permissions:

c---r-   1 8224 10280 49, 117 Dec  1  2031 fonts

Now I'm trying to remove this file, the system won't allow me (yes
ofcourse I'm root). I've also tried rm -f.
I've tried to chown the 'file'/'character device' to root and a chmod, the
only thing I get to see is Operation not permitted.

Any suggestions???

Ron