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 |
/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. |
Quote:
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. |
Quote:
Whatever it is you think you need to do, you are most probably wrong. Tell us what you think you want to do. |
Quote:
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. |
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. |
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. |
Thank you all of you guys
for support i think it's advanced things in linux .it's too big for me |
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. |