Page 1 of 1

Unable to initialize groups

Posted: 2007/04/04 12:50:54
by albos
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.

Re: Unable to initialize groups

Posted: 2007/04/04 19:20:22
by michaelnel
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

Re: Unable to initialize groups

Posted: 2007/04/05 13:42:30
by albos
[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...

Re: Unable to initialize groups

Posted: 2007/04/05 16:41:28
by michaelnel
[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!