How do I enforce in Red hat linux that only root user be a member of the "root" group
I don't want any other user to be part of "root" group except user root.
|
First backup your /etc/group file with;
Quote:
For example,my line looks lke this; Quote:
|
Thanks for the reply. But, I don't want anybody to add a user under the root group. e.g If somebody tries to add user by issuing the following cmd, he/she should not succeed.
useradd -g root -p mypasswd myuser |
Red Hat installs by default to not allow a user to issue the useradd command. They could only do so on your system if you have changed the default configuration.
----------------------- Steve Stites |
Quote:
PS- Secondary thought: Check the perms on your /etc/group file... should be something like 644 (-rw-r--r--)... make sure its not world writable basically. |
All times are GMT -5. The time now is 04:30 AM. |