- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: profile: cannot fork: too many processes
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-03-2011 11:12 AM
тАО01-03-2011 11:12 AM
Re: profile: cannot fork: too many processes
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-03-2011 11:30 AM
тАО01-03-2011 11:30 AM
Re: profile: cannot fork: too many processes
cat /etc/passwd | grep scott
scott:*:20445:20244:Application Developers:/home/scott:/usr/bin/ksh
crontab has no entry for scott user
inittab content attached
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-03-2011 11:33 AM
тАО01-03-2011 11:33 AM
Re: profile: cannot fork: too many processes
If it exists, rename authorized_keys or authorized_keys2 file to something like *.org
Long shot..but scott's processes could be spawned via ssh?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-03-2011 11:56 AM
тАО01-03-2011 11:56 AM
Re: profile: cannot fork: too many processes
>is above code ok to run
You don't. You can run the above but you won't get anywhere with the fork bomb. My suggestions on Mel's scripts are to prevent useless output. But they don't solve anything.
You need to do these two steps. The first to stop the slippery PIDs and the second to kill them all. You could repeat the first several times.
kill -STOP $(UNIX95=EXTENDED_PS ps -u scott -opid=)
kill $(UNIX95=EXTENDED_PS ps -u scott -opid=)
>Bill: Since the problem seems to be recurring, look at /etc/inittab
A fork bomb recurs too.
>And finally, remove any bad profile code by renaming ~scott/.profile and ~scott/.kshrc to something else like .profile.old and .kshrc.old.
Yes, I was also thinking that but just changing the permissions to: ugo=
I.e. after we kill all of scott, the next login may start it again.
>.profile and .kshrc is being shared with other user and that user is not having any issue.
How is it shared, a copy?
Why not change the permissions and see if things stop?
>inittab content attached
I don't see it.
>Alzhy: scott's processes could be spawned via ssh?
>rename authorized_keys or authorized_keys2 file
Instead of rename, change the permissions: chmod u-rwx ~scott/.ssh
The following may tell you the login source:
who -a | grep scott
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-03-2011 12:07 PM
тАО01-03-2011 12:07 PM
Re: profile: cannot fork: too many processes
kill -STOP $(UNIX95=EXTENDED_PS ps -u scott -opid=)
I ran this 3 times
and all processes killed
now i can login with user scott
Dennis ThankYou very much for help.
This is very helpful
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-03-2011 12:11 PM
тАО01-03-2011 12:11 PM
Re: profile: cannot fork: too many processes
- « Previous
- Next »