process filesystem
I've been experimenting with /proc and there are two things that I don't understand. Maybe someone can help me. I have an AMD Athlon(tm) 64 X2 Dual Core Processor 4800+ in this machine. And I'm using the linux 2.6.13-15.8-smp #1 SMP Tue Feb 7 11:07:24 UTC 2006 x86_64 x86_64 x86_64 GNU/Linux kernal. The Yast Hardware Information module says 'cpu Mhz:2411.15' is the cpu frequency. But cat /proc/cpuinfo says 'cpu MHz : 1004.645'. Why does the kernal say it's a 1004.645 Mhz cpu? Is this1004.645 Mhz the rate data is being processed? Even as root I'm being denied acces to certain folders in proc: # /proc/stat bash: /proc/stat: Permission denied l # /proc/tty/driver/serial bash: /proc/tty/driver/serial: Permission denied # /proc/bus/usb/devices bash: /proc/bus/usb/devices: Permission denied Why?. Thanks, Jerome
On Sunday 14 May 2006 22:52, Susemail wrote:
I've been experimenting with /proc and there are two things that I don't understand. Maybe someone can help me.
I have an AMD Athlon(tm) 64 X2 Dual Core Processor 4800+ in this machine. And I'm using the linux 2.6.13-15.8-smp #1 SMP Tue Feb 7 11:07:24 UTC 2006 x86_64 x86_64 x86_64 GNU/Linux kernal.
The Yast Hardware Information module says 'cpu Mhz:2411.15' is the cpu frequency. But cat /proc/cpuinfo says 'cpu MHz : 1004.645'. Why does the kernal say it's a 1004.645 Mhz cpu? Is this1004.645 Mhz the rate data is being processed?
Even as root I'm being denied acces to certain folders in proc:
# /proc/stat bash: /proc/stat: Permission denied l # /proc/tty/driver/serial bash: /proc/tty/driver/serial: Permission denied # /proc/bus/usb/devices bash: /proc/bus/usb/devices: Permission denied
Why?.
Thanks, Jerome
you dont make it clear just what you are tryingh to do .. ds9:/proc # bash: /proc/stat bash: bash:: command not found ds9:/proc # where as .. ds9:/proc # ls . 22576 30272 3309 4717 7506 fs net .. 22705 30302 34 4900 acpi ide partitions 1 24 30313 35 4971 asound interrupts scsi 13865 2727 30319 36 4982 bluetooth iomem self 13899 28999 30320 37 4984 buddyinfo ioports slabinfo 13900 2903 30324 4 4993 bus irq splash 13901 3 30326 433 4994 cmdline kallsyms stat 13902 30147 30329 434 4995 config.gz kcore swaps 14256 30148 30369 435 4999 cpufreq kmsg sys 14258 30166 30408 4566 5 cpuinfo loadavg sysrq-trigger 14463 30224 30457 4571 5000 crypto locks sysvipc 14673 30227 30473 4582 5001 devices mdstat tty 1580 30229 30474 4588 5002 diskstats meminfo uptime 1656 30231 3157 4595 5003 dma misc version 1778 30236 3164 4599 5004 driver mm vmstat 1869 30246 3191 4609 585 execdomains modules 2 30248 31945 4611 6 fb mounts 2187 30250 3202 4696 620 filesystems mtrr ds9:/proc # So is this more a case of command confusion than not bieng allowed to gain access .. ceertainly looks that way to me .. Pete . -- The Labour party has changed their emblem from a rose to a condom as it more accurately reflects the government's political stance. A condom allows for inflation, halts production, destroys the next generation, protects a bunch of pricks, and gives you a sense of security while you are actually being fucked. from GSM
On Sunday 14 May 2006 12:37, Peter Nikolic wrote:
On Sunday 14 May 2006 22:52, Susemail wrote:
I've been experimenting with /proc and there are two things that I don't understand. Maybe someone can help me.
I have an AMD Athlon(tm) 64 X2 Dual Core Processor 4800+ in this machine. And I'm using the linux 2.6.13-15.8-smp #1 SMP Tue Feb 7 11:07:24 UTC 2006 x86_64 x86_64 x86_64 GNU/Linux kernal.
The Yast Hardware Information module says 'cpu Mhz:2411.15' is the cpu frequency. But cat /proc/cpuinfo says 'cpu MHz : 1004.645'. Why does the kernal say it's a 1004.645 Mhz cpu? Is this1004.645 Mhz the rate data is being processed?
Even as root I'm being denied acces to certain folders in proc:
# /proc/stat bash: /proc/stat: Permission denied l # /proc/tty/driver/serial bash: /proc/tty/driver/serial: Permission denied # /proc/bus/usb/devices bash: /proc/bus/usb/devices: Permission denied
Why?.
Thanks, Jerome
you dont make it clear just what you are tryingh to do ..
ds9:/proc # bash: /proc/stat bash: bash:: command not found ds9:/proc #
where as .. ds9:/proc # ls . 22576 30272 3309 4717 7506 fs net .. 22705 30302 34 4900 acpi ide partitions 1 24 30313 35 4971 asound interrupts scsi 13865 2727 30319 36 4982 bluetooth iomem self 13899 28999 30320 37 4984 buddyinfo ioports slabinfo 13900 2903 30324 4 4993 bus irq splash 13901 3 30326 433 4994 cmdline kallsyms stat 13902 30147 30329 434 4995 config.gz kcore swaps 14256 30148 30369 435 4999 cpufreq kmsg sys 14258 30166 30408 4566 5 cpuinfo loadavg sysrq-trigger 14463 30224 30457 4571 5000 crypto locks sysvipc 14673 30227 30473 4582 5001 devices mdstat tty 1580 30229 30474 4588 5002 diskstats meminfo uptime 1656 30231 3157 4595 5003 dma misc version 1778 30236 3164 4599 5004 driver mm vmstat 1869 30246 3191 4609 585 execdomains modules 2 30248 31945 4611 6 fb mounts 2187 30250 3202 4696 620 filesystems mtrr ds9:/proc #
So is this more a case of command confusion than not bieng allowed to gain access .. ceertainly looks that way to me ..
Pete .
I'm trying to find out why the Yast Hardware Information module says Mhz:2411.15' is the cpu frequency and cat /proc/cpuinfo says 'cpu MHz : 1004.645'. Also when I run /proc/stat as root I get 'Permission denied', I would like to know why. Thanks, Jerome
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Monday 2006-05-15 at 13:07 -1000, Susemail wrote:
Also when I run /proc/stat as root I get 'Permission denied', I would like to know why.
Because it is not a program. Since when can you execute a data file? - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFEaaZNtTMYHG2NR9URAhpOAJ9R1qWclt3eSoUCJ1jufaeH7CxCQACfTWJo SmHU9cWCIhPjwbVouyBMaos= =QCc9 -----END PGP SIGNATURE-----
On Tuesday 16 May 2006 11:15, Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Monday 2006-05-15 at 13:07 -1000, Susemail wrote:
Also when I run /proc/stat as root I get 'Permission denied', I would like to know why.
Because it is not a program. Since when can you execute a data file?
- -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76
iD8DBQFEaaZNtTMYHG2NR9URAhpOAJ9R1qWclt3eSoUCJ1jufaeH7CxCQACfTWJo SmHU9cWCIhPjwbVouyBMaos= =QCc9 -----END PGP SIGNATURE-----
Is That reason enough .. ?.. Pete . -- The Labour party has changed their emblem from a rose to a condom as it more accurately reflects the government's political stance. A condom allows for inflation, halts production, destroys the next generation, protects a bunch of pricks, and gives you a sense of security while you are actually being fucked. from GSM
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Tuesday 2006-05-16 at 17:51 +0100, Peter Nikolic wrote:
The Monday 2006-05-15 at 13:07 -1000, Susemail wrote:
Also when I run /proc/stat as root I get 'Permission denied', I would like to know why.
Because it is not a program. Since when can you execute a data file?
Is That reason enough .. ?..
Are you serious? :-O Do you really think it is possible to run "/proc/stat"? Well, if you insist... change its attribute to executable via "chmod a+x /proc/stat", and try... but I'm not responsible of any consequences to your system. At best, it will simply crash the console. It's your computer you are playing with, I hope. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFEamk4tTMYHG2NR9URAtgeAJ9892mG9rC5mPqxU/KjHdKQBNcH7gCdGCKY 3nMlvzDg/RaxAQPzt7mLWyQ= =z5Ry -----END PGP SIGNATURE-----
On Tuesday 16 May 2006 06:51, Peter Nikolic wrote:
On Tuesday 16 May 2006 11:15, Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Monday 2006-05-15 at 13:07 -1000, Susemail wrote:
Also when I run /proc/stat as root I get 'Permission denied', I would like to know why.
Because it is not a program. Since when can you execute a data file?
OK I should have said: 'Also when I cat /proc/stat as root I get 'Permission denied','
- -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76
iD8DBQFEaaZNtTMYHG2NR9URAhpOAJ9R1qWclt3eSoUCJ1jufaeH7CxCQACfTWJo SmHU9cWCIhPjwbVouyBMaos= =QCc9 -----END PGP SIGNATURE-----
Is That reason enough .. ?..
Pete .
-- The Labour party has changed their emblem from a rose to a condom as it more accurately reflects the government's political stance.
A condom allows for inflation, halts production, destroys the next generation, protects a bunch of pricks, and gives you a sense of security while you are actually being fucked.
from GSM
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Tuesday 2006-05-16 at 17:03 -1000, Susemail wrote:
OK I should have said: 'Also when I cat /proc/stat as root I get 'Permission denied','
It should even work as user; what permissions do you have on it? cer@nimrodel:~> l /proc/stat -r--r--r-- 1 root root 0 2006-05-06 00:11 /proc/stat cer@nimrodel:~> cat /proc/stat cpu 2162162 689012 967829 33421997 1368578 28910 7002 0 cpu0 2162162 689012 967829 33421997 1368578 28910 7002 0 intr 414147212 386513678 898253 0 7 3 0 8 7602216 30 57 0 10923274 2545802 0 2058633 3605251 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ctxt 421608001 btime 1146866938 processes 300664 procs_running 1 procs_blocked 0 cer@nimrodel:~> - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFEaxTAtTMYHG2NR9URAukfAJ9Nf8ozzvJla6WjgdUAMSHCmLuzLQCglmMY wBPyvrHatPvXVbIKQWPoasI= =UAR0 -----END PGP SIGNATURE-----
On Wednesday 17 May 2006 02:19, Carlos E. R. wrote:
The Tuesday 2006-05-16 at 17:03 -1000, Susemail wrote:
OK I should have said: 'Also when I cat /proc/stat as root I get 'Permission denied','
It should even work as user; what permissions do you have on it?
I can't tell right now. I'm not at home.
cer@nimrodel:~> l /proc/stat -r--r--r-- 1 root root 0 2006-05-06 00:11 /proc/stat cer@nimrodel:~> cat /proc/stat cpu 2162162 689012 967829 33421997 1368578 28910 7002 0 cpu0 2162162 689012 967829 33421997 1368578 28910 7002 0 intr 414147212 386513678 898253 0 7 3 0 8 7602216 30 57 0 10923274 2545802 0 2058633 3605251 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ctxt 421608001 btime 1146866938 processes 300664 procs_running 1 procs_blocked 0 cer@nimrodel:~>
-- Cheers, Carlos Robinson
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Wednesday 2006-05-17 at 10:30 -1000, Susemail wrote:
It should even work as user; what permissions do you have on it?
I can't tell right now. I'm not at home.
Then don't answer; wait till you get home, and then, answer. :-P - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFEa6RUtTMYHG2NR9URAqvaAJ9JeVN6o2reg4EFKwNHOCvyM56IpgCeP57z Jo0RhI41hBYC0xi7SoZIYxE= =Pg7n -----END PGP SIGNATURE-----
On Wednesday 17 May 2006 04:03, Susemail wrote:
On Tuesday 16 May 2006 06:51, Peter Nikolic wrote:
On Tuesday 16 May 2006 11:15, Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Monday 2006-05-15 at 13:07 -1000, Susemail wrote:
Also when I run /proc/stat as root I get 'Permission denied', I would like to know why.
Now that could be geting a little scary last time i had that response it was the Hdd going legs up i recovered it for a while then it went totaly dead big pain as the laet backup im had was too old to be of any use .. New drive time maybe .. Pete . -- The Labour party has changed their emblem from a rose to a condom as it more accurately reflects the government's political stance. A condom allows for inflation, halts production, destroys the next generation, protects a bunch of pricks, and gives you a sense of security while you are actually being fucked. from GSM
On Wed, May 17, 2006 at 09:05:31PM +0100, Peter Nikolic wrote:
On Wednesday 17 May 2006 04:03, Susemail wrote:
On Tuesday 16 May 2006 06:51, Peter Nikolic wrote:
On Tuesday 16 May 2006 11:15, Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Monday 2006-05-15 at 13:07 -1000, Susemail wrote:
Also when I run /proc/stat as root I get 'Permission denied', I would like to know why.
Now that could be geting a little scary last time i had that response it was the Hdd going legs up i recovered it for a while then it went totaly dead big pain as the laet backup im had was too old to be of any use ..
New drive time maybe ..
/proc/stat isn't an executable. That's why it gives 'Permission denied'. That's the same error you'll get if you try to run any other file that isn't executable. It has nothing to do with a hard drive. In fact, the /proc filesystem isn't even on a hard drive. Michael -- San Francisco, CA
participants (4)
-
Carlos E. R.
-
Michael Nelson
-
Peter Nikolic
-
Susemail