With PS you can not control the processes of another user
Hi everybody,
I have a problem with the permission of the directories under /proc, they are readable and accessible only by Owner (they have permission 500 instead of the usual 555) As a consequence, the processes are visible only to the Owners or to Root. For exampleif I want to check if there is mysql # ps -ef | grep mysqld mysql 2611 1 0 12:14 ? 00:00:06 /usr/sbin/mysqld I see it only with the user mysql or with root because the directory has permission 500 dr-x------ 6 mysql mysql 0 2011-02-11 12:14 /proc/2611/ this problem obstacles the functioning of some applications that should check the existence of some processes managed by other users. At the beginning all was working well. But after a while the problem appeared and I don’t know which is the reason of it. Can you tell me how to restore the standard management of permissions of / proc?] I have a Ubuntu server Maverick 10:10. Thanks. |
Quote:
Code:
#chmod 555 /proc |
Quote:
Code:
$ /etc/init.d/mysql status Code:
$ service mysql status Or test for the pid file: Code:
$ test -e /var/run/mysqld/mysqld.pid You could also check the output of netstat for the port mysql listens to, but this would be less clean and future-proof. |
All times are GMT -5. The time now is 12:04 PM. |