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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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] |
|
|||
|
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 |