LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   chgrp: proc/1: Operation not permitted?newbie question (https://www.linuxquestions.org/questions/linux-general-1/chgrp-proc-1-operation-not-permitted-newbie-question-735912/)

moor93 06-26-2009 05:31 PM

chgrp: proc/1: Operation not permitted?newbie question
 
hii guys


i'm newbie to linux i own linux based satellite router (Linux version 2.4.24-uc0-iDirect0 (root@gimli) (gcc version 3.3.2) #1 Tue Dec 16 23:02:49 EST 2008)

i'm using winscp to connect to my router i have root privilage i need to modify some files in proc folder the strange situation is there a folder which i can't rename copy delet it's files and the files appear empty

although i know that these files is not empty and i can open them with putty and see the informations they contain that is what i got when trying to chmod them

Command 'chgrp -R "root" "proc"'
failed with return code 1 and error message
chgrp: proc/1: Operation not permitted
chgrp: proc/1: Operation not permitted
chgrp: proc/2: Operation not permitted
chgrp: proc/2: Operation not permitted
chgrp: proc/3: Operation not permitted
chgrp: proc/3: Operation not permitted
chgrp: proc/4: Operation not permitted
chgrp: proc/4: Operation not permitted
chgrp: proc/5: Operation not permitted
chgrp: proc/5: Operation not permitted
chgrp: proc/6: Operation not permitted
chgrp: proc/6: Operation not permitted
chgrp: proc/8: Operation not permitted
chgrp: proc/8: Operation not permitted
chgrp: proc/42: Operation not permitted
chgrp: proc/42: Operation not permitted
chgrp: proc/61: Operation not permitted
chgrp: proc/61: Operation not permitted
chgrp: proc/63: Operation not permitted
chgrp: proc/63: Operation not permitted
chgrp: proc/65: Operation not permitted
chgrp: proc/65: Operation not permitted.

the same error operation not permitted when trying to rename or delet any of them? any ideas please


another question
when i change my router ethernet mac address using the following command:
ifconfig ixp0 down hw ether 00:60:43:b1:C9:62
ifconfig ixp0 up

it changed but it return to it's original mac when reboot the box
how to make the mac presis

MS3FGX 06-26-2009 05:41 PM

/proc is not a real filesystem, it is a virtual system that holds various bits of information used by the kernel and operating system. Not all file operations will work on them, as they don't exist in the traditional sense.

As for the second issue, changing the MAC address from the command line is only temporary. The MAC address is burned into the actual network card hardware, and can never be changed permanently. The closest you could come would be to setup your boot scripts to run those commands every time the system starts.

moor93 06-27-2009 02:04 AM

Quote:

Originally Posted by MS3FGX (Post 3587554)
/proc is not a real filesystem, it is a virtual system that holds various bits of information used by the kernel and operating system. Not all file operations will work on them, as they don't exist in the traditional sense.

As for the second issue, changing the MAC address from the command line is only temporary. The MAC address is burned into the actual network card hardware, and can never be changed permanently. The closest you could come would be to setup your boot scripts to run those commands every time the system starts.

Thank yo for response

so is there is a way to edit the files of proc it's really important to me.

about the script which change the mac address where can i got it.


forgive me for :

1-bad english.
2-i'm really newbie.

syg00 06-27-2009 03:45 AM

Quote:

Originally Posted by moor93 (Post 3587834)
so is there is a way to edit the files of proc it's really important to me.

No - not unless some kernel code allows it.
Whatever it is you think you need to do, you are most probably wrong. Tell us what you think you want to do.

moor93 06-27-2009 06:37 AM

Quote:

Originally Posted by syg00 (Post 3587876)
No - not unless some kernel code allows it.
Whatever it is you think you need to do, you are most probably wrong. Tell us what you think you want to do.

My situation is:

I want to change a file in proc folder that file contain serial number of the router box which is burned some where in the board hardware

there is aservice called falcon which take router parameters fro these files (proc files) all i want is tochange the information it take so change the way it's work.

syg00 06-27-2009 06:52 AM

A /proc "file" is only writable if the (kernel) code that created it allows it. Nothing to do with normal file permissions.
If you can't write to the file (even as root) nothing you can do about it.

MS3FGX 06-27-2009 07:04 AM

I am guessing you don't have access to the kernel source and toolchain to build a new kernel for the device?

You should be able to get the source through a GPL request (if they don't already have it up on their support site somewhere), but modifying the kernel and building a new image, plus figuring out how to write it to the EEPROM on the router, would likely be quite an adventure.

But aside from modifying the kernel module they are using (at which point you could make it write anything you want as the serial number), there is really nothing you can do to change it.

moor93 06-28-2009 08:18 AM

Thank you all of you guys

for support i think it's advanced things in linux .it's too big for me

michaelk 06-28-2009 08:46 AM

Moved: This thread is more suitable in linux-general and has been moved accordingly to help your thread/question get the exposure it deserves.


All times are GMT -5. The time now is 04:47 PM.