From: Andy Cohen <acohen () cognex ! com>
To: tru64-unix-managers
Subject: SUMMARY: Group ID Mismatch II (aka what is /proc ?)
Date: Tue, 13 Jun 2000 19:20:55 +0000 [thread overview]
Message-ID: <96092419012287.tru64-unix-managers.marc@archive.invalid> (raw)
Original post:
Related to my question of Group id mismatch.
I found a file in the /proc directory that still has the old gid (101). I
tried chgrp and chown to 100 but got the message:
chown: 29794: Function not implemented
Can a file in /proc have it's group changed? What is the /proc directory
anyway? df -k shows /proc as:
Filesystem 1024-blocks Used Available Capacity
Mounted on
/proc 0 0 0 100%
/proc
I've never understood this.
Thanks!!
Andy
Summary of replies:
basically, rtfman pages -- which I did after I sent the e-mail but there
were some very helpful replies:
...
/proc is your memory file system - it is used to manage the running system
in memory...it gets reset with each reboot...reboot the system if possible
and everything should be cleared up.
...
I think that there is a running process (or shell) that still thinks
that groupX = 100 not 101. What you'll probably need to do is kill
off that process id (29794) (and restart it, if is a daemon). Sometimes
all it takes is logging off (esp, if you are in that group :-) and
back on again.
...
No, you can't change the files in /proc -- the file in question is a process
handle from before you changed the group file, presumably.
...
/proc is a pseudo-filesystem. It makes the virtual memory of processes
available to other processes as if the memory was just a file.
If you have a gid 100 /proc file, then you have a gid 100 process.
Kill the gid 100 process (as gracefully as necessary)
since it may be holding open files with gid 100
preventing them from completely chgrp'ing to gid 101.
...
The proc file system is a image of memory, showing the processes running
its used by debuggers to access memory etc. It has no size, because its
not a physical file system, its just the amountof memory used.
The fact that you have a file(process) in there with the old gid
just means that it was run by a user in the old group - when the
jobs stops the entry will go.
...
/proc is a pseudo-filesystem containing information about processes running
on the system, etc. It basically contains the information you can get from
a ps command. It is not really a file system--- takes up no disk space,
etc,
but actually displays information residing in memory (specifically the
kernel
process table).
In the old days, there were special system calls to access the system
process
table, which had added complications of controlling who had access to what,
etc.
Then someone came up with the idea of using a derivative of the standard
file
system API to access this information, and lo the /proc filesystem came
about.
DO NOT TRY TO DIRECTLY CHANGE ANYTHING IN /proc --- you can basically ignore
it; the information in it is available from ps.
BTW, what you saw in proc was probably indicating that oracle was still
running
under the old GID.
Thanks alot!
Andy
reply other threads:[~2000-06-13 19:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox