-   Linux - Newbie (
-   -   Processes running with incorrect group id (

zamek 08-16-2012 03:28 PM

Processes running with incorrect group id
My server is running a CentOS Linux 5.8 and most of the server's processes are running with a user id of 0 (root) and group id of 500 (adam). The primary group for user root is root. The adam group was created when I created the first user adam. I've tried modifying root's primary group but still have the same problem.

How do I get all of the processes to run under the proper group id?


    1 root    adam    init [3]     
 1119 root    adam    /sbin/udevd -d
 1459 root    adam    syslogd -m 0
 1470 root    adam    /usr/sbin/sshd
 1478 root    adam    xinetd -stayalive -pidfile /var/run/
 1514 root    adam    /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --pid-file=/var/run/mysqld/ --basedir=/usr --user=mysql
 1609 mysql    mysql    /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/ --socket=/var/lib/mysql/mysql.sock
 3495 root    adam    lfd - sleeping
 3521 root    adam    sendmail: accepting connections
 3532 smmsp    smmsp    sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue
 3542 root    adam    /usr/sbin/httpd
 3543 apache  apache  /usr/sbin/httpd
 3551 root    adam    crond
 3559 root    adam    /usr/sbin/saslauthd -m /var/run/saslauthd -a pam -n 2
 3560 root    adam    /usr/sbin/saslauthd -m /var/run/saslauthd -a pam -n 2
 3568 root    adam    /usr/bin/perl /usr/libexec/webmin/ /etc/webmin/miniserv.conf
 3593 root    adam    sshd: adam [priv]
 3597 adam    adam    sshd: adam@pts/0
 3598 adam    adam    -bash
 5133 root    adam    sudo ps -eo pid,user,group,args
 5134 root    root    ps -eo pid,user,group,args

chrism01 08-16-2012 07:02 PM

Show the entries for root and adam in /etc/passwd. Also, all entries in /etc/group for both users as well.
Note that in reality, its all done with numbers, specifically uid, gid. The names are found by the tools like top, ls etc by x-referencing those files.

zamek 08-16-2012 08:40 PM

Thank you for your reply.



zamek 08-16-2012 10:00 PM


I also set the 'Set GID' bit on the init file which ran init as the group 'root' but the other processes spawned by init still ran with the 'adam' group.

All times are GMT -5. The time now is 02:30 PM.