Re: /usr/ucb/ps causes disk space issues



Anoop <anoopkumarv@xxxxxxxxx> wrote:
So in our case it is hampering our work. Because the /usr/ucb/ps
command writes something into /tmp which automatically gets root
ownership, we cannot delete the created files. This eventually fills
up /tmp and when other processes need /tmp for whatever, they just
fail coz there is no disk space available on /tmp...

Well, *that* part of it is abnormal. Under normal circumstances, it
creates one file in /tmp and reuses it. Your configuration for some
reason is unable to use /tmp/ups_data, and it creates an alternative
every other time.

I might truss it when run as root to see what it's attempting to do to
that file and what return codes come back from those operations.

Is there any workaround? I cannot use /usr/bin/ps or psgrep as they do
not provide the same information we need... Can I tell /usr/ucb/ps to
write this file elsewhere or not write it at all.. ? Just hoping!

Your system is broken. You need to do some investigation to determine
what is broken so that you can repair it. I'd guess something associate
with either the ps command or the /tmp filesystem is odd, but that's
just a guess from over here.

--
Darren Dunham ddunham@xxxxxxxx
Senior Technical Consultant TAOS http://www.taos.com/
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >
.



Relevant Pages

  • Re: Apple recommending anti-virus software for Macs?
    ... > To be ultra-safe with the 'rm' command, ... Not a bad idea for root, It would drive me nuts in my user account. ... downloads directory and executing it. ... That I type an EOF is a trivial difference versus 'sudo' exiting ...
    (comp.sys.mac.system)
  • Re: [ squeeze ] Grub2 RAID1 LVM2 boot failure
    ... insmod mdraid ... That UUID it's not the same that grub will use for boot. ... the `root` partition from the point of view of grub is the partition ... BTW this command is undocummented in the wiki, ...
    (Debian-User)
  • RE: wrong command
    ... It's possible to retrieve file permissions belonging to a rpm package: ... By mistake i run below command on root. ... It changed the ownership of all directories with their respective files ...
    (RedHat)
  • Re: [opensuse] su - -c $command user ???
    ... I'd like to calculate a command-string as root and pass it with su ... into the context of a unprivileged user to run the command not as ... Basically I need to know $d after the daemonuser created and filled ... Note the echo isn't really going to be a fully valuable ...
    (SuSE)
  • RE: wrong command
    ... By mistake i run below command on root. ... It changed the ownership of all directories with their respective files ...
    (RedHat)