LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 06-26-2009, 05:31 PM   #1
moor93
LQ Newbie
 
Registered: Jun 2009
Posts: 18

Rep: Reputation: 0
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
 
Old 06-26-2009, 05:41 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
/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.
 
Old 06-27-2009, 02:04 AM   #3
moor93
LQ Newbie
 
Registered: Jun 2009
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by MS3FGX View Post
/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.
 
Old 06-27-2009, 03:45 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by moor93 View Post
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.
 
Old 06-27-2009, 06:37 AM   #5
moor93
LQ Newbie
 
Registered: Jun 2009
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00 View Post
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.
 
Old 06-27-2009, 06:52 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
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.
 
Old 06-27-2009, 07:04 AM   #7
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
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.
 
Old 06-28-2009, 08:18 AM   #8
moor93
LQ Newbie
 
Registered: Jun 2009
Posts: 18

Original Poster
Rep: Reputation: 0
Thank you all of you guys

for support i think it's advanced things in linux .it's too big for me
 
Old 06-28-2009, 08:46 AM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,696

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


Reply



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 On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
chgrp: operation not permitted even though I own the file! the theorist Linux - Newbie 16 05-28-2010 11:02 PM
Operation not permitted prasunhowlader Linux - Newbie 3 08-20-2008 09:29 PM
Operation not permitted jakkals Linux - General 3 09-26-2005 07:30 PM
su - operation not permitted jrtayloriv Linux - Newbie 2 06-09-2005 09:27 PM
operation not permitted jamaso Slackware 2 05-08-2004 05:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration