chgrp: proc/1: Operation not permitted?newbie question
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
/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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.