Operation not permitted as ROOT user!, i thought root can do everything

This is a discussion on Operation not permitted as ROOT user!, i thought root can do everything within the Linux Security forums, part of the System Security and Security Related category; i have 4 hard drives on a server computer, all of them mount correctly, except for one of the hard ...


Go Back   Usenet Forums > System Security and Security Related > Linux Security

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-03-2004
Avi
 
Posts: n/a
Default Operation not permitted as ROOT user!, i thought root can do everything

i have 4 hard drives on a server computer, all of them mount
correctly, except for one of the hard drives. The problem is that i
have no permissions to change the owner or user group of any files or
folder within that hard drive. Its a linux partition
this is what /sbin/fdisk shows

Disk /dev/hdc: 81.9 GB, 81964302336 bytes
16 heads, 63 sectors/track, 158816 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 1 158816 80043232+ 83 Linux

This is my /etc/fstab file, i mounted everything the same way, all the
other hardrives work allow me to change permissions and owner,etc,
except for hdc1.

/dev/sdb1 /mnt/sdb1 auto defaults
0 0

/dev/hda4 /mnt/hda4 auto defaults
0 0

/dev/sda1 /mnt/sda1 auto defaults
0 0

/dev/sdc1 /mnt/sdc1 auto defaults
0 0

/dev/hdc1 /mnt/hdc1 auto defaults
0 0

example of what i am tryin to do, avi is the username, ground_unit is
the usergroup

[root@SERVER hdc1]# touch asdf
[root@SERVER hdc1]# ll asdf
-rwxr-xr-x 1 root root 0 Jul 3 14:25 asdf
[root@SERVER hdc1]# chgrp ground_unit asdf
chgrp: changing group of `asdf': Operation not permitted
[root@SERVER hdc1]# chown avi asdf
chown: changing ownership of `asdf': Operation not permitted
Reply With Quote
  #2 (permalink)  
Old 07-03-2004
Moritz Lenz
 
Posts: n/a
Default Re: Operation not permitted as ROOT user!, i thought root can do everything

Hi,
first: "operation not permitted" ist not the same as "permission
denied"

"operation not permitted" may occur if you try to do something that
ist not supported by your system, like changeing the permissions on a
fat32-filesystem oder using dma without the apropriate ide kernel
module.

On 2004-07-03, Avi <subhas@nuhype.com> wrote:
>[...]
> Disk /dev/hdc: 81.9 GB, 81964302336 bytes
> 16 heads, 63 sectors/track, 158816 cylinders
> Units = cylinders of 1008 * 512 = 516096 bytes
>
> Device Boot Start End Blocks Id System
> /dev/hdc1 1 158816 80043232+ 83 Linux
>
> This is my /etc/fstab file, i mounted everything the same way, all the
> other hardrives work allow me to change permissions and owner,etc,
> except for hdc1.
>[...]
>
> /dev/sdc1 /mnt/sdc1 auto defaults
> 0 0


you should use the explicit file system type, like
/dev/sdc1 /mnt/sdc1 ext2 rw,errors=remount-ro

>
> /dev/hdc1 /mnt/hdc1 auto defaults
> 0 0
>
> example of what i am tryin to do, avi is the username, ground_unit is
> the usergroup
>
> [root@SERVER hdc1]# touch asdf
> [root@SERVER hdc1]# ll asdf
> -rwxr-xr-x 1 root root 0 Jul 3 14:25 asdf
> [root@SERVER hdc1]# chgrp ground_unit asdf
> chgrp: changing group of `asdf': Operation not permitted
> [root@SERVER hdc1]# chown avi asdf
> chown: changing ownership of `asdf': Operation not permitted


is hdc1 mountet correctly as ext2? is it read-only? does group asdf
exists?

HTH,
Moritz
Reply With Quote
  #3 (permalink)  
Old 07-03-2004
Walter Mautner
 
Posts: n/a
Default Re: Operation not permitted as ROOT user!, i thought root can do everything

Avi wrote:

> i have 4 hard drives on a server computer, all of them mount
> correctly, except for one of the hard drives. The problem is that i
> have no permissions to change the owner or user group of any files or
> folder within that hard drive. Its a linux partition
> this is what /sbin/fdisk shows
>
> Disk /dev/hdc: 81.9 GB, 81964302336 bytes
> 16 heads, 63 sectors/track, 158816 cylinders
> Units = cylinders of 1008 * 512 = 516096 bytes
>
> Device Boot Start End Blocks Id System
> /dev/hdc1 1 158816 80043232+ 83 Linux
>

Probably your filesystem needs a fsck and is mounted r/o. Unmount it first.
Run fsck -y on it, and/or issue a "mount <your mountpoint> -o remount,rw".
--
Longhorn error#4711: TCPA / NGSCB VIOLATION: Microsoft optical mouse
detected penguin patterns on mousepad. Partition scan in progress
*to*remove*offending*incompatible*products.**React ivate*your*MS*software.
Linux woodpecker.homnet.at 2.6.7-2mdkpkt*[LinuxCounter#295241]
Reply With Quote
  #4 (permalink)  
Old 07-19-2004
nick666
 
Posts: n/a
Default Re: Operation not permitted as ROOT user!, i thought root can do everything

I am not sure if it helps but I was getting this error if the moun
poing is mounted when this command is issued. Did you unmount it whe
you tried to chown
-
nick66
-----------------------------------------------------------------------
Posted via http://www.webservertalk.co
-----------------------------------------------------------------------
View this thread: http://www.webservertalk.com/message293427.htm

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 03:37 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0