Unable to initialize groups

Support for security such as Firewalls and securing linux
Post Reply
albos
Posts: 2
Joined: 2006/10/02 14:17:49
Location: Switzerland
Contact:

Unable to initialize groups

Post by albos » 2007/04/04 12:50:54

I'm using Centos 4.4. When I'm logged in as a current user and I try to get root rights, I get this message:

"su: unable to initialize groups. Permission denied"

I've tried to disable SELinux but the problem remains the same. I've tried visudo to be in the the wheel group...

What can I do? Anybody out there who knows?

Thank you.

michaelnel
Posts: 1478
Joined: 2006/05/29 16:50:11
Location: San Francisco, CA

Re: Unable to initialize groups

Post by michaelnel » 2007/04/04 19:20:22

What do the permissions and ownership on /etc/group and /etc/gshadow look like? They should look like this:

sb3:~$ ls -l /etc/group
-rw-r--r-- 1 root root 1358703 Apr 4 09:30 /etc/group
sb3:~$ ls -al /etc/gshadow
-r-------- 1 root root 627 Mar 28 16:28 /etc/gshadow
sb3:~$

Are you sure your user is in the wheel group?

$ grep username /etc/group

albos
Posts: 2
Joined: 2006/10/02 14:17:49
Location: Switzerland
Contact:

Re: Unable to initialize groups

Post by albos » 2007/04/05 13:42:30

[quote]
michaelnel wrote:
What do the permissions and ownership on /etc/group and /etc/gshadow look like? They should look like this:

sb3:~$ ls -l /etc/group
-rw-r--r-- 1 root root 1358703 Apr 4 09:30 /etc/group
sb3:~$ ls -al /etc/gshadow
-r-------- 1 root root 627 Mar 28 16:28 /etc/gshadow
sb3:~$

Are you sure your user is in the wheel group?

$ grep username /etc/group[/quote]

Thanks for your help.

The permissions are correct and I'm in the wheel group. I found that after I've resized another partition on the same disk where Centos lives, all the permissions on my Centos partition have been changed! I'm now the owner everywhere... Can't understand.

So what's better? Reinstall from scratch, change all the permissions or die and forget what happened...

michaelnel
Posts: 1478
Joined: 2006/05/29 16:50:11
Location: San Francisco, CA

Re: Unable to initialize groups

Post by michaelnel » 2007/04/05 16:41:28

[quote]
albos wrote:
I found that after I've resized another partition on the same disk where Centos lives, all the permissions on my Centos partition have been changed! I'm now the owner everywhere... Can't understand.

So what's better? Reinstall from scratch, change all the permissions or die and forget what happened...[/quote]

Whoa! If that has happened, I would definitely reinstall and reformat the partitions. Otherwise you'll never get all the permissions and ownership set right.

Very wierd!

Post Reply

Return to “CentOS 4 - Security Support”