Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've a box with three identical looking process trees - a bash process is a child of an su - which is the child of init.
These three processes were started on consecutive days about 6 weeks ago and have collectively cause a quiet web server to have a load average of 4. I've not seen these before, but I've not been looking, and suspect that their load is likely to correlate to a point yesterday morning when that same server appeared to start doing 100 DNS requests per second of the same internal hostname.
Why would an su not started on boot (box has 80+ days uptime before these started) be owned directly by init? Would they have been reparented somehow?
I've not got a clue what these are doing and why they are there. The owners are a generic system account for our webapp server and I can see from proc and lsof what their working directories are an such, but past this I can't really find out anything about them, and obviously as they parent back to init so quickly, there's not much else to go on.
There is nothing in the cmdline, just "su -" for the parent and "-bash" for the child. We have a horrible convention of running "sudo su -" to get root access, so we can't evn see who ran the su, as thanks to sudo, it was root...
nohup sounds like a plausible route to explore, thanks,
these are too old now, very start of june they appeared, and our log monitoring infrastructure is just woeful... we'll have the logs on our syslog servers, but I, as the principle Linux Administrator, am not allowed to access the syslog servers for security reasons. Go figure...
these are too old now, very start of june they appeared, and our log monitoring infrastructure is just woeful... we'll have the logs on our syslog servers, but I, as the principle Linux Administrator, am not allowed to access the syslog servers for security reasons. Go figure...
Made me chuckle! That's one anal-retentive (and ineffective) security policy!
So there's only an su parent and child bash process? Does that mean the child is running a bash script rather than an executable? If so it will (?) have a copy of the bash script in memory, probably stripped of comments but still legible ...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.